bootstrapping

This commit is contained in:
Philip Häusler 2011-06-01 14:48:31 +02:00
parent 6ebee2c46b
commit a537f4bf73
18 changed files with 1172 additions and 1130 deletions

View File

@ -1,9 +1,10 @@
<?php <?php
require_once('../bootstrap.php');
$title = "Newsverwaltung"; $title = "Newsverwaltung";
$header = "Verwaltung der News"; $header = "Verwaltung der News";
include ("../../../camp2011/includes/header.php"); include ("includes/header.php");
include ("../../../camp2011/includes/funktion_db_list.php"); include ("includes/funktion_db_list.php");
if (!IsSet($_GET["action"])) if (!IsSet($_GET["action"]))
@ -85,7 +86,7 @@ else
echo "FEHLER: Eintrag \"". $_GET["date"]. "\" nicht gefunden"; echo "FEHLER: Eintrag \"". $_GET["date"]. "\" nicht gefunden";
} }
else else
echo "Fehler: \"date\" nicht übergeben"; echo "Fehler: \"date\" nicht <EFBFBD>bergeben";
break; break;
case 'change_save': case 'change_save':
@ -93,20 +94,20 @@ else
$chsql="UPDATE `News` SET `Betreff`='". $_GET["eBetreff"]. "', `Text`='". $_GET["eText"]. $chsql="UPDATE `News` SET `Betreff`='". $_GET["eBetreff"]. "', `Text`='". $_GET["eText"].
"', `Treffen`='". $_GET["eTreffen"]. "' WHERE (`Datum`='". $_GET["date"]. "') limit 1"; "', `Treffen`='". $_GET["eTreffen"]. "' WHERE (`Datum`='". $_GET["date"]. "') limit 1";
else else
echo "Fehler: nicht genügend parameter übergeben"; echo "Fehler: nicht gen<EFBFBD>gend parameter <20>bergeben";
break; break;
case 'delete': case 'delete':
if (isset($_POST["date"])) if (isset($_POST["date"]))
$chsql="DELETE FROM `News` WHERE `Datum`='". $_POST["date"]. "' LIMIT 1"; $chsql="DELETE FROM `News` WHERE `Datum`='". $_POST["date"]. "' LIMIT 1";
else else
echo "Fehler: \"date\" nicht übergeben"; echo "Fehler: \"date\" nicht <EFBFBD>bergeben";
break; break;
} //SWITCH } //SWITCH
if (IsSet($chsql)) if (IsSet($chsql))
{ {
// SQL-Statement ausführen... // SQL-Statement ausf<EFBFBD>hren...
$Erg = mysql_query($chsql, $con); $Erg = mysql_query($chsql, $con);
If ($Erg == 1) If ($Erg == 1)
echo "&Auml;nderung erfolgreich gesichert..."; echo "&Auml;nderung erfolgreich gesichert...";
@ -117,6 +118,6 @@ else
} }
}// IF-ELSE }// IF-ELSE
include ("../../../camp2011/includes/footer.php"); include ("includes/footer.php");
?> ?>

View File

@ -33,7 +33,7 @@ footer p {
margin: 0 5%; margin: 0 5%;
} }
td { td, dt, dd {
padding: 4px; padding: 4px;
} }

View File

