Source for file LC_Page_Admin_Login.php
Documentation is available at LC_Page_Admin_Login.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program 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 2
* of the License, or (at your option) any later version.
* This program 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(CLASS_PATH . "pages/LC_Page.php");
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Admin_Login.php 18734 2010-06-22 08:45:33Z nanasess $
if (!isset ($_POST['login_id'])) $_POST['login_id'] = "";
if (!isset ($_POST['password'])) $_POST['password'] = "";
if(strlen($_POST{'login_id'}) > 0 && strlen($_POST{'password'}) >= ID_MIN_LEN && strlen($_POST{'password'}) <= ID_MAX_LEN) {
SC_Utils_Ex::sfDispError(LOGIN_ERROR);
$sql = "SELECT member_id, password, authority, login_date, name FROM dtb_member WHERE login_id = ? AND del_flg <> 1 AND work = 1";
$arrcol = array ($_POST['login_id']);
$data_list = $conn->getAll($sql ,$arrcol);
$password = $data_list[0]['password'];
$ret = sha1($_POST['password'] . ":" . AUTH_MAGIC);
$this->fnSetLoginSession($data_list[0]['member_id'], $data_list[0]['authority'], $data_list[0]['login_date'], $data_list[0]['name']);
GC_Utils_Ex::gfPrintLog($_POST['login_id'] . " password incorrect.");
$this->objSess->SetSession('cert', CERT_STRING);
$this->objSess->SetSession('login_id', $_POST{'login_id'});
$this->objSess->SetSession('authority', $authority);
$this->objSess->SetSession('member_id', $member_id);
$this->objSess->SetSession('login_name', $login_name);
$this->objSess->SetSession('last_login', $login_date);
$this->objSess->SetSession('last_login', date("Y-m-d H:i:s"));
GC_Utils_Ex::gfPrintLog("login : user=". $_SESSION{'login_id'}. " auth=". $_SESSION{'authority'}. " lastlogin=". $_SESSION{'last_login'} . " sid=". $sid);
$sqlval['login_date'] = date("Y-m-d H:i:s");
$member_id = $this->objSess->GetSession('member_id');
$where = "member_id = " . $member_id;
$ret = $oquery->update("dtb_member", $sqlval, $where);
Documentation generated on Fri, 24 Feb 2012 13:58:45 +0900 by Seasoft
|