コード例 #1
0
 function StoreAuth($table)
 {
     $auth = new Authentication();
     $this->message = "NOT Authenticated";
     if (isset($_REQUEST['username']) && isset($_REQUEST['password'])) {
         $email = $_REQUEST['username'];
         $password = $_REQUEST['password'];
         if ($auth->credentials($email, $password, $table)) {
             $this->message = "Authenticated";
             StoreSession::loginPage('indexauth.php', $email);
         } else {
             $this->message = "NOT Authenticated";
         }
     }
 }
コード例 #2
0
ファイル: session.php プロジェクト: nateirwin/custom-historic
<?php

ob_start();
require_once "../lib/init/StoreSetup.php";
incCommServs();
require_once "StoreSession.php";
print "Login page <br>";
StoreSession::setUser('zorlu');
StoreSession::loginPage();
ob_end_flush();
?>