Esempio n. 1
0
// +----------------------------------------------------------------------
// | Copyright (C) 2015 AdminSheng.Com
// +----------------------------------------------------------------------
// | Author:   站长之声
// +----------------------------------------------------------------------
require './config.php';
if (isset($_GET['act'])) {
    switch ($_GET['act']) {
        case 'login_check':
            WF_Auth::loginCheck();
            break;
        case 'resetpasswd':
            WF_Auth::updateUserPassword();
            break;
        case 'out':
            WF_Auth::loginOut();
            break;
        case 'in':
            break;
        default:
            exit(WF_Session::get('login_error'));
    }
}
//
$uhash = $_SESSION['wf_uhash'] = rand(1000, 9999);
$error = wf_gpc('wf_error', 'S');
?>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="renderer" content="webkit">