From 1fe76ba743a3418da9a0883b29756d442384d0bc Mon Sep 17 00:00:00 2001 From: Horus3 Date: Thu, 25 Sep 2014 10:33:47 +0200 Subject: init --- bootstrap/functions.php | 578 ------------------------------------------------ 1 file changed, 578 deletions(-) delete mode 100644 bootstrap/functions.php (limited to 'bootstrap/functions.php') diff --git a/bootstrap/functions.php b/bootstrap/functions.php deleted file mode 100644 index 3e937d2..0000000 --- a/bootstrap/functions.php +++ /dev/null @@ -1,578 +0,0 @@ -isLoggedIn() != 1){ - redirect("login&goto=".$goto); - } -} - -function redirect($goto){ - header($_SERVER["SERVER_PROTOCOL"] . " 302 Moved"); - header("Location: /?page=".$goto); - ob_clean(); - exit; -} -function failure($reason, $httpcode, $ajax = true, $heading = NULL){ - - # send header with $httpcode - header($_SERVER['SERVER_PROTOCOL'] . " " . $httpcode); - - # just echo the reason to the ajax response - if($ajax){ - echo $reason; - exit; - } - - // TODO: Put pretty HTML here, please - - # print full error page - if($heading != NULL) - echo $heading; - - echo $reason; - - # exit the script here - exit; -} - -function print_login($option = false){ -if(isset($_GET["goto"]) && $_GET["goto"] != "") - $goto = htmlentities($_GET["goto"]); -else - $goto = "index"; - - global $user; - if ( $user->isLoggedIn() ){ - redirect("index"); - } -?> -
-
- - -

Junge Gemeinde Adlershof

- -

Login required

- -

Logout erfolgreich!

- -

Nutzer/Passwort falsch

- -

Bitte fülle alle Felder aus!

- -
- - -
- -
- -
-
- - -
- -
- -
-
- - -
- -
- -
-
- -
-
-
-

Mit * markierte Felder sind Pflichtfelder.

- -
-[Passwort vergessen?] -
-logout(); - print_login("logout"); -} - -function print_index(){ -?> -

Junge Gemeinde Adlershof

-
- -
- praing kitten -
-
-
-

Wir sind die Junge Gemeinde in Adlershof.

-

Wir treffen uns immer Donnerstags um 19:30 Uhr in der Remise Arndtstraße 12a.

-

Am besten sind wir über unsere Aktiviere JavaScript um die E-Mail Adresse zu sehen! erreichbar.

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

Adress Liste

- -

Es existiert kein Mitglied mit dieser ID

-
- -
- - -
-
- - - - - - - - - - - - - - - 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'])."
-
-
- -
-
- - -prepare("SELECT * FROM " . DBPREFIX . "member WHERE member_id = %d", $id); - $result = $db->doQuery($sql); - if(!$result){ - print_list("update"); - exit; - } - if ( $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['SERVER_PROTOCOL'] . ' 404 Not Found'); -?> -

404 - Not Found

-
-

The requested page () wasn't found on this server.

- -isLoggedIn() ){ - redirect("index"); - } -?> - -
-
- - -

Junge Gemeinde Adlershof

- -

Register

- -

Passwörter stimmen nicht überein!

- -

Bitte fülle alle mit '*' markierten Felder aus!

- -

Registrierung verweigert!

- -

Nutzer/E-Mail gibt es schon!

- -

Interner Fehler!

- -
- - -
- -
- - -
-
- - -
- -
- - -
-
- - -
- -
- - -
-
- - -
- -
- - Deine E-Mail wird gebraucht, wenn du dein Passwort vergessen hast. -
-
- - -
- -
- - Du solltest den Schlüssel in einer Mail bekommen haben. -
-
- - -
- -
- -
-
- -
-
-
-

Mit * markierte Felder sind Pflichtfelder.

- - -
-
- - - -

- -

Ändere deine Daten

- -

Bitte fülle alle notwendigen Felder aus!

- -

Dein Passwort stimmt nicht!

- -

Nutzer/E-Mail schon vergeben!

- -

Interner Fehler!

- -

Erfolgreich aktualisiert!

- -
- - -
- -
- " required=""> - Wechsle deinen Namen hier. -
-
- - -
- -
- - Ändere dein Passwort. Lass das Feld leer, wenn du es nicht ändern möchtest. -
-
- - -
- -
- - Ändere deine E-Mail Adresse. -
-
- - -
- -
- - Bestätige die Angaben mit deinem gültigen Passwort. -
-
- - -
- -
- -
-
- -
-
-
-

Mit * markierte Felder sind Pflichtfelder.

- - -
-
- - -

Junge Gemeinde Adlershof

- -

Passwort zugeschickt!

- -

Fehler! Passwort konnte nicht geändert werden.

- -

Passwort wiederherstellen

- -
- - -
- -
- - Wenn deine E-Mail gespeichert ist, wird dir das neue Passwort automatisch zugestellt. -
-
- - -
- -
- -
-
- -
-
- - -[^\S ]+/s', // strip whitespaces after tags, except space - '/[^\S ]+\', - '<', - '\\1' - ); - - $buffer = preg_replace($search, $replace, $buffer); - - return $buffer; -} -- cgit v1.2.3