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"); } ?>
Mit * markierte Felder sind Pflichtfelder.
logout(); print_login("logout"); } function print_index(){ ?>
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.
Mit * markierte Felder sind Pflichtfelder.
Mit * markierte Felder sind Pflichtfelder.
[^\S ]+/s', // strip whitespaces after tags, except space '/[^\S ]+\', '<', '\\1' ); $buffer = preg_replace($search, $replace, $buffer); return $buffer; }