From 3256717165436e4e90bc5ca764babf1bd8d97f0a Mon Sep 17 00:00:00 2001 From: root Date: Wed, 24 Sep 2014 18:55:57 +0200 Subject: improvemend --- bootstrap/functions.php | 214 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 214 insertions(+) (limited to 'bootstrap/functions.php') diff --git a/bootstrap/functions.php b/bootstrap/functions.php index 8c998fc..60408a2 100644 --- a/bootstrap/functions.php +++ b/bootstrap/functions.php @@ -22,3 +22,217 @@ function failure($reason, $httpcode, $ajax = true, $heading = NULL){ # exit the script here exit; } + +function print_login(){ +if(isset($_GET["goto"]) && $_GET["goto"] != "") + $goto = $_GET["goto"]; +else + $goto = "index"; +?> +
+
+ + +

Junge Gemeinde Adlershof

Login required

+ + +
+ +
+ +
+
+ + +
+ +
+ +
+
+ + +
+ +
+ +
+
+ +
+
+ + +

Junge Gemeinde Adlershof

+ +
+
+doQuery("SELECT * FROM " . DBPREFIX . "member;"); +?> +

Adress Liste

+
+ +
+ + + + + + + + + + + + + + + fetch_array(MYSQLI_ASSOC) ){ + echo " + + + + + + + + + "; + $count++; + } + ?> + + */ + ?> + +

#

Name

Adresse

Telefon

Handynummer

E-Mail

Geburtstag

ändern

$count".htmlentities($row['name'])."".htmlentities($row['adresse'])."".htmlentities($row['telefonnummer'])."".htmlentities($row['handynummer'])."".htmlentities($row['email'])."".htmlentities($row['geburtstag'])."
".$count."".$row[1]." + ".$row[2]."".$row[3]."".$row[4]."".$row[5]."".$row[6]."
+
+ +
+
+ + +prepare("SELECT * FROM " . DBPREFIX . "member WHERE member_id = %d", $id); + $result = $db->doQuery($sql); + if(!$result){ + echo "Fail!"; + exit; + } + while ( $row = $result->fetch_array(MYSQLI_ASSOC) ){ +?> +

Änderung für

+ +
+
&goto=liste'> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameAdresseTelefon
'>'>'>
HandynummerE-MailGeburtstag
'>'>'>
+ +
+
+ +

Füge die Daten hinzu

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameAdresseTelefon
HandynummerE-MailGeburtstag
+ +
+
+prepare("INSERT INTO " . DPREFIX . "member (id, name, adresse, telefonnummer, handynummer, email, geburtstag) VALUES (NULL. %s, %s, %s, %s, %s, %s);", $_POST['name'], $_POST['adresse'], $_POST['telefonnummer'], $_POST['handynummer'], $_POST['email'], $_POST['geburtstag']); + if( ! $db->doQuery($sql) ) + return false; + else + return true; +} + +function print_404(){ + header($_SERVER['HTTP_PROTOCOL'] . ' 404 Not Found'); +?> +