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"; } } }
<?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(); ?>