bootstrapping
This commit is contained in:
parent
6ebee2c46b
commit
a537f4bf73
|
@ -1,9 +1,10 @@
|
|||
<?php
|
||||
require_once('../bootstrap.php');
|
||||
|
||||
$title = "Newsverwaltung";
|
||||
$header = "Verwaltung der News";
|
||||
include ("../../../camp2011/includes/header.php");
|
||||
include ("../../../camp2011/includes/funktion_db_list.php");
|
||||
include ("includes/header.php");
|
||||
include ("includes/funktion_db_list.php");
|
||||
|
||||
|
||||
if (!IsSet($_GET["action"]))
|
||||
|
@ -85,7 +86,7 @@ else
|
|||
echo "FEHLER: Eintrag \"". $_GET["date"]. "\" nicht gefunden";
|
||||
}
|
||||
else
|
||||
echo "Fehler: \"date\" nicht übergeben";
|
||||
echo "Fehler: \"date\" nicht <EFBFBD>bergeben";
|
||||
break;
|
||||
|
||||
case 'change_save':
|
||||
|
@ -93,20 +94,20 @@ else
|
|||
$chsql="UPDATE `News` SET `Betreff`='". $_GET["eBetreff"]. "', `Text`='". $_GET["eText"].
|
||||
"', `Treffen`='". $_GET["eTreffen"]. "' WHERE (`Datum`='". $_GET["date"]. "') limit 1";
|
||||
else
|
||||
echo "Fehler: nicht genügend parameter übergeben";
|
||||
echo "Fehler: nicht gen<EFBFBD>gend parameter <20>bergeben";
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (isset($_POST["date"]))
|
||||
$chsql="DELETE FROM `News` WHERE `Datum`='". $_POST["date"]. "' LIMIT 1";
|
||||
else
|
||||
echo "Fehler: \"date\" nicht übergeben";
|
||||
echo "Fehler: \"date\" nicht <EFBFBD>bergeben";
|
||||
break;
|
||||
} //SWITCH
|
||||
|
||||
if (IsSet($chsql))
|
||||
{
|
||||
// SQL-Statement ausführen...
|
||||
// SQL-Statement ausf<EFBFBD>hren...
|
||||
$Erg = mysql_query($chsql, $con);
|
||||
If ($Erg == 1)
|
||||
echo "Änderung erfolgreich gesichert...";
|
||||
|
@ -117,6 +118,6 @@ else
|
|||
}
|
||||
}// IF-ELSE
|
||||
|
||||
include ("../../../camp2011/includes/footer.php");
|
||||
include ("includes/footer.php");
|
||||
?>
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ footer p {
|
|||
margin: 0 5%;
|
||||
}
|
||||
|
||||
td {
|
||||
td, dt, dd {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
<?php
|
||||
require_once ('bootstrap.php');
|
||||
|
||||
$title = "Anmeldung zum Chaos-Engel";
|
||||
$header = "";
|
||||
$success = "none";
|
||||
|
||||
include "../config/config.php";
|
||||
include "../includes/header.php";
|
||||
include "../config/config_db.php";
|
||||
include "../includes/crypt.php";
|
||||
include "config/config.php";
|
||||
include "includes/header.php";
|
||||
include "config/config_db.php";
|
||||
include "includes/crypt.php";
|
||||
|
||||
if (isset ($_POST["send"])) {
|
||||
$eNick = trim($_POST["Nick"]);
|
||||
|
@ -20,16 +22,11 @@
|
|||
|
||||
if (strlen($_POST["Nick"]) < 2)
|
||||
$error = Get_Text("makeuser_error_nick1") . $_POST["Nick"] . Get_Text("makeuser_error_nick2");
|
||||
elseif(mysql_num_rows( $Ergans) > 0)
|
||||
$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(!is_numeric($_POST["Alter"]))
|
||||
$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");
|
||||
elseif (mysql_num_rows($Ergans) > 0) $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 (!is_numeric($_POST["Alter"])) $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 {
|
||||
$_POST["Passwort"] = PassCrypt($_POST["Passwort"]);
|
||||
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>" . Get_Text("makeuser_T-Shirt") . " Grösse*</td><td align=\"left\">\n";
|
||||
echo "<select name=\"Size\">\n";
|
||||
echo "<option value=\"S\""; if ($_POST["Size"]=="S") echo " selected"; echo ">S</option>\n";
|
||||
echo "<option value=\"M\""; if ($_POST["Size"]=="M") echo " selected"; echo ">M</option>\n";
|
||||
echo "<option value=\"L\""; if ($_POST["Size"]=="L") echo " selected"; 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 "<option value=\"S\"";
|
||||
if ($_POST["Size"] == "S")
|
||||
echo " selected";
|
||||
echo ">S</option>\n";
|
||||
echo "<option value=\"M\"";
|
||||
if ($_POST["Size"] == "M")
|
||||
echo " selected";
|
||||
echo ">M</option>\n";
|
||||
echo "<option value=\"L\"";
|
||||
if ($_POST["Size"] == "L")
|
||||
echo " selected";
|
||||
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 "</td></tr>\n";
|
||||
echo "<tr><td>" . Get_Text("makeuser_Engelart") . "</td><td align=\"left\">\n";
|
||||
|
@ -177,5 +210,5 @@
|
|||
Print_Text("makeuser_text3");
|
||||
}
|
||||
|
||||
include "../includes/footer.php";
|
||||
include "includes/footer.php";
|
||||
?>
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
header("Content-Type: application/json");
|
||||
|
||||
include "../../../camp2011/includes/config.php";
|
||||
include "../../../camp2011/includes/config_db.php";
|
||||
include "includes/config.php";
|
||||
include "includes/config_db.php";
|
||||
|
||||
$User = $_POST['user'];
|
||||
$Pass = $_POST['pw'];
|
||||
|
@ -21,12 +23,21 @@
|
|||
$Erg_CVS = mysql_query($SQL, $con);
|
||||
$CVS = mysql_fetch_array($Erg_CVS);
|
||||
|
||||
$msg = array('status' => 'success', 'rights' => $CVS);
|
||||
$msg = array (
|
||||
'status' => 'success',
|
||||
'rights' => $CVS
|
||||
);
|
||||
echo json_encode($msg);
|
||||
} else
|
||||
echo json_encode(array('status' => 'failed'));
|
||||
echo json_encode(array (
|
||||
'status' => 'failed'
|
||||
));
|
||||
} else
|
||||
echo json_encode(array('status' => 'failed'));
|
||||
echo json_encode(array (
|
||||
'status' => 'failed'
|
||||
));
|
||||
} else
|
||||
echo json_encode(array('status' => 'failed'));
|
||||
echo json_encode(array (
|
||||
'status' => 'failed'
|
||||
));
|
||||
?>
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
$title = "Himmel";
|
||||
$header = "Deine persönlichen Einstellungen";
|
||||
include "../../../camp2011/includes/header.php";
|
||||
include "../../../camp2011/includes/crypt.php";
|
||||
include "includes/header.php";
|
||||
include "includes/crypt.php";
|
||||
|
||||
if (!isset ($_POST["action"])) {
|
||||
echo Get_Text("Hallo") . $_SESSION['Nick'] . ",<br />\n\n";
|
||||
|
@ -69,6 +71,8 @@
|
|||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
if ($_SESSION['CVS']["Change T_Shirt Size"] == "Y") {
|
||||
?>
|
||||
<tr>
|
||||
|
@ -83,6 +87,8 @@ if($_SESSION['CVS']["Change T_Shirt Size"] == "Y") {
|
|||
</select></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
@ -147,7 +153,11 @@ if($_SESSION['CVS']["Change T_Shirt Size"] == "Y") {
|
|||
<select name="language">
|
||||
<option value="DE" <?php if($_SESSION['Sprache'] == 'DE') { echo "selected"; } ?>>Deutsch</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>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
@ -155,6 +165,8 @@ if($_SESSION['CVS']["Change T_Shirt Size"] == "Y") {
|
|||
</form>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
if (get_cfg_var("file_uploads")) {
|
||||
echo "<br />\n<hr width=\"100%\">\n<br />\n\n";
|
||||
echo Get_Text('pub_einstellungen_PictureUpload') . "<br />";
|
||||
|
@ -273,8 +285,7 @@ case 'avatar':
|
|||
break;
|
||||
|
||||
case 'setUserData' :
|
||||
if( $_SESSION['CVS'][ "Change T_Shirt Size" ] == "Y" )
|
||||
{
|
||||
if ($_SESSION['CVS']["Change T_Shirt Size"] == "Y") {
|
||||
$chsql = "UPDATE `User` SET " .
|
||||
"`Nick`='" . $_POST["eNick"] . "', `Name`='" . $_POST["eName"] . "', " .
|
||||
"`Vorname`='" . $_POST["eVorname"] . "', `Alter`='" . $_POST["eAlter"] . "', " .
|
||||
|
@ -283,9 +294,7 @@ case 'setUserData':
|
|||
"`ICQ`='" . $_POST["eICQ"] . "', `jabber`='" . $_POST["ejabber"] . "', " .
|
||||
"`Hometown`='" . $_POST["Hometown"] . "', `Size`='" . $_POST["Sizeid"] . "' " .
|
||||
"WHERE `UID`='" . $_SESSION['UID'] . "' LIMIT 1;";
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$chsql = "UPDATE `User` SET " .
|
||||
"`Nick`='" . $_POST["eNick"] . "', `Name`='" . $_POST["eName"] . "', " .
|
||||
"`Vorname`='" . $_POST["eVorname"] . "', `Alter`='" . $_POST["eAlter"] . "', " .
|
||||
|
@ -297,8 +306,7 @@ case 'setUserData':
|
|||
}
|
||||
$Erg = mysql_query($chsql, $con);
|
||||
|
||||
if ($Erg==1)
|
||||
{
|
||||
if ($Erg == 1) {
|
||||
$_SESSION['Nick'] = $_POST["eNick"];
|
||||
$_SESSION['Name'] = $_POST["eName"];
|
||||
$_SESSION['Vorname'] = $_POST["eVorname"];
|
||||
|
@ -310,32 +318,23 @@ case 'setUserData':
|
|||
$_SESSION['ICQ'] = $_POST["eICQ"];
|
||||
$_SESSION['jabber'] = $_POST["ejabber"];
|
||||
$_SESSION['Hometown'] = $_POST["Hometown"];
|
||||
if( $_SESSION['CVS'][ "Change T_Shirt Size" ] == "Y" )
|
||||
{
|
||||
if ($_SESSION['CVS']["Change T_Shirt Size"] == "Y") {
|
||||
$_SESSION['Size'] = $_POST["Sizeid"];
|
||||
}
|
||||
else if( $_SESSION['Size'] != $_POST["Sizeid"])
|
||||
{
|
||||
} else
|
||||
if ($_SESSION['Size'] != $_POST["Sizeid"]) {
|
||||
array_push($error_messages, "einstellungen.php, change t-shirt size not allowed\n");
|
||||
}
|
||||
|
||||
|
||||
Print_Text("pub_einstellungen_UserDateSaved");
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
Print_Text(29);
|
||||
echo mysql_error($con);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'sendPicture' :
|
||||
if( $_FILES["file"]["size"] > 0)
|
||||
{
|
||||
if( ($_FILES["file"]["type"] == "image/jpeg") ||
|
||||
($_FILES["file"]["type"] == "image/png") ||
|
||||
($_FILES["file"]["type"] == "image/gif") )
|
||||
{
|
||||
if ($_FILES["file"]["size"] > 0) {
|
||||
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"])));
|
||||
|
||||
if (GetPicturShow($_SESSION['UID']) == "")
|
||||
|
@ -356,11 +355,9 @@ case 'sendPicture':
|
|||
Print_Text("pub_einstellungen_send_KO");
|
||||
|
||||
echo "<h6>('" . $_FILES["file"]["name"] . "', MIME-Type: " . $_FILES["file"]["type"] . ", " . $_FILES["file"]["size"] . " Byte)</h6>";
|
||||
}
|
||||
else
|
||||
} else
|
||||
Print_Text("pub_einstellungen_send_KO");
|
||||
}
|
||||
else
|
||||
} else
|
||||
Print_Text("pub_einstellungen_send_KO");
|
||||
break;
|
||||
|
||||
|
@ -374,5 +371,5 @@ case 'delPicture':
|
|||
Break;
|
||||
}
|
||||
}
|
||||
include ("../../../camp2011/includes/footer.php");
|
||||
include ("includes/footer.php");
|
||||
?>
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
$title = "Himmel";
|
||||
$header = "Engelbesprechung";
|
||||
include "../../../camp2011/includes/header.php";
|
||||
include "includes/header.php";
|
||||
|
||||
$SQL = "SELECT * FROM `News` ORDER BY 'Datum' DESC";
|
||||
$Erg = mysql_query($SQL, $con);
|
||||
|
@ -23,5 +25,5 @@
|
|||
}
|
||||
}
|
||||
|
||||
include ("../../../camp2011/includes/footer.php");
|
||||
include ("includes/footer.php");
|
||||
?>
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
$title = "Himmel";
|
||||
$header = "FAQ / Fragen an die Erzengel";
|
||||
include "../../../camp2011/includes/header.php";
|
||||
include "includes/header.php";
|
||||
|
||||
// Erstaufruf, oder Frage bereits abgeschickt?
|
||||
if (!isset ($_POST["eUID"])) {
|
||||
|
@ -14,6 +16,8 @@
|
|||
<input type="submit" value="<?php Print_Text("save"); ?>">
|
||||
</form>
|
||||
<?php
|
||||
|
||||
|
||||
} else {
|
||||
// Auswertung d. Formular-Daten:
|
||||
|
||||
|
@ -65,5 +69,5 @@ if ($Zeilen==0){
|
|||
}
|
||||
}
|
||||
|
||||
include ("../../../camp2011/includes/footer.php");
|
||||
include ("includes/footer.php");
|
||||
?>
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
$title = "Himmel";
|
||||
$header = "";
|
||||
|
||||
include "../../../camp2011/includes/header.php";
|
||||
include "includes/header.php";
|
||||
|
||||
if (!isset ($_GET["action"]))
|
||||
$_GET["action"] = "start";
|
||||
|
@ -118,5 +120,5 @@
|
|||
echo Get_Text("pub_messages_NoCommand");
|
||||
}
|
||||
|
||||
include "../../../camp2011/includes/footer.php";
|
||||
include "includes/footer.php";
|
||||
?>
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
<?php
|
||||
|
||||
// Eigener Schichtplan
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
$title = "Himmel";
|
||||
$header = "Mein Schichtplan";
|
||||
|
||||
include ("../../../camp2011/includes/header.php");
|
||||
include ("../../../camp2011/includes/funktionen.php");
|
||||
include ("../../../camp2011/includes/funktion_schichtplan.php");
|
||||
include ("../../../camp2011/includes/funktion_schichtplan_aray.php");
|
||||
include ("includes/header.php");
|
||||
include ("includes/funktionen.php");
|
||||
include ("includes/funktion_schichtplan.php");
|
||||
include ("includes/funktion_schichtplan_aray.php");
|
||||
|
||||
if (!isset ($_GET["action"])) {
|
||||
echo Get_Text("Hello") . $_SESSION['Nick'] . ", <br />\n";
|
||||
|
@ -51,7 +55,6 @@
|
|||
"WHERE `ShiftEntry`.`UID`='$USER_ID' " .
|
||||
"ORDER BY `DateS`";
|
||||
$erg = mysql_query($SQL, $con);
|
||||
|
||||
?>
|
||||
<table border="0" class="border" cellpadding="2" cellspacing="1">
|
||||
<tr>
|
||||
|
@ -65,8 +68,8 @@
|
|||
</tr>
|
||||
<?php
|
||||
|
||||
for( $i=0; $i<mysql_num_rows( $erg ); $i++ )
|
||||
{
|
||||
|
||||
for ($i = 0; $i < mysql_num_rows($erg); $i++) {
|
||||
echo "<tr class=\"content\">";
|
||||
|
||||
echo "<td>" . substr(mysql_result($erg, $i, "DateS"), 0, 10) . "</td>\n";
|
||||
|
@ -96,7 +99,7 @@
|
|||
$lastAustragen = $LETZTES_AUSTRAGEN * 3600;
|
||||
$nowdate = time();
|
||||
// wenn Schichtbeginn > jetziges Datum + $LETZTES_AUSTRAGEN - Stunden soll ein Austragen
|
||||
// noch möglich sein
|
||||
// noch m<>glich sein
|
||||
if ($schichtdatum > ($lastAustragen + $nowdate))
|
||||
echo "<td> <a href=\"./myschichtplan.php?action=austragen&SID=" .
|
||||
mysql_result($erg, $i, "SID") . "\">" .
|
||||
|
@ -108,16 +111,12 @@
|
|||
}
|
||||
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";
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
If( $_GET["action"] == "austragen" )
|
||||
{
|
||||
} else {
|
||||
If ($_GET["action"] == "austragen") {
|
||||
echo Get_Text("pub_mywake_delate1") . "<br />\n";
|
||||
|
||||
$sql = "SELECT * FROM `Shifts` WHERE (`SID` = '" . $_GET["SID"] . "')";
|
||||
|
@ -135,9 +134,8 @@ else
|
|||
$lastAustragen = $LETZTES_AUSTRAGEN * 3600;
|
||||
$nowdate = time();
|
||||
// wenn Schichtbeginn > jetziges Datum + $LETZTES_AUSTRAGEN - Stunden soll ein Austragen
|
||||
// noch möglich sein
|
||||
if( $schichtdatum > ($lastAustragen + $nowdate) )
|
||||
{
|
||||
// noch m<>glich sein
|
||||
if ($schichtdatum > ($lastAustragen + $nowdate)) {
|
||||
$sql2 = "UPDATE `ShiftEntry` " .
|
||||
"SET `UID` = '0', `Comment` = NULL " .
|
||||
"WHERE `SID` = '" . $_GET["SID"] . "' AND `UID` = '" . $_SESSION['UID'] . "' LIMIT 1;";
|
||||
|
@ -146,12 +144,10 @@ else
|
|||
echo Get_Text("pub_mywake_add_ok") . "\n";
|
||||
else
|
||||
echo Get_Text("pub_mywake_add_ko") . "\n";
|
||||
}
|
||||
else
|
||||
} else
|
||||
echo Get_Text("pub_mywake_after") . "\n";
|
||||
}
|
||||
elseif( $_GET["action"] == "edit" )
|
||||
{
|
||||
elseif ($_GET["action"] == "edit") {
|
||||
echo Get_Text("pub_myshift_Edit_Text1") . "\n";
|
||||
|
||||
$sql = "SELECT * FROM `ShiftEntry` WHERE ";
|
||||
|
@ -165,8 +161,7 @@ else
|
|||
echo "<input type=\"hidden\" name=\"action\" value=\"editSave\">\n";
|
||||
echo "</form>";
|
||||
}
|
||||
elseif( $_GET["action"] == "editSave" )
|
||||
{
|
||||
elseif ($_GET["action"] == "editSave") {
|
||||
echo Get_Text("pub_myshift_EditSave_Text1") . "<br />\n";
|
||||
$sql = "UPDATE `ShiftEntry` " .
|
||||
"SET `Comment` = '" . $_GET["newtext"] . "' " .
|
||||
|
@ -179,5 +174,5 @@ else
|
|||
SetHeaderGo2Back();
|
||||
}
|
||||
}
|
||||
include ("../../../camp2011/includes/footer.php");
|
||||
include ("includes/footer.php");
|
||||
?>
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<?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` " .
|
||||
"INNER JOIN `ShiftEntry` " .
|
||||
|
@ -10,7 +12,6 @@ $SQL = "SELECT *, `ShiftEntry`.`Comment`, `ShiftEntry`.`TID` FROM `Shifts` ".
|
|||
"ORDER BY `DateS`";
|
||||
$erg = mysql_query($SQL, $con);
|
||||
|
||||
|
||||
//HEADER
|
||||
header("Content-Type: text/x-vCalendar");
|
||||
header("Content-Disposition: attachment; filename=\"Schichtplan.ics\"");
|
||||
|
@ -25,8 +26,7 @@ echo "CALSCALE:GREGORIAN\n";
|
|||
echo "METHOD:PUBLISH\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 "UID:" . md5(mysql_result($erg, $i, "Man") . mysql_result($erg, $i, "DateS")) . "\n";
|
||||
echo "METHOD:PUBLISH\n";
|
||||
|
@ -46,7 +46,6 @@ for( $i=0; $i<mysql_num_rows( $erg ); $i++ )
|
|||
}
|
||||
echo "END:VCALENDAR\n";
|
||||
|
||||
include( "../../../camp2011/includes/funktion_counter.php");
|
||||
|
||||
include ("includes/funktion_counter.php");
|
||||
?>
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
$title = "Kommentare zu den News";
|
||||
$header = "Kommentar";
|
||||
include ("../../../camp2011/includes/header.php");
|
||||
include ("includes/header.php");
|
||||
|
||||
if (isset ($_GET["nid"])) {
|
||||
if (isset ($_GET["text"])) {
|
||||
|
@ -33,6 +35,8 @@ if(isset($_GET["nid"])) {
|
|||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
for ($n = 0; $n < $news_rows; $n++) {
|
||||
echo "\t<tr class=\"content\">";
|
||||
echo "\t\t<td width=100>";
|
||||
|
@ -52,7 +56,6 @@ for ($n = 0 ; $n < $news_rows ; $n++) {
|
|||
}
|
||||
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
|
||||
<br />
|
||||
|
@ -75,11 +78,9 @@ echo "</table>";
|
|||
<?php
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
echo "Fehlerhafter Aufruf!";
|
||||
}
|
||||
|
||||
include ("../../../camp2011/includes/footer.php");
|
||||
include ("includes/footer.php");
|
||||
?>
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
<h4> Tage </h4>
|
||||
|
||||
<?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;
|
||||
echo "\t<li><a href='./schichtplan.php?ausdatum=$Datum";
|
||||
// ist ein raum gesetzt?
|
||||
|
@ -16,6 +17,4 @@ function Printlink( $Datum)
|
|||
if (isset ($VeranstaltungsTage))
|
||||
foreach ($VeranstaltungsTage as $k => $v)
|
||||
Printlink($v);
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<h4> Raumübersicht</h4>
|
||||
<?php
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
include ("../../../camp2011/includes/funktion_schichtplan_aray.php");
|
||||
include ("includes/funktion_schichtplan_aray.php");
|
||||
|
||||
if (isset ($Room))
|
||||
foreach( $Room as $RoomEntry )
|
||||
{
|
||||
foreach ($Room as $RoomEntry) {
|
||||
if (isset ($ausdatum))
|
||||
echo "\t<li><a href='./schichtplan.php?ausdatum=$ausdatum&raum=" . $RoomEntry["RID"] . "'>" .
|
||||
$RoomEntry["Name"] . "</a></li>\n";
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
$title = "Himmel";
|
||||
$header = "Schichtpläne";
|
||||
$submenus = 2;
|
||||
|
@ -18,10 +20,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
include ("../../../camp2011/includes/header.php");
|
||||
include ("../../../camp2011/includes/funktionen.php");
|
||||
include ("../../../camp2011/includes/funktion_schichtplan.php");
|
||||
include ("../../../camp2011/includes/funktion_schichtplan_aray.php");
|
||||
include ("includes/header.php");
|
||||
include ("includes/funktionen.php");
|
||||
include ("includes/funktion_schichtplan.php");
|
||||
include ("includes/funktion_schichtplan_aray.php");
|
||||
|
||||
echo Get_Text("Hello") . $_SESSION['Nick'] . ",<br />" .
|
||||
Get_Text("pub_schicht_beschreibung") . "<br /><br />";
|
||||
|
@ -33,8 +35,7 @@
|
|||
|
||||
if (isset ($VeranstaltungsTage))
|
||||
foreach ($VeranstaltungsTage as $k => $v)
|
||||
if( $ausdatum == $v)
|
||||
{
|
||||
if ($ausdatum == $v) {
|
||||
if ($k > 0)
|
||||
echo "\t\t\t<td align=\"left\">" .
|
||||
"<a href='./schichtplan.php?ausdatum=" . $VeranstaltungsTage[$k -1] .
|
||||
|
@ -49,13 +50,11 @@
|
|||
|
||||
// wenn kein Datum gesetzt ist (die Seite zum ersten mal aufgerufen wird),
|
||||
// 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 '2004-12-29%' ORDER BY `DateS`";
|
||||
$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";
|
||||
$Erg = mysql_query($sql, $con);
|
||||
}
|
||||
|
@ -66,18 +65,13 @@ if( !isset($ausdatum) )
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ( !isset($raum) )
|
||||
{
|
||||
// Ausgabe wenn kein Raum Ausgewählt:
|
||||
if (!isset ($raum)) {
|
||||
// Ausgabe wenn kein Raum Ausgew<65>hlt:
|
||||
echo Get_Text("pub_schicht_auswahl_raeume") . "<br /><br />\n";
|
||||
|
||||
if( isset($Room))
|
||||
{
|
||||
if (isset ($Room)) {
|
||||
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 "<a href='./schichtplan.php?ausdatum=$ausdatum&raum=" . $RoomEntry["RID"] . "'>" . $RoomEntry["Name"] . "</a>";
|
||||
echo "</input></li>\n";
|
||||
|
@ -95,16 +89,12 @@ if ( !isset($raum) )
|
|||
echo "<hr>\n\n";
|
||||
echo Get_Text("pub_schicht_EmptyShifts") . "\n";
|
||||
|
||||
|
||||
// zeit die naesten freien schichten
|
||||
showEmptyShifts();
|
||||
}
|
||||
else
|
||||
{ // Wenn einraum Ausgewählt ist:
|
||||
} else { // Wenn einraum Ausgew<65>hlt ist:
|
||||
if ($raum == -1)
|
||||
echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum . ":<br /><br />";
|
||||
elseif( substr( $raum, 0, 1) == ";" )
|
||||
echo Get_Text("pub_schicht_Anzeige_1").$ausdatum.":<br /><br />";
|
||||
elseif (substr($raum, 0, 1) == ";") echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum . ":<br /><br />";
|
||||
else
|
||||
echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum .
|
||||
Get_Text("pub_schicht_Anzeige_2") . $RoomID[$raum] . "<br /><br />";
|
||||
|
@ -115,33 +105,27 @@ else
|
|||
echo "\t<tr class=\"contenttopic\">\n";
|
||||
echo "\t\t<td>start</td>\n";
|
||||
|
||||
//Ausgabe Spalten überschrift
|
||||
if( $raum == -1 )
|
||||
{
|
||||
//Ausgabe Spalten <20>berschrift
|
||||
if ($raum == -1) {
|
||||
if (isset ($Room))
|
||||
foreach ($Room as $RoomEntry)
|
||||
if (SummRoomShifts($RoomEntry["RID"]) > 0)
|
||||
echo "\t\t<th>" . $RoomEntry["Name"] . "</th>\n";
|
||||
}
|
||||
elseif( substr( $raum, 0, 1) == ";" )
|
||||
{
|
||||
elseif (substr($raum, 0, 1) == ";") {
|
||||
$words = preg_split("/;/", $raum);
|
||||
foreach ($words as $word)
|
||||
{
|
||||
foreach ($words as $word) {
|
||||
if (strlen(trim($word)) > 0)
|
||||
echo "\t\t<th>" . $RoomID[trim($word)] . "</th>\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
echo "\t\t<th>" . $RoomID[$raum] . "</th>\n";
|
||||
echo "\t</tr>\n";
|
||||
|
||||
//Zeit Ausgeben
|
||||
for ($i = 0; $i < 24; $i++)
|
||||
for( $j = 0; $j < $GlobalZeileProStunde; $j++)
|
||||
{
|
||||
$Spalten[$i * $GlobalZeileProStunde + $j] =
|
||||
"\t<tr class=\"content\">\n\t\t";
|
||||
for ($j = 0; $j < $GlobalZeileProStunde; $j++) {
|
||||
$Spalten[$i * $GlobalZeileProStunde + $j] = "\t<tr class=\"content\">\n\t\t";
|
||||
|
||||
//Stunde:
|
||||
$SpaltenTemp = "";
|
||||
|
@ -159,32 +143,26 @@ else
|
|||
$Spalten[$i * $GlobalZeileProStunde + $j] .= $SpaltenTemp;
|
||||
}
|
||||
|
||||
if( $raum == -1 )
|
||||
{
|
||||
if ($raum == -1) {
|
||||
if (isset ($Room))
|
||||
foreach ($Room as $RoomEntry)
|
||||
if (SummRoomShifts($RoomEntry["RID"]) > 0)
|
||||
CreateRoomShifts($RoomEntry["RID"]);
|
||||
}
|
||||
elseif( substr( $raum, 0, 1) == ";" )
|
||||
{
|
||||
if( isset($Room))
|
||||
{
|
||||
elseif (substr($raum, 0, 1) == ";") {
|
||||
if (isset ($Room)) {
|
||||
$words = preg_split("/;/", $raum);
|
||||
foreach ($words as $word)
|
||||
{
|
||||
foreach ($words as $word) {
|
||||
if (strlen(trim($word)) > 0)
|
||||
if (SummRoomShifts($word) > 0)
|
||||
CreateRoomShifts($word);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
CreateRoomShifts($raum);
|
||||
|
||||
//Ausageb Zeilen
|
||||
for ($i = 0; $i < (24 * $GlobalZeileProStunde); $i++)
|
||||
{
|
||||
for ($i = 0; $i < (24 * $GlobalZeileProStunde); $i++) {
|
||||
echo $Spalten[$i] . "\t</tr>\n";
|
||||
}
|
||||
|
||||
|
@ -196,5 +174,5 @@ else
|
|||
|
||||
echo "<a href=\"" . $_SESSION["newurl"] . "&Icon=0\">@</a>";
|
||||
|
||||
include ("../../../camp2011/includes/footer.php");
|
||||
include ("includes/footer.php");
|
||||
?>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<?php
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
$title = "Himmel";
|
||||
$header = "Schichtpläne";
|
||||
include "../../../camp2011/includes/header.php";
|
||||
include "../../../camp2011/includes/funktion_schichtplan.php";
|
||||
include "../../../camp2011/includes/funktion_schichtplan_aray.php";
|
||||
include "../../../camp2011/includes/funktionen.php";
|
||||
include "includes/header.php";
|
||||
include "includes/funktion_schichtplan.php";
|
||||
include "includes/funktion_schichtplan_aray.php";
|
||||
include "includes/funktionen.php";
|
||||
|
||||
if (isset ($_POST["newtext"]) && isset ($_POST["SID"]) && isset ($_POST["TID"])) {
|
||||
SetHeaderGo2Back();
|
||||
|
@ -63,7 +65,8 @@
|
|||
echo "<h1>:-(</h1>";
|
||||
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
|
||||
if (!isset ($_SESSION['CVS'][$TID2Name[$_GET["TID"]]]))
|
||||
$_SESSION['CVS'][$TID2Name[$_GET["TID"]]] = "Y";
|
||||
|
@ -107,5 +110,5 @@
|
|||
}
|
||||
}
|
||||
|
||||
include "../../../camp2011/includes/footer.php";
|
||||
include "includes/footer.php";
|
||||
?>
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
include "../../../camp2011/includes/header_start.php";
|
||||
include "../../../camp2011/includes/funktionen.php";
|
||||
include "../../../camp2011/includes/funktion_schichtplan_beamer.php";
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
include "includes/header_start.php";
|
||||
include "includes/funktionen.php";
|
||||
include "includes/funktion_schichtplan_beamer.php";
|
||||
|
||||
$Time = time() + 3600 + 3600;
|
||||
?>
|
||||
|
@ -16,6 +18,8 @@
|
|||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
echo "<table border=\"1\" width=\"100%\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" frame=\"void\">\n";
|
||||
|
||||
echo "<colgroup span=\"4\" valign=\"center\">
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
$title = "Himmel";
|
||||
$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>
|
||||
|
@ -15,6 +17,8 @@
|
|||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
$sql = "SELECT * FROM `Wecken` ORDER BY `Date` ASC";
|
||||
$Erg = mysql_query($sql, $con);
|
||||
$count = mysql_num_rows($Erg);
|
||||
|
@ -29,10 +33,14 @@
|
|||
<td align="left"><?php echo mysql_result($Erg, $i, "Bemerkung"); ?> </td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
include "../../../camp2011/includes/footer.php";
|
||||
|
||||
|
||||
include "includes/footer.php";
|
||||
?>
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
$title = "Himmel";
|
||||
$header = "Weckdienst";
|
||||
|
||||
include "../../../camp2011/includes/header.php";
|
||||
include "includes/header.php";
|
||||
|
||||
if (isset ($_POST["eintragen"])) {
|
||||
if ($_POST["eintragen"] == Get_Text("pub_wake_bouton")) {
|
||||
|
@ -38,6 +40,7 @@
|
|||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
$sql = "SELECT * FROM `Wecken` WHERE `UID`='" . $_SESSION['UID'] . "' ORDER BY `Date` ASC";
|
||||
$Erg = mysql_query($sql, $con);
|
||||
$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>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
@ -77,5 +81,6 @@
|
|||
<input type="submit" name="eintragen" value="<?php echo Get_Text("pub_wake_bouton"); ?>" />
|
||||
</form>
|
||||
<?php
|
||||
include ("../../../camp2011/includes/footer.php");
|
||||
|
||||
include ("includes/footer.php");
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue