X7ROOT File Manager
Current Path:
/home/gfecatvj/4abetter.us-old/Model
home
/
gfecatvj
/
4abetter.us-old
/
Model
/
📁
..
📄
Admin.php
(697 B)
📄
Blog.php
(2.03 KB)
Editing: Admin.php
<?php /** * @author Pierre-Henry Soria <phy@hizup.uk> * @copyright (c) 2015-2017, Pierre-Henry Soria. All Rights Reserved. * @license Lesser General Public License <http://www.gnu.org/copyleft/lesser.html> * @link http://hizup.uk */ namespace TestProject\Model; class Admin extends Blog { public function login($sEmail) { $oStmt = $this->oDb->prepare('SELECT email, password FROM Admins WHERE email = :email LIMIT 1'); $oStmt->bindValue(':email', $sEmail, \PDO::PARAM_STR); $oStmt->execute(); $oRow = $oStmt->fetch(\PDO::FETCH_OBJ); return @$oRow->password; // Use the PHP 5.5 password function } }
Upload File
Create Folder