rpicms

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

commit 1d4a797e9a97e0ba7bd2a851ee4a535e00a4e424
parent c6ed536d9c0bb6bd0934d8c07e82e69d537e8881
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 30 Nov 2014 16:29:39 +0100

add GA lib link corectly

Diffstat:
Mcore/backend/admin/user/login/login_handling.php | 6+++---
Mcore/backend/admin/user/login/register_handling.php | 2+-
Mcore/backend/admin/user/login/secret.php | 2+-
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/core/backend/admin/user/login/login_handling.php b/core/backend/admin/user/login/login_handling.php @@ -19,7 +19,7 @@ $abfrage = "SELECT time,vaild_sec,token FROM hashtoken WHERE token = '$token'"; $ergebnis = mysqli_query($connection, $abfrage); - while($row = mysqli_fetch_object($connection, $ergebnis)){ + while($row = mysqli_fetch_object($ergebnis)){ $token_vaild = true; $creat_time = $row->time; $vaild_sec = $row->vaild_sec; @@ -36,7 +36,7 @@ $user_exist = false; $abfrage = "SELECT name,passwdhash,id,ga_secret FROM user WHERE name = '$user'"; $ergebnis = mysqli_query($connection, $abfrage); - while($row = mysqli_fetch_object($connection, $ergebnis)){ + while($row = mysqli_fetch_object($ergebnis)){ $user_exist = true; $passwdhash = $row->passwdhash; $userid = $row->id; @@ -65,7 +65,7 @@ $abfrage = "SELECT id, hash FROM cookiedata WHERE hash = '$hash'"; $ergebnis = mysqli_query($connection, $abfrage); - while($row = mysqli_fetch_object($connection, $ergebnis)){ + while($row = mysqli_fetch_object($ergebnis)){ if ($row->hash == $hash){ $id_cookie = $row->id; $vorhanden =true; diff --git a/core/backend/admin/user/login/register_handling.php b/core/backend/admin/user/login/register_handling.php @@ -3,7 +3,7 @@ include_once('./navi.php'); if (isset($_POST['go'])) { - include_once('./GoogleAuthenticator.php'); + include_once('../../../../libs/GA/GoogleAuthenticator.php'); $g = new GoogleAuthenticator(); $ga_secret = $g->generateSecret(); $username = $_POST['username']; diff --git a/core/backend/admin/user/login/secret.php b/core/backend/admin/user/login/secret.php @@ -20,7 +20,7 @@ $user_exist = false; $abfrage = "SELECT name,ga_secret FROM user WHERE id = '$authinfo'"; $ergebnis = mysqli_query($connection, $abfrage); - while($row = mysqli_fetch_object($connection, $ergebnis)){ + while($row = mysqli_fetch_object($ergebnis)){ $user_exist = true; $username = $row->name; $ga_secret = $row->ga_secret;