rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit d7181a15822df3664bfd84cc4b753f2e9cf6b17e
parent c70b72e6162fcd29e362150115379ed082be2f3c
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 30 Nov 2014 16:41:03 +0100

I forgot onbe file

Diffstat:
Mcore/backend/admin/user/login/logout.php | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/core/backend/admin/user/login/logout.php b/core/backend/admin/user/login/logout.php @@ -1,13 +1,17 @@ <?php include('./navi.php'); $cookie = $_COOKIE["acess"]; - $verbindung = mysql_connect ("localhost","db_acess", "raspberry") or die ("keine Verbindung möglich. Benutzername oder Passwort sind falsch"); - mysql_select_db("login_sec") or die("db geht nicht"); + include('../../../../config/connect.db.inc.php'); + //Check if Database connection established + if (mysqli_connect_errno()) { + printf("Verbindung fehlgeschlagen: %s\n", mysqli_connect_error()); + exit(); + } include('./check_auth.php'); if (!$authokay) { die('nobody to logout'); } $loeschen = "DELETE FROM cookiedata WHERE cookie_hash = '$cookie'"; - $loesch = mysql_query($loeschen); + $loesch = mysql_query($connection, $loeschen); print('logged out'); ?> \ No newline at end of file