public function isRemoteUserAuthenticated($userRemoteTokenID, $dbconn) { $obj_Authentication = new authenticationProcessor(); $obj_Authentication->isAuthenticated(); $sql_taskDetais = "SELECT * FROM tbl_user_mst WHERE authonticaionToken = '" . $taskID . "'"; //$res = parent::queryExecuter($sql_taskDetais,$dbconn); //return mysql_num_rows($res); }
public function logOutUser($dbconn) { $objAoth = new authenticationProcessor(); $this->updateLastLogin($dbconn); $objAoth->setCookie("userLogin", $objUser->uid, time() - 100); $objAoth->setCookie("userID", $objUser->uid, time() - 100); $objAoth->setCookie("userName", $objUser->user_name, time() - 100); $objAoth->setCookie("authenticationToken", $objUser->authonticaionToken, time() - 100); $objAoth->setCookie("designation", $objUser->desig_id, time() - 100); $objAoth->setCookie("accessDetails", "", time() - 100); $objAoth->setCookie("userRegistrations", "", ""); $objAoth->redirectToURL(3); exit; }
function checkRemoteAuthentication($userRemoteToken) { $obj_Authentication = new authenticationProcessor(); return $obj_Authentication->isRemoteUserAuthenticated($userRemoteToken); }
<?php include "include/header_include.php"; ?> </head> <body> <div class="Container"> <div class="header"> <?php include "include/header.php"; ?> </div> <?php include "process/authenticationMgt.php"; $objAuth = new authenticationProcessor(); //$objAuth->getCookie("authenticationToken"); if (!$objAuth->isLogedIn()) { ?> <div class="middle nonLogin"> <?php include "include/preLogin.php"; ?> </div> <?php } else { ?> <div class="middle dashboard"> <?php include "include/postLogin.php"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Edu : Login</title> <?php require_once "process/authenticationMgt.php"; $objAuth = new authenticationProcessor(); echo $objAuth->isLogedIn(); if ($objAuth->isLogedIn()) { header("location: index.php"); } include "include/header_include.php"; ?> </head> <body> <div class="Container"> <div class="header"> <?php include "include/header.php"; ?> </div> <div class="middle loginPage"> <div class="left formInter"> <iframe name="submitForm" id="submitForm"></iframe> <div class="blockDetail loginWraper active"> <?php if (isset($_REQUEST['msg'])) { ?> <div class="error message">