GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ // Diese Datei kann extern aufgerufen werden. // Z.B. durch Scripte von Banbury (Ajax) oder andere Software um bestimmte Aufgaben zu erledigen. ob_start(); // Put all that in Buffer set_include_path('php'); require 'Includes.php'; ## Eventuell sollte das (29) in Zeile 45 um Fremdaufrufe zu verhindern? ## Dann müssten aber initDBConnection und UserLoggedIn ausgelagert werden require 'Functions.php'; require 'RemoteFunctions.php'; initDBConnection(); ## Startet eine Session session_start(); if (!UserLoggedIn()) { Error("Du bist nicht angemeldet."); die; } if (function_exists($_POST['Function'])) { $Values = $_POST; unset($Values['Function']); echo call_user_func_array($_POST['Function'], $Values); } mysql_close($db); $Return = ob_get_contents(); ob_end_clean(); echo $Return;
Banbury is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License. Banbury is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ set_include_path('Register/'); ## Abfrage ob angemeldet if (UserLoggedIn() != 0) { include "Content/LoggedIn.html"; } elseif (isset($_GET['UserKey'])) { ## Benutzer erstellen Schritt 2 $Array = DBQ("SELECT Wert,Nickname,Mail,Passwort FROM Schluessel WHERE Wert='" . $_GET['UserKey'] . "'"); print_r($Array); if (is_array($Array) && count($Array) > 0) { ## Benutzerfreischalten und Zeile erstellen ... $NewID = count(DBQ("SELECT ID FROM USERS")) + 1; $Values = "'" . $NewID . "'"; $Values .= ",'" . $Array[0]['Passwort'] . "'"; $Values .= ",'" . $Array[0]['Nickname'] . "'"; $Values .= ",'" . date("Y-m-d H:i:s", time()) . "'"; $Values .= ",'" . $Array[0]['Mail'] . "'"; DBIN("USERS", "ID,Passwort,Nickname,Anmeldung,Mail", $Values); DBIN("USERS", "ID,Passwort,Nickname,Anmeldung,Mail", $Values);
<?php if (isset($_POST['UserName']) && isset($_POST['Mail'])) { include "php/NewPass.php"; include "Content/Erfolg.html"; } elseif (UserLoggedIn()) { include "Content/LoggedIn.html"; } else { include "Content/index.html"; }
Banbury is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License. Banbury is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ ?> <a href="?Profil">Mein <?php echo PROJECTNAME; ?> </a> | <a href="?Bilder">Bilder</a> | <a href="?Kommentare">Letzte Kommentare</a> <?php if (UserLoggedIn()) { ?> | <a href="?Logout">Abmelden</a><?php } else { ?> | <a href="?Login">Anmelden</a> <?php } ?> <br />