@ -1,12 +1,14 @@
<?php <?php
require_once ('bootstrap.php');
$title = "Anmeldung zum Chaos-Engel"; $title = "Anmeldung zum Chaos-Engel";
$header = ""; $header = "";
$success = "none"; $success = "none";
include "../config/config.php"; include "config/config.php";
include "../includes/header.php"; include "includes/header.php";
include "../config/config_db.php"; include "config/config_db.php";
include "../includes/crypt.php"; include "includes/crypt.php";
if (isset ($_POST["send"])) { if (isset ($_POST["send"])) {
$eNick = trim($_POST["Nick"]); $eNick = trim($_POST["Nick"]);
@ -20,16 +22,11 @@
if (strlen($_POST["Nick"]) < 2) if (strlen($_POST["Nick"]) < 2)
$error = Get_Text("makeuser_error_nick1") . $_POST["Nick"] . Get_Text("makeuser_error_nick2"); $error = Get_Text("makeuser_error_nick1") . $_POST["Nick"] . Get_Text("makeuser_error_nick2");
elseif(mysql_num_rows( $Ergans) > 0) elseif (mysql_num_rows($Ergans) > 0) $error = Get_Text("makeuser_error_nick1") . $_POST["Nick"] . Get_Text("makeuser_error_nick3");
$error = Get_Text("makeuser_error_nick1") . $_POST["Nick"] . Get_Text("makeuser_error_nick3"); elseif (strlen($_POST["email"]) <= 6 && strstr($_POST["email"], "@") == FALSE && strstr($_POST["email"], ".") == false) $error = Get_Text("makeuser_error_mail");
elseif(strlen($_POST["email"]) <= 6 && strstr($_POST["email"], "@") == FALSE && strstr($_POST["email"], ".") == false) elseif (!is_numeric($_POST["Alter"])) $error = Get_Text("makeuser_error_Alter");
$error = Get_Text("makeuser_error_mail"); elseif ($_POST["Passwort"] != $_POST["Passwort2"]) $error = Get_Text("makeuser_error_password1");
elseif(!is_numeric($_POST["Alter"])) elseif (strlen($_POST["Passwort"]) < 6) $error = Get_Text("makeuser_error_password2");
$error = Get_Text("makeuser_error_Alter");
elseif($_POST["Passwort"] != $_POST["Passwort2"])
$error = Get_Text("makeuser_error_password1");
elseif(strlen($_POST["Passwort"]) < 6)
$error = Get_Text("makeuser_error_password2");
else { else {
$_POST["Passwort"] = PassCrypt($_POST["Passwort"]); $_POST["Passwort"] = PassCrypt($_POST["Passwort"]);
unset ($_POST["Passwort2"]); unset ($_POST["Passwort2"]);
@ -131,18 +128,54 @@
echo "<tr><td>jabber</td><td><input type=\"text\" size=\"40\" name=\"jabber\" value=\"" . $_POST["jabber"] . "\"></td></tr>\n"; echo "<tr><td>jabber</td><td><input type=\"text\" size=\"40\" name=\"jabber\" value=\"" . $_POST["jabber"] . "\"></td></tr>\n";
echo "<tr><td>" . Get_Text("makeuser_T-Shirt") . " Gr&ouml;sse*</td><td align=\"left\">\n"; echo "<tr><td>" . Get_Text("makeuser_T-Shirt") . " Gr&ouml;sse*</td><td align=\"left\">\n";
echo "<select name=\"Size\">\n"; echo "<select name=\"Size\">\n";
echo "<option value=\"S\""; if ($_POST["Size"]=="S") echo " selected"; echo ">S</option>\n"; echo "<option value=\"S\"";
echo "<option value=\"M\""; if ($_POST["Size"]=="M") echo " selected"; echo ">M</option>\n"; if ($_POST["Size"] == "S")
echo "<option value=\"L\""; if ($_POST["Size"]=="L") echo " selected"; echo ">L</option>\n"; echo " selected";
echo "<option value=\"XL\""; if ($_POST["Size"]=="XL") echo " selected"; echo ">XL</option>\n"; echo ">S</option>\n";
echo "<option value=\"2XL\""; if ($_POST["Size"]=="2XL") echo " selected"; echo ">2XL</option>\n"; echo "<option value=\"M\"";
echo "<option value=\"3XL\""; if ($_POST["Size"]=="3XL") echo " selected"; echo ">3XL</option>\n"; if ($_POST["Size"] == "M")
echo "<option value=\"4XL\""; if ($_POST["Size"]=="4XL") echo " selected"; echo ">4XL</option>\n"; echo " selected";
echo "<option value=\"5XL\""; if ($_POST["Size"]=="5XL") echo " selected"; echo ">5XL</option>\n"; echo ">M</option>\n";
echo "<option value=\"S-G\""; if ($_POST["Size"]=="S-G") echo " selected"; echo ">S Girl</option>\n"; echo "<option value=\"L\"";
echo "<option value=\"M-G\""; if ($_POST["Size"]=="M-G") echo " selected"; echo ">M Girl</option>\n"; if ($_POST["Size"] == "L")
echo "<option value=\"L-G\""; if ($_POST["Size"]=="L-G") echo " selected"; echo ">L Girl</option>\n"; echo " selected";
echo "<option value=\"XL-G\""; if ($_POST["Size"]=="XL-G") echo " selected"; echo ">XL Girl</option>\n"; echo ">L</option>\n";
echo "<option value=\"XL\"";
if ($_POST["Size"] == "XL")
echo " selected";
echo ">XL</option>\n";
echo "<option value=\"2XL\"";
if ($_POST["Size"] == "2XL")
echo " selected";
echo ">2XL</option>\n";
echo "<option value=\"3XL\"";
if ($_POST["Size"] == "3XL")
echo " selected";
echo ">3XL</option>\n";
echo "<option value=\"4XL\"";
if ($_POST["Size"] == "4XL")
echo " selected";
echo ">4XL</option>\n";
echo "<option value=\"5XL\"";
if ($_POST["Size"] == "5XL")
echo " selected";
echo ">5XL</option>\n";
echo "<option value=\"S-G\"";
if ($_POST["Size"] == "S-G")
echo " selected";
echo ">S Girl</option>\n";
echo "<option value=\"M-G\"";
if ($_POST["Size"] == "M-G")
echo " selected";
echo ">M Girl</option>\n";
echo "<option value=\"L-G\"";
if ($_POST["Size"] == "L-G")
echo " selected";
echo ">L Girl</option>\n";
echo "<option value=\"XL-G\"";
if ($_POST["Size"] == "XL-G")
echo " selected";
echo ">XL Girl</option>\n";
echo "</select>\n"; echo "</select>\n";
echo "</td></tr>\n"; echo "</td></tr>\n";
echo "<tr><td>" . Get_Text("makeuser_Engelart") . "</td><td align=\"left\">\n"; echo "<tr><td>" . Get_Text("makeuser_Engelart") . "</td><td align=\"left\">\n";
@ -177,5 +210,5 @@
Print_Text("makeuser_text3"); Print_Text("makeuser_text3");
} }
include "../includes/footer.php"; include "includes/footer.php";
?> ?>

View File

@ -1,8 +1,10 @@
<?php <?php
require_once ('../bootstrap.php');
header("Content-Type: application/json"); header("Content-Type: application/json");
include "../../../camp2011/includes/config.php"; include "includes/config.php";
include "../../../camp2011/includes/config_db.php"; include "includes/config_db.php";
$User = $_POST['user']; $User = $_POST['user'];
$Pass = $_POST['pw']; $Pass = $_POST['pw'];
@ -21,12 +23,21 @@
$Erg_CVS = mysql_query($SQL, $con); $Erg_CVS = mysql_query($SQL, $con);
$CVS = mysql_fetch_array($Erg_CVS); $CVS = mysql_fetch_array($Erg_CVS);
$msg = array('status' => 'success', 'rights' => $CVS); $msg = array (
'status' => 'success',
'rights' => $CVS
);
echo json_encode($msg); echo json_encode($msg);
} else } else
echo json_encode(array('status' => 'failed')); echo json_encode(array (
'status' => 'failed'
));
} else } else
echo json_encode(array('status' => 'failed')); echo json_encode(array (
'status' => 'failed'
));
} else } else
echo json_encode(array('status' => 'failed')); echo json_encode(array (
'status' => 'failed'
));
?> ?>

View File

@ -1,8 +1,10 @@
<?php <?php
require_once ('../bootstrap.php');
$title = "Himmel"; $title = "Himmel";
$header = "Deine pers&ouml;nlichen Einstellungen"; $header = "Deine pers&ouml;nlichen Einstellungen";
include "../../../camp2011/includes/header.php"; include "includes/header.php";
include "../../../camp2011/includes/crypt.php"; include "includes/crypt.php";
if (!isset ($_POST["action"])) { if (!isset ($_POST["action"])) {
echo Get_Text("Hallo") . $_SESSION['Nick'] . ",<br />\n\n"; echo Get_Text("Hallo") . $_SESSION['Nick'] . ",<br />\n\n";
@ -69,6 +71,8 @@
</tr> </tr>
<?php <?php
if ($_SESSION['CVS']["Change T_Shirt Size"] == "Y") { if ($_SESSION['CVS']["Change T_Shirt Size"] == "Y") {
?> ?>
<tr> <tr>
@ -83,6 +87,8 @@ if($_SESSION['CVS']["Change T_Shirt Size"] == "Y") {
</select></td> </select></td>
</tr> </tr>
<?php <?php
} }
?> ?>
</table> </table>
@ -147,7 +153,11 @@ if($_SESSION['CVS']["Change T_Shirt Size"] == "Y") {
<select name="language"> <select name="language">
<option value="DE" <?php if($_SESSION['Sprache'] == 'DE') { echo "selected"; } ?>>Deutsch</option> <option value="DE" <?php if($_SESSION['Sprache'] == 'DE') { echo "selected"; } ?>>Deutsch</option>
<option value="EN" <?php if($_SESSION['Sprache'] == 'EN') { echo "selected"; } ?>>English</option> <option value="EN" <?php if($_SESSION['Sprache'] == 'EN') { echo "selected"; } ?>>English</option>
<?php /* <option value="NL" <?php if($_SESSION['Sprache'] == 'NL') { echo "selected"; } ?>>Dutch</option> */ ?> <?php
/* <option value="NL" <?php if($_SESSION['Sprache'] == 'NL') { echo "selected"; } ?>>Dutch</option> */
?>
</select> </select>
</td></tr> </td></tr>
</table> </table>
@ -155,6 +165,8 @@ if($_SESSION['CVS']["Change T_Shirt Size"] == "Y") {
</form> </form>
<?php <?php
if (get_cfg_var("file_uploads")) { if (get_cfg_var("file_uploads")) {
echo "<br />\n<hr width=\"100%\">\n<br />\n\n"; echo "<br />\n<hr width=\"100%\">\n<br />\n\n";
echo Get_Text('pub_einstellungen_PictureUpload') . "<br />"; echo Get_Text('pub_einstellungen_PictureUpload') . "<br />";
@ -273,8 +285,7 @@ case 'avatar':
break; break;
case 'setUserData' : case 'setUserData' :
if( $_SESSION['CVS'][ "Change T_Shirt Size" ] == "Y" ) if ($_SESSION['CVS']["Change T_Shirt Size"] == "Y") {
{
$chsql = "UPDATE `User` SET " . $chsql = "UPDATE `User` SET " .
"`Nick`='" . $_POST["eNick"] . "', `Name`='" . $_POST["eName"] . "', " . "`Nick`='" . $_POST["eNick"] . "', `Name`='" . $_POST["eName"] . "', " .
"`Vorname`='" . $_POST["eVorname"] . "', `Alter`='" . $_POST["eAlter"] . "', " . "`Vorname`='" . $_POST["eVorname"] . "', `Alter`='" . $_POST["eAlter"] . "', " .
@ -283,9 +294,7 @@ case 'setUserData':
"`ICQ`='" . $_POST["eICQ"] . "', `jabber`='" . $_POST["ejabber"] . "', " . "`ICQ`='" . $_POST["eICQ"] . "', `jabber`='" . $_POST["ejabber"] . "', " .
"`Hometown`='" . $_POST["Hometown"] . "', `Size`='" . $_POST["Sizeid"] . "' " . "`Hometown`='" . $_POST["Hometown"] . "', `Size`='" . $_POST["Sizeid"] . "' " .
"WHERE `UID`='" . $_SESSION['UID'] . "' LIMIT 1;"; "WHERE `UID`='" . $_SESSION['UID'] . "' LIMIT 1;";
} } else {
else
{
$chsql = "UPDATE `User` SET " . $chsql = "UPDATE `User` SET " .
"`Nick`='" . $_POST["eNick"] . "', `Name`='" . $_POST["eName"] . "', " . "`Nick`='" . $_POST["eNick"] . "', `Name`='" . $_POST["eName"] . "', " .
"`Vorname`='" . $_POST["eVorname"] . "', `Alter`='" . $_POST["eAlter"] . "', " . "`Vorname`='" . $_POST["eVorname"] . "', `Alter`='" . $_POST["eAlter"] . "', " .
@ -297,8 +306,7 @@ case 'setUserData':
} }
$Erg = mysql_query($chsql, $con); $Erg = mysql_query($chsql, $con);
if ($Erg==1) if ($Erg == 1) {
{
$_SESSION['Nick'] = $_POST["eNick"]; $_SESSION['Nick'] = $_POST["eNick"];
$_SESSION['Name'] = $_POST["eName"]; $_SESSION['Name'] = $_POST["eName"];
$_SESSION['Vorname'] = $_POST["eVorname"]; $_SESSION['Vorname'] = $_POST["eVorname"];
@ -310,32 +318,23 @@ case 'setUserData':
$_SESSION['ICQ'] = $_POST["eICQ"]; $_SESSION['ICQ'] = $_POST["eICQ"];
$_SESSION['jabber'] = $_POST["ejabber"]; $_SESSION['jabber'] = $_POST["ejabber"];
$_SESSION['Hometown'] = $_POST["Hometown"]; $_SESSION['Hometown'] = $_POST["Hometown"];
if( $_SESSION['CVS'][ "Change T_Shirt Size" ] == "Y" ) if ($_SESSION['CVS']["Change T_Shirt Size"] == "Y") {
{
$_SESSION['Size'] = $_POST["Sizeid"]; $_SESSION['Size'] = $_POST["Sizeid"];
} } else
else if( $_SESSION['Size'] != $_POST["Sizeid"]) if ($_SESSION['Size'] != $_POST["Sizeid"]) {
{
array_push($error_messages, "einstellungen.php, change t-shirt size not allowed\n"); array_push($error_messages, "einstellungen.php, change t-shirt size not allowed\n");
} }
Print_Text("pub_einstellungen_UserDateSaved"); Print_Text("pub_einstellungen_UserDateSaved");
} } else {
else
{
Print_Text(29); Print_Text(29);
echo mysql_error($con); echo mysql_error($con);
} }
break; break;
case 'sendPicture' : case 'sendPicture' :
if( $_FILES["file"]["size"] > 0) if ($_FILES["file"]["size"] > 0) {
{ if (($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/png") || ($_FILES["file"]["type"] == "image/gif")) {
if( ($_FILES["file"]["type"] == "image/jpeg") ||
($_FILES["file"]["type"] == "image/png") ||
($_FILES["file"]["type"] == "image/gif") )
{
$data = addslashes(fread(fopen($_FILES["file"]["tmp_name"], "r"), filesize($_FILES["file"]["tmp_name"]))); $data = addslashes(fread(fopen($_FILES["file"]["tmp_name"], "r"), filesize($_FILES["file"]["tmp_name"])));
if (GetPicturShow($_SESSION['UID']) == "") if (GetPicturShow($_SESSION['UID']) == "")
@ -356,11 +355,9 @@ case 'sendPicture':
Print_Text("pub_einstellungen_send_KO"); Print_Text("pub_einstellungen_send_KO");
echo "<h6>('" . $_FILES["file"]["name"] . "', MIME-Type: " . $_FILES["file"]["type"] . ", " . $_FILES["file"]["size"] . " Byte)</h6>"; echo "<h6>('" . $_FILES["file"]["name"] . "', MIME-Type: " . $_FILES["file"]["type"] . ", " . $_FILES["file"]["size"] . " Byte)</h6>";
} } else
else
Print_Text("pub_einstellungen_send_KO"); Print_Text("pub_einstellungen_send_KO");
} } else
else
Print_Text("pub_einstellungen_send_KO"); Print_Text("pub_einstellungen_send_KO");
break; break;
@ -374,5 +371,5 @@ case 'delPicture':
Break; Break;
} }
} }
include ("../../../camp2011/includes/footer.php"); include ("includes/footer.php");
?> ?>

View File

@ -1,7 +1,9 @@
<?php <?php
require_once ('../bootstrap.php');
$title = "Himmel"; $title = "Himmel";
$header = "Engelbesprechung"; $header = "Engelbesprechung";
include "../../../camp2011/includes/header.php"; include "includes/header.php";
$SQL = "SELECT * FROM `News` ORDER BY 'Datum' DESC"; $SQL = "SELECT * FROM `News` ORDER BY 'Datum' DESC";
$Erg = mysql_query($SQL, $con); $Erg = mysql_query($SQL, $con);
@ -23,5 +25,5 @@
} }
} }
include ("../../../camp2011/includes/footer.php"); include ("includes/footer.php");
?> ?>

View File

@ -1,7 +1,9 @@
<?php <?php
require_once ('../bootstrap.php');
$title = "Himmel"; $title = "Himmel";
$header = "FAQ / Fragen an die Erzengel"; $header = "FAQ / Fragen an die Erzengel";
include "../../../camp2011/includes/header.php"; include "includes/header.php";
// Erstaufruf, oder Frage bereits abgeschickt? // Erstaufruf, oder Frage bereits abgeschickt?
if (!isset ($_POST["eUID"])) { if (!isset ($_POST["eUID"])) {
@ -14,6 +16,8 @@
<input type="submit" value="<?php Print_Text("save"); ?>"> <input type="submit" value="<?php Print_Text("save"); ?>">
</form> </form>
<?php <?php
} else { } else {
// Auswertung d. Formular-Daten: // Auswertung d. Formular-Daten:
@ -65,5 +69,5 @@ if ($Zeilen==0){
} }
} }
include ("../../../camp2011/includes/footer.php"); include ("includes/footer.php");
?> ?>

View File

@ -1,8 +1,10 @@
<?php <?php
require_once ('../bootstrap.php');
$title = "Himmel"; $title = "Himmel";
$header = ""; $header = "";
include "../../../camp2011/includes/header.php"; include "includes/header.php";
if (!isset ($_GET["action"])) if (!isset ($_GET["action"]))
$_GET["action"] = "start"; $_GET["action"] = "start";
@ -118,5 +120,5 @@
echo Get_Text("pub_messages_NoCommand"); echo Get_Text("pub_messages_NoCommand");
} }
include "../../../camp2011/includes/footer.php"; include "includes/footer.php";
?> ?>

View File

@ -1,11 +1,15 @@
<?php <?php
// Eigener Schichtplan
require_once ('../bootstrap.php');
$title = "Himmel"; $title = "Himmel";
$header = "Mein Schichtplan"; $header = "Mein Schichtplan";
include ("../../../camp2011/includes/header.php"); include ("includes/header.php");
include ("../../../camp2011/includes/funktionen.php"); include ("includes/funktionen.php");
include ("../../../camp2011/includes/funktion_schichtplan.php"); include ("includes/funktion_schichtplan.php");
include ("../../../camp2011/includes/funktion_schichtplan_aray.php"); include ("includes/funktion_schichtplan_aray.php");
if (!isset ($_GET["action"])) { if (!isset ($_GET["action"])) {
echo Get_Text("Hello") . $_SESSION['Nick'] . ", <br />\n"; echo Get_Text("Hello") . $_SESSION['Nick'] . ", <br />\n";
@ -51,7 +55,6 @@
"WHERE `ShiftEntry`.`UID`='$USER_ID' " . "WHERE `ShiftEntry`.`UID`='$USER_ID' " .
"ORDER BY `DateS`"; "ORDER BY `DateS`";
$erg = mysql_query($SQL, $con); $erg = mysql_query($SQL, $con);
?> ?>
<table border="0" class="border" cellpadding="2" cellspacing="1"> <table border="0" class="border" cellpadding="2" cellspacing="1">
<tr> <tr>
@ -65,8 +68,8 @@
</tr> </tr>
<?php <?php
for( $i=0; $i<mysql_num_rows( $erg ); $i++ )
{ for ($i = 0; $i < mysql_num_rows($erg); $i++) {
echo "<tr class=\"content\">"; echo "<tr class=\"content\">";
echo "<td>" . substr(mysql_result($erg, $i, "DateS"), 0, 10) . "</td>\n"; echo "<td>" . substr(mysql_result($erg, $i, "DateS"), 0, 10) . "</td>\n";
@ -96,7 +99,7 @@
$lastAustragen = $LETZTES_AUSTRAGEN * 3600; $lastAustragen = $LETZTES_AUSTRAGEN * 3600;
$nowdate = time(); $nowdate = time();
// wenn Schichtbeginn > jetziges Datum + $LETZTES_AUSTRAGEN - Stunden soll ein Austragen // wenn Schichtbeginn > jetziges Datum + $LETZTES_AUSTRAGEN - Stunden soll ein Austragen
// noch möglich sein // noch m<>glich sein
if ($schichtdatum > ($lastAustragen + $nowdate)) if ($schichtdatum > ($lastAustragen + $nowdate))
echo "<td> <a href=\"./myschichtplan.php?action=austragen&SID=" . echo "<td> <a href=\"./myschichtplan.php?action=austragen&SID=" .
mysql_result($erg, $i, "SID") . "\">" . mysql_result($erg, $i, "SID") . "\">" .
@ -108,16 +111,12 @@
} }
echo "</table>\n\n"; echo "</table>\n\n";
if( $_SESSION['CVS'][ "nonpublic/myschichtplan_ical.php" ] == "Y" ) if ($_SESSION['CVS']["nonpublic/myschichtplan_ical.php"] == "Y") {
{
echo "<br /><a href=\"./myschichtplan_ical.php\">" . Get_Text("pub_myschichtplan_ical") . "</a>\n"; echo "<br /><a href=\"./myschichtplan_ical.php\">" . Get_Text("pub_myschichtplan_ical") . "</a>\n";
} }
} } else {
else If ($_GET["action"] == "austragen") {
{
If( $_GET["action"] == "austragen" )
{
echo Get_Text("pub_mywake_delate1") . "<br />\n"; echo Get_Text("pub_mywake_delate1") . "<br />\n";
$sql = "SELECT * FROM `Shifts` WHERE (`SID` = '" . $_GET["SID"] . "')"; $sql = "SELECT * FROM `Shifts` WHERE (`SID` = '" . $_GET["SID"] . "')";
@ -135,9 +134,8 @@ else
$lastAustragen = $LETZTES_AUSTRAGEN * 3600; $lastAustragen = $LETZTES_AUSTRAGEN * 3600;
$nowdate = time(); $nowdate = time();
// wenn Schichtbeginn > jetziges Datum + $LETZTES_AUSTRAGEN - Stunden soll ein Austragen // wenn Schichtbeginn > jetziges Datum + $LETZTES_AUSTRAGEN - Stunden soll ein Austragen
// noch möglich sein // noch m<>glich sein
if( $schichtdatum > ($lastAustragen + $nowdate) ) if ($schichtdatum > ($lastAustragen + $nowdate)) {
{
$sql2 = "UPDATE `ShiftEntry` " . $sql2 = "UPDATE `ShiftEntry` " .
"SET `UID` = '0', `Comment` = NULL " . "SET `UID` = '0', `Comment` = NULL " .
"WHERE `SID` = '" . $_GET["SID"] . "' AND `UID` = '" . $_SESSION['UID'] . "' LIMIT 1;"; "WHERE `SID` = '" . $_GET["SID"] . "' AND `UID` = '" . $_SESSION['UID'] . "' LIMIT 1;";
@ -146,12 +144,10 @@ else
echo Get_Text("pub_mywake_add_ok") . "\n"; echo Get_Text("pub_mywake_add_ok") . "\n";
else else
echo Get_Text("pub_mywake_add_ko") . "\n"; echo Get_Text("pub_mywake_add_ko") . "\n";
} } else
else
echo Get_Text("pub_mywake_after") . "\n"; echo Get_Text("pub_mywake_after") . "\n";
} }
elseif( $_GET["action"] == "edit" ) elseif ($_GET["action"] == "edit") {
{
echo Get_Text("pub_myshift_Edit_Text1") . "\n"; echo Get_Text("pub_myshift_Edit_Text1") . "\n";
$sql = "SELECT * FROM `ShiftEntry` WHERE "; $sql = "SELECT * FROM `ShiftEntry` WHERE ";
@ -165,8 +161,7 @@ else
echo "<input type=\"hidden\" name=\"action\" value=\"editSave\">\n"; echo "<input type=\"hidden\" name=\"action\" value=\"editSave\">\n";
echo "</form>"; echo "</form>";
} }
elseif( $_GET["action"] == "editSave" ) elseif ($_GET["action"] == "editSave") {
{
echo Get_Text("pub_myshift_EditSave_Text1") . "<br />\n"; echo Get_Text("pub_myshift_EditSave_Text1") . "<br />\n";
$sql = "UPDATE `ShiftEntry` " . $sql = "UPDATE `ShiftEntry` " .
"SET `Comment` = '" . $_GET["newtext"] . "' " . "SET `Comment` = '" . $_GET["newtext"] . "' " .
@ -179,5 +174,5 @@ else
SetHeaderGo2Back(); SetHeaderGo2Back();
} }
} }
include ("../../../camp2011/includes/footer.php"); include ("includes/footer.php");
?> ?>

View File

@ -1,7 +1,9 @@
<?php <?php
include ("../../../camp2011/includes/header_start.php"); require_once ('../bootstrap.php');
include ("../../../camp2011/includes/funktion_schichtplan_aray.php"); include ("includes/header_start.php");
include ("includes/funktion_schichtplan_aray.php");
$SQL = "SELECT *, `ShiftEntry`.`Comment`, `ShiftEntry`.`TID` FROM `Shifts` " . $SQL = "SELECT *, `ShiftEntry`.`Comment`, `ShiftEntry`.`TID` FROM `Shifts` " .
"INNER JOIN `ShiftEntry` " . "INNER JOIN `ShiftEntry` " .
@ -10,7 +12,6 @@ $SQL = "SELECT *, `ShiftEntry`.`Comment`, `ShiftEntry`.`TID` FROM `Shifts` ".
"ORDER BY `DateS`"; "ORDER BY `DateS`";
$erg = mysql_query($SQL, $con); $erg = mysql_query($SQL, $con);
//HEADER //HEADER
header("Content-Type: text/x-vCalendar"); header("Content-Type: text/x-vCalendar");
header("Content-Disposition: attachment; filename=\"Schichtplan.ics\""); header("Content-Disposition: attachment; filename=\"Schichtplan.ics\"");
@ -25,8 +26,7 @@ echo "CALSCALE:GREGORIAN\n";
echo "METHOD:PUBLISH\n"; echo "METHOD:PUBLISH\n";
echo "X-WR-CALNAME;VALUE=TEXT:" . "Himmel - Schichtplan\n"; echo "X-WR-CALNAME;VALUE=TEXT:" . "Himmel - Schichtplan\n";
for( $i=0; $i<mysql_num_rows( $erg ); $i++ ) for ($i = 0; $i < mysql_num_rows($erg); $i++) {
{
echo "BEGIN:VEVENT\n"; echo "BEGIN:VEVENT\n";
echo "UID:" . md5(mysql_result($erg, $i, "Man") . mysql_result($erg, $i, "DateS")) . "\n"; echo "UID:" . md5(mysql_result($erg, $i, "Man") . mysql_result($erg, $i, "DateS")) . "\n";
echo "METHOD:PUBLISH\n"; echo "METHOD:PUBLISH\n";
@ -46,7 +46,6 @@ for( $i=0; $i<mysql_num_rows( $erg ); $i++ )
} }
echo "END:VCALENDAR\n"; echo "END:VCALENDAR\n";
include( "../../../camp2011/includes/funktion_counter.php"); include ("includes/funktion_counter.php");
?> ?>

View File

@ -1,7 +1,9 @@
<?php <?php
require_once ('../bootstrap.php');
$title = "Kommentare zu den News"; $title = "Kommentare zu den News";
$header = "Kommentar"; $header = "Kommentar";
include ("../../../camp2011/includes/header.php"); include ("includes/header.php");
if (isset ($_GET["nid"])) { if (isset ($_GET["nid"])) {
if (isset ($_GET["text"])) { if (isset ($_GET["text"])) {
@ -33,6 +35,8 @@ if(isset($_GET["nid"])) {
</tr> </tr>
<?php <?php
for ($n = 0; $n < $news_rows; $n++) { for ($n = 0; $n < $news_rows; $n++) {
echo "\t<tr class=\"content\">"; echo "\t<tr class=\"content\">";
echo "\t\t<td width=100>"; echo "\t\t<td width=100>";
@ -52,7 +56,6 @@ for ($n = 0 ; $n < $news_rows ; $n++) {
} }
echo "</table>"; echo "</table>";
?> ?>
<br /> <br />
@ -75,11 +78,9 @@ echo "</table>";
<?php <?php
} } else {
else
{
echo "Fehlerhafter Aufruf!"; echo "Fehlerhafter Aufruf!";
} }
include ("../../../camp2011/includes/footer.php"); include ("includes/footer.php");
?> ?>

View File

@ -1,10 +1,11 @@
<h4>&nbsp;Tage </h4> <h4>&nbsp;Tage </h4>
<?PHP <?PHP
include ("../../../camp2011/includes/funktion_schichtplan_aray.php"); require_once ('../bootstrap.php');
function Printlink( $Datum) include ("includes/funktion_schichtplan_aray.php");
{
function Printlink($Datum) {
GLOBAL $raum; GLOBAL $raum;
echo "\t<li><a href='./schichtplan.php?ausdatum=$Datum"; echo "\t<li><a href='./schichtplan.php?ausdatum=$Datum";
// ist ein raum gesetzt? // ist ein raum gesetzt?
@ -16,6 +17,4 @@ function Printlink( $Datum)
if (isset ($VeranstaltungsTage)) if (isset ($VeranstaltungsTage))
foreach ($VeranstaltungsTage as $k => $v) foreach ($VeranstaltungsTage as $k => $v)
Printlink($v); Printlink($v);
?> ?>

View File

@ -1,11 +1,11 @@
<h4>&nbsp;Raum&uuml;bersicht</h4> <h4>&nbsp;Raum&uuml;bersicht</h4>
<?php <?php
require_once ('../bootstrap.php');
include ("../../../camp2011/includes/funktion_schichtplan_aray.php"); include ("includes/funktion_schichtplan_aray.php");
if (isset ($Room)) if (isset ($Room))
foreach( $Room as $RoomEntry ) foreach ($Room as $RoomEntry) {
{
if (isset ($ausdatum)) if (isset ($ausdatum))
echo "\t<li><a href='./schichtplan.php?ausdatum=$ausdatum&raum=" . $RoomEntry["RID"] . "'>" . echo "\t<li><a href='./schichtplan.php?ausdatum=$ausdatum&raum=" . $RoomEntry["RID"] . "'>" .
$RoomEntry["Name"] . "</a></li>\n"; $RoomEntry["Name"] . "</a></li>\n";

View File

@ -1,4 +1,6 @@
<?php <?php
require_once ('../bootstrap.php');
$title = "Himmel"; $title = "Himmel";
$header = "Schichtpl&auml;ne"; $header = "Schichtpl&auml;ne";
$submenus = 2; $submenus = 2;
@ -18,10 +20,10 @@
} }
} }
include ("../../../camp2011/includes/header.php"); include ("includes/header.php");
include ("../../../camp2011/includes/funktionen.php"); include ("includes/funktionen.php");
include ("../../../camp2011/includes/funktion_schichtplan.php"); include ("includes/funktion_schichtplan.php");
include ("../../../camp2011/includes/funktion_schichtplan_aray.php"); include ("includes/funktion_schichtplan_aray.php");
echo Get_Text("Hello") . $_SESSION['Nick'] . ",<br />" . echo Get_Text("Hello") . $_SESSION['Nick'] . ",<br />" .
Get_Text("pub_schicht_beschreibung") . "<br /><br />"; Get_Text("pub_schicht_beschreibung") . "<br /><br />";
@ -33,8 +35,7 @@
if (isset ($VeranstaltungsTage)) if (isset ($VeranstaltungsTage))
foreach ($VeranstaltungsTage as $k => $v) foreach ($VeranstaltungsTage as $k => $v)
if( $ausdatum == $v) if ($ausdatum == $v) {
{
if ($k > 0) if ($k > 0)
echo "\t\t\t<td align=\"left\">" . echo "\t\t\t<td align=\"left\">" .
"<a href='./schichtplan.php?ausdatum=" . $VeranstaltungsTage[$k -1] . "<a href='./schichtplan.php?ausdatum=" . $VeranstaltungsTage[$k -1] .
@ -49,13 +50,11 @@
// wenn kein Datum gesetzt ist (die Seite zum ersten mal aufgerufen wird), // wenn kein Datum gesetzt ist (die Seite zum ersten mal aufgerufen wird),
// das Datum auf den ersten Tag setzen... // das Datum auf den ersten Tag setzen...
if( !isset($ausdatum) ) if (!isset ($ausdatum)) {
{
$sql = "SELECT `DateS` FROM `Shifts` WHERE `DateS` like '" . gmdate("Y-m-d", time() + $gmdateOffset) . "%' ORDER BY `DateS`"; $sql = "SELECT `DateS` FROM `Shifts` WHERE `DateS` like '" . gmdate("Y-m-d", time() + $gmdateOffset) . "%' ORDER BY `DateS`";
// $sql = "SELECT `DateS` FROM `Shifts` WHERE `DateS` like '2004-12-29%' ORDER BY `DateS`"; // $sql = "SELECT `DateS` FROM `Shifts` WHERE `DateS` like '2004-12-29%' ORDER BY `DateS`";
$Erg = mysql_query($sql, $con); $Erg = mysql_query($sql, $con);
if( mysql_num_rows( $Erg ) == 0 ) if (mysql_num_rows($Erg) == 0) {
{
$sql = "SELECT `DateS` FROM `Shifts` ORDER BY `DateS` ASC LIMIT 0, 1"; $sql = "SELECT `DateS` FROM `Shifts` ORDER BY `DateS` ASC LIMIT 0, 1";
$Erg = mysql_query($sql, $con); $Erg = mysql_query($sql, $con);
} }
@ -66,18 +65,13 @@ if( !isset($ausdatum) )
} }
if (!isset ($raum)) {
// Ausgabe wenn kein Raum Ausgew<65>hlt:
if ( !isset($raum) )
{
// Ausgabe wenn kein Raum Ausgewählt:
echo Get_Text("pub_schicht_auswahl_raeume") . "<br /><br />\n"; echo Get_Text("pub_schicht_auswahl_raeume") . "<br /><br />\n";
if( isset($Room)) if (isset ($Room)) {
{
echo "<form action=\"./schichtplan.php\" method=\"GET\">\n"; echo "<form action=\"./schichtplan.php\" method=\"GET\">\n";
foreach( $Room as $RoomEntry ) foreach ($Room as $RoomEntry) {
{
echo "\t<li><input type=\"checkbox\" name=\"raum_" . $RoomEntry["RID"] . "\" value=\"" . $RoomEntry["RID"] . " \">"; echo "\t<li><input type=\"checkbox\" name=\"raum_" . $RoomEntry["RID"] . "\" value=\"" . $RoomEntry["RID"] . " \">";
echo "<a href='./schichtplan.php?ausdatum=$ausdatum&raum=" . $RoomEntry["RID"] . "'>" . $RoomEntry["Name"] . "</a>"; echo "<a href='./schichtplan.php?ausdatum=$ausdatum&raum=" . $RoomEntry["RID"] . "'>" . $RoomEntry["Name"] . "</a>";
echo "</input></li>\n"; echo "</input></li>\n";
@ -95,16 +89,12 @@ if ( !isset($raum) )
echo "<hr>\n\n"; echo "<hr>\n\n";
echo Get_Text("pub_schicht_EmptyShifts") . "\n"; echo Get_Text("pub_schicht_EmptyShifts") . "\n";
// zeit die naesten freien schichten // zeit die naesten freien schichten
showEmptyShifts(); showEmptyShifts();
} } else { // Wenn einraum Ausgew<65>hlt ist:
else
{ // Wenn einraum Ausgewählt ist:
if ($raum == -1) if ($raum == -1)
echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum . ":<br /><br />"; echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum . ":<br /><br />";
elseif( substr( $raum, 0, 1) == ";" ) elseif (substr($raum, 0, 1) == ";") echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum . ":<br /><br />";
echo Get_Text("pub_schicht_Anzeige_1").$ausdatum.":<br /><br />";
else else
echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum . echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum .
Get_Text("pub_schicht_Anzeige_2") . $RoomID[$raum] . "<br /><br />"; Get_Text("pub_schicht_Anzeige_2") . $RoomID[$raum] . "<br /><br />";
@ -115,33 +105,27 @@ else
echo "\t<tr class=\"contenttopic\">\n"; echo "\t<tr class=\"contenttopic\">\n";
echo "\t\t<td>start</td>\n"; echo "\t\t<td>start</td>\n";
//Ausgabe Spalten überschrift //Ausgabe Spalten <20>berschrift
if( $raum == -1 ) if ($raum == -1) {
{
if (isset ($Room)) if (isset ($Room))
foreach ($Room as $RoomEntry) foreach ($Room as $RoomEntry)
if (SummRoomShifts($RoomEntry["RID"]) > 0) if (SummRoomShifts($RoomEntry["RID"]) > 0)
echo "\t\t<th>" . $RoomEntry["Name"] . "</th>\n"; echo "\t\t<th>" . $RoomEntry["Name"] . "</th>\n";
} }
elseif( substr( $raum, 0, 1) == ";" ) elseif (substr($raum, 0, 1) == ";") {
{
$words = preg_split("/;/", $raum); $words = preg_split("/;/", $raum);
foreach ($words as $word) foreach ($words as $word) {
{
if (strlen(trim($word)) > 0) if (strlen(trim($word)) > 0)
echo "\t\t<th>" . $RoomID[trim($word)] . "</th>\n"; echo "\t\t<th>" . $RoomID[trim($word)] . "</th>\n";
} }
} } else
else
echo "\t\t<th>" . $RoomID[$raum] . "</th>\n"; echo "\t\t<th>" . $RoomID[$raum] . "</th>\n";
echo "\t</tr>\n"; echo "\t</tr>\n";
//Zeit Ausgeben //Zeit Ausgeben
for ($i = 0; $i < 24; $i++) for ($i = 0; $i < 24; $i++)
for( $j = 0; $j < $GlobalZeileProStunde; $j++) for ($j = 0; $j < $GlobalZeileProStunde; $j++) {
{ $Spalten[$i * $GlobalZeileProStunde + $j] = "\t<tr class=\"content\">\n\t\t";
$Spalten[$i * $GlobalZeileProStunde + $j] =
"\t<tr class=\"content\">\n\t\t";
//Stunde: //Stunde:
$SpaltenTemp = ""; $SpaltenTemp = "";
@ -159,32 +143,26 @@ else
$Spalten[$i * $GlobalZeileProStunde + $j] .= $SpaltenTemp; $Spalten[$i * $GlobalZeileProStunde + $j] .= $SpaltenTemp;
} }
if( $raum == -1 ) if ($raum == -1) {
{
if (isset ($Room)) if (isset ($Room))
foreach ($Room as $RoomEntry) foreach ($Room as $RoomEntry)
if (SummRoomShifts($RoomEntry["RID"]) > 0) if (SummRoomShifts($RoomEntry["RID"]) > 0)
CreateRoomShifts($RoomEntry["RID"]); CreateRoomShifts($RoomEntry["RID"]);
} }
elseif( substr( $raum, 0, 1) == ";" ) elseif (substr($raum, 0, 1) == ";") {
{ if (isset ($Room)) {
if( isset($Room))
{
$words = preg_split("/;/", $raum); $words = preg_split("/;/", $raum);
foreach ($words as $word) foreach ($words as $word) {
{
if (strlen(trim($word)) > 0) if (strlen(trim($word)) > 0)
if (SummRoomShifts($word) > 0) if (SummRoomShifts($word) > 0)
CreateRoomShifts($word); CreateRoomShifts($word);
} }
} }
} } else
else
CreateRoomShifts($raum); CreateRoomShifts($raum);
//Ausageb Zeilen //Ausageb Zeilen
for ($i = 0; $i < (24 * $GlobalZeileProStunde); $i++) for ($i = 0; $i < (24 * $GlobalZeileProStunde); $i++) {
{
echo $Spalten[$i] . "\t</tr>\n"; echo $Spalten[$i] . "\t</tr>\n";
} }
@ -196,5 +174,5 @@ else
echo "<a href=\"" . $_SESSION["newurl"] . "&Icon=0\">@</a>"; echo "<a href=\"" . $_SESSION["newurl"] . "&Icon=0\">@</a>";
include ("../../../camp2011/includes/footer.php"); include ("includes/footer.php");
?> ?>

View File

@ -1,10 +1,12 @@
<?php <?php
require_once ('../bootstrap.php');
$title = "Himmel"; $title = "Himmel";
$header = "Schichtpl&auml;ne"; $header = "Schichtpl&auml;ne";
include "../../../camp2011/includes/header.php"; include "includes/header.php";
include "../../../camp2011/includes/funktion_schichtplan.php"; include "includes/funktion_schichtplan.php";
include "../../../camp2011/includes/funktion_schichtplan_aray.php"; include "includes/funktion_schichtplan_aray.php";
include "../../../camp2011/includes/funktionen.php"; include "includes/funktionen.php";
if (isset ($_POST["newtext"]) && isset ($_POST["SID"]) && isset ($_POST["TID"])) { if (isset ($_POST["newtext"]) && isset ($_POST["SID"]) && isset ($_POST["TID"])) {
SetHeaderGo2Back(); SetHeaderGo2Back();
@ -63,7 +65,8 @@
echo "<h1>:-(</h1>"; echo "<h1>:-(</h1>";
array_push($error_messages, "Hack atteck\n"); array_push($error_messages, "Hack atteck\n");
} }
} elseif (isset($_GET["SID"]) && isset($_GET["TID"])) { }
elseif (isset ($_GET["SID"]) && isset ($_GET["TID"])) {
//wenn keine Rechte definiert sind //wenn keine Rechte definiert sind
if (!isset ($_SESSION['CVS'][$TID2Name[$_GET["TID"]]])) if (!isset ($_SESSION['CVS'][$TID2Name[$_GET["TID"]]]))
$_SESSION['CVS'][$TID2Name[$_GET["TID"]]] = "Y"; $_SESSION['CVS'][$TID2Name[$_GET["TID"]]] = "Y";
@ -107,5 +110,5 @@
} }
} }
include "../../../camp2011/includes/footer.php"; include "includes/footer.php";
?> ?>

View File

@ -1,7 +1,9 @@
<?php <?php
include "../../../camp2011/includes/header_start.php"; require_once ('../bootstrap.php');
include "../../../camp2011/includes/funktionen.php";
include "../../../camp2011/includes/funktion_schichtplan_beamer.php"; include "includes/header_start.php";
include "includes/funktionen.php";
include "includes/funktion_schichtplan_beamer.php";
$Time = time() + 3600 + 3600; $Time = time() + 3600 + 3600;
?> ?>
@ -16,6 +18,8 @@
<body> <body>
<?php <?php
echo "<table border=\"1\" width=\"100%\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" frame=\"void\">\n"; echo "<table border=\"1\" width=\"100%\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" frame=\"void\">\n";
echo "<colgroup span=\"4\" valign=\"center\"> echo "<colgroup span=\"4\" valign=\"center\">

View File

@ -1,8 +1,10 @@
<?php <?php
require_once ('../bootstrap.php');
$title = "Himmel"; $title = "Himmel";
$header = "Weckdienst - Liste der zu weckenden Engel"; $header = "Weckdienst - Liste der zu weckenden Engel";
include "../../../camp2011/includes/header.php"; include "includes/header.php";
?> ?>
<p><?php echo Get_Text("Hello") . $_SESSION['Nick'] . ",<br />\n" . Get_Text("pub_waeckliste_Text1"); ?></p> <p><?php echo Get_Text("Hello") . $_SESSION['Nick'] . ",<br />\n" . Get_Text("pub_waeckliste_Text1"); ?></p>
@ -15,6 +17,8 @@
</tr> </tr>
<?php <?php
$sql = "SELECT * FROM `Wecken` ORDER BY `Date` ASC"; $sql = "SELECT * FROM `Wecken` ORDER BY `Date` ASC";
$Erg = mysql_query($sql, $con); $Erg = mysql_query($sql, $con);
$count = mysql_num_rows($Erg); $count = mysql_num_rows($Erg);
@ -29,10 +33,14 @@
<td align="left"><?php echo mysql_result($Erg, $i, "Bemerkung"); ?> </td> <td align="left"><?php echo mysql_result($Erg, $i, "Bemerkung"); ?> </td>
</tr> </tr>
<?php <?php
} }
?> ?>
</table> </table>
<?php <?php
include "../../../camp2011/includes/footer.php";
include "includes/footer.php";
?> ?>

View File

@ -1,8 +1,10 @@
<?php <?php
require_once ('../bootstrap.php');
$title = "Himmel"; $title = "Himmel";
$header = "Weckdienst"; $header = "Weckdienst";
include "../../../camp2011/includes/header.php"; include "includes/header.php";
if (isset ($_POST["eintragen"])) { if (isset ($_POST["eintragen"])) {
if ($_POST["eintragen"] == Get_Text("pub_wake_bouton")) { if ($_POST["eintragen"] == Get_Text("pub_wake_bouton")) {
@ -38,6 +40,7 @@
</tr> </tr>
<?php <?php
$sql = "SELECT * FROM `Wecken` WHERE `UID`='" . $_SESSION['UID'] . "' ORDER BY `Date` ASC"; $sql = "SELECT * FROM `Wecken` WHERE `UID`='" . $_SESSION['UID'] . "' ORDER BY `Date` ASC";
$Erg = mysql_query($sql, $con); $Erg = mysql_query($sql, $con);
$count = mysql_num_rows($Erg); $count = mysql_num_rows($Erg);
@ -52,6 +55,7 @@
<td align="left"><a href="./wecken.php?eintragen=loeschen&weckID=<?php echo mysql_result($Erg, $i, "ID") . "\">" . Get_Text("pub_wake_del"); ?></a></td> <td align="left"><a href="./wecken.php?eintragen=loeschen&weckID=<?php echo mysql_result($Erg, $i, "ID") . "\">" . Get_Text("pub_wake_del"); ?></a></td>
</tr> </tr>
<?php <?php
} }
?> ?>
</table> </table>
@ -77,5 +81,6 @@
<input type="submit" name="eintragen" value="<?php echo Get_Text("pub_wake_bouton"); ?>" /> <input type="submit" name="eintragen" value="<?php echo Get_Text("pub_wake_bouton"); ?>" />
</form> </form>
<?php <?php
include ("../../../camp2011/includes/footer.php");
include ("includes/footer.php");
?> ?>