summaryrefslogtreecommitdiff
path: root/nonpublic/wecken.php
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-06 00:44:48 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-06 00:44:48 +0000
commit1b5b81d601cc1860f257ba0eb66178875834a111 (patch)
tree9cf2eb95d08d7e21956b1de553043cd3e4c3d72d /nonpublic/wecken.php
parentabf811c6048b3bd77243d284b8864fd608f094b1 (diff)
be begonen auf auf registerglobals=off aus gegeben anlass umzustellen, hab nonpublic geschafft
Variabenpruefung ist auch auf strickt gesetzt und eventuelle error beseitigt git-svn-id: svn://svn.cccv.de/engel-system@14 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'nonpublic/wecken.php')
-rwxr-xr-xnonpublic/wecken.php31
1 files changed, 18 insertions, 13 deletions
diff --git a/nonpublic/wecken.php b/nonpublic/wecken.php
index 91c64d93..f7145336 100755
--- a/nonpublic/wecken.php
+++ b/nonpublic/wecken.php
@@ -5,19 +5,24 @@ $header = "Weckdienst";
include ("./inc/header.php");
include ("./inc/funktion_user.php");
-if ($eintragen == Get_Text("pub_wake_bouton") ) {
- $SQL = "INSERT INTO Wecken (`UID`, `Date`, `Ort`, `Bemerkung`) VALUES (".$_SESSION['UID'].", \"$Date\", \"$Ort\", \"$Bemerkung\") ";
- $Erg = mysql_query($SQL, $con);
- if ($Erg == 1) { Print_Text(4); }
-}
-
-if ($eintragen == "loeschen") {
- $SQL = "Delete from Wecken where UID = ".$_SESSION['UID']." and ID = $weckID limit 1";
- $Erg = mysql_query($SQL, $con);
- if ($Erg == 1) {
- Print_Text(4);
- }
-}
+if( isset($_POST["eintragen"]))
+ if( $_POST["eintragen"] == Get_Text("pub_wake_bouton") )
+ {
+ $SQL = "INSERT INTO Wecken (`UID`, `Date`, `Ort`, `Bemerkung`) ".
+ "VALUES (".$_SESSION['UID'].", \"". $_POST["Date"]. "\", \"". $_POST["Ort"].
+ "\", \"". $_POST["Bemerkung"]. "\") ";
+ $Erg = mysql_query($SQL, $con);
+ if ($Erg == 1)
+ Print_Text(4);
+ }
+if( isset($_GET["eintragen"]))
+ if ($_GET["eintragen"] == "loeschen")
+ {
+ $SQL = "Delete from Wecken where UID = ".$_SESSION['UID']." and ID = ". $_GET["weckID"]." limit 1";
+ $Erg = mysql_query($SQL, $con);
+ if ($Erg == 1)
+ Print_Text(4);
+ }
?>
<? echo Get_Text("Hello").$_SESSION['Nick'].",<br>".Get_Text("pub_wake_beschreibung")?>