From 1129602b520fcaf616a01790ec6fcfffe1df6732 Mon Sep 17 00:00:00 2001 From: Sergey Romanenko Date: Fri, 11 Jan 2013 13:39:28 +0200 Subject: [PATCH] Update admin/index.php --- admin/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/index.php b/admin/index.php index 95f8376..512c4f6 100644 --- a/admin/index.php +++ b/admin/index.php @@ -21,7 +21,7 @@ define('ROOT', rtrim(str_replace(array('admin'), array(''), dirname(__FILE__)), define('BACKEND', true); define('MONSTRA_ACCESS', true); -// Load bootstrap file +// Load Monstra engine _init.php file require_once ROOT. DS .'engine'. DS .'_init.php'; // Errors var when users login failed @@ -33,7 +33,7 @@ $users = new Table('users'); // Admin login if (Request::post('login_submit')) { - $user = $users->select("[login='" . trim(Request::post('login')) . "']", null); + $user = $users->select("[login='" . trim(Request::post('login')) . "']", null); if (count($user) !== 0) { if ($user['login'] == Request::post('login')) { if (trim($user['password']) == Security::encryptPassword(Request::post('password'))) {