include '../../backend/lib/StringLib.php'; include '../../backend/lib/EnumLib.php'; include '../../backend/lib/Mobile_Detect.php'; require_once '../../backend/config.inc.php'; if (isset($_REQUEST['logout'])) { setcookie('uneeoscetoken', "", -3600); //do redirect in Java? print "<script>window.location.assign('./login.php');</script>"; //header("Location: ./login.php"); exit; } if (isset($_COOKIE['uneeoscetoken'])) { $token = $_COOKIE['uneeoscetoken']; $authlib = new authlib(); $authresult = ''; $stringlib = new StringLib(); $enumlib = new EnumLib(); $loggedinuserdata = new SimpleXMLElement($authlib->getDetailsByToken($token)); if (strlen($loggedinuserdata->error) > 1) { // print_r($loggedinuserdata); setcookie('uneeoscetoken', "", -3600); header("Location: ./login.php"); exit; } } else { header("Location: ./login.php"); exit; } $mobiledetect = new Mobile_Detect(); $CFG->site_root = realpath(dirname(__FILE__)); $headerStr = "<div class='header-wrapper' style=''>\n <div style='position:absolute; left:10px; top:10px'><a href='javascript:window.location.assign(\"{$CFG->wwwroot}{$CFG->basedir}index.php?logout\");' >Log Out</a></div>";
include '../../backend/lib/ReportsLib.php'; require_once '../../backend/config.inc.php'; $enumlib = new EnumLib(); $authlib = new authlib(); $stringlib = new StringLib(); $reportlib = new ReportsLib(); if (isset($_REQUEST['logout'])) { setcookie('uneeoscetoken', "", -3600); //do redirect in Java? print "<script>window.location.assign('{$CFG->wwwroot}{$CFG->basedir}login.php');</script>"; exit; } if (isset($_COOKIE['uneeoscetoken'])) { $token = $_COOKIE['uneeoscetoken']; $authresult = ''; $stringlib = new StringLib(); $loggedinuserdata = new SimpleXMLElement($authlib->getDetailsByToken($token)); if (strlen($loggedinuserdata->error) > 1) { setcookie('uneeoscetoken', "", -3600); header("Location: {$CFG->wwwroot}{$CFG->basedir}login.php"); exit; } } else { header("Location: {$CFG->wwwroot}{$CFG->basedir}login.php"); exit; } // breadcrumbs $breadcrumbStr = "<a href='{$CFG->wwwroot}{$CFG->basedir}'>Home</a>>"; $currentpath = str_replace("/{$CFG->basedir}", '', $_SERVER['PHP_SELF']); //print($currentpath); $patharr = explode('/', $currentpath);
include '../backend/lib/StringLib.php'; include '../backend/lib/EnumLib.php'; require_once '../backend/config.inc.php'; $enumlib = new EnumLib(); $authlib = new authlib(); $stringlib = new StringLib(); if (isset($_REQUEST['logout'])) { setcookie('uneeoscetoken', "", -3600); //do redirect in Java? print "<script>window.location.assign('{$CFG->wwwroot}{$CFG->basedir}login.php');</script>"; exit; } if (isset($_COOKIE['uneeoscetoken'])) { $token = $_COOKIE['uneeoscetoken']; $authresult = ''; $stringlib = new StringLib(); $loggedinuserdata = new SimpleXMLElement($authlib->getDetailsByToken($token)); if (strlen($loggedinuserdata->error) > 1) { setcookie('uneeoscetoken', "", -3600); header("Location: {$CFG->wwwroot}{$CFG->basedir}login.php"); exit; } } else { header("Location: {$CFG->wwwroot}{$CFG->basedir}login.php"); exit; } // breadcrumbs $breadcrumbStr = "<a href='{$CFG->wwwroot}{$CFG->basedir}'>Home</a>>"; $currentpath = str_replace("/{$CFG->basedir}", '', $_SERVER['PHP_SELF']); //print($currentpath); $patharr = explode('/', $currentpath);
include '../backend/lib/StringLib.php'; include '../backend/lib/EnumLib.php'; include '../backend/lib/Mobile_Detect.php'; require_once '../backend/config.inc.php'; if (isset($_REQUEST['logout'])) { setcookie('uneeoscetoken', "", -3600); //do redirect in Java? print "<script>window.location.assign('./login.php');</script>"; //header("Location: ./login.php"); exit; } if (isset($_COOKIE['uneeoscetoken'])) { $token = $_COOKIE['uneeoscetoken']; $authlib = new authlib(); $authresult = ''; $stringlib = new StringLib(); $enumlib = new EnumLib(); $loggedinuserdata = new SimpleXMLElement($authlib->getDetailsByToken($token)); if (strlen($loggedinuserdata->error) > 1) { // print_r($loggedinuserdata); setcookie('uneeoscetoken', "", -3600); header("Location: ./login.php"); exit; } } else { header("Location: ./login.php"); exit; } $mobiledetect = new Mobile_Detect(); $CFG->site_root = realpath(dirname(__FILE__)); $headerStr = "<div class='header-wrapper' style=''>\n <div style='position:absolute; left:10px; top:10px'><a href='javascript:window.location.assign(\"{$CFG->wwwroot}{$CFG->basedir}index.php?logout\");' >Log Out</a></div>";
include '../../../backend/lib/StringLib.php'; include '../../../backend/lib/EnumLib.php'; include '../../../backend/lib/Mobile_Detect.php'; require_once '../../../backend/config.inc.php'; if (isset($_REQUEST['logout'])) { setcookie('uneeoscetoken', "", -3600); //do redirect in Java? print "<script>window.location.assign('./login.php');</script>"; //header("Location: ./login.php"); exit; } if (isset($_COOKIE['uneeoscetoken'])) { $token = $_COOKIE['uneeoscetoken']; $authlib = new authlib(); $authresult = ''; $stringlib = new StringLib(); $enumlib = new EnumLib(); $loggedinuserdata = new SimpleXMLElement($authlib->getDetailsByToken($token)); if (strlen($loggedinuserdata->error) > 1) { // print_r($loggedinuserdata); setcookie('uneeoscetoken', "", -3600); header("Location: ./login.php"); exit; } } else { header("Location: ./login.php"); exit; } $mobiledetect = new Mobile_Detect(); $CFG->site_root = realpath(dirname(__FILE__)); $headerStr = "<div class='header-wrapper' style=''>\n <div style='position:absolute; left:10px; top:10px'><a href='javascript:window.location.assign(\"{$CFG->wwwroot}{$CFG->basedir}index.php?logout\");' >Log Out</a></div>";
include './backend/lib/StringLib.php'; include './backend/lib/EnumLib.php'; include './backend/lib/Mobile_Detect.php'; require_once 'backend/config.inc.php'; if (isset($_REQUEST['logout'])) { setcookie('uneeoscetoken', "", -3600); //do redirect in Java? print "<script>window.location.assign('./login.php');</script>"; //header("Location: ./login.php"); exit; } if (isset($_COOKIE['uneeoscetoken'])) { $token = $_COOKIE['uneeoscetoken']; $authlib = new authlib(); $authresult = ''; $stringlib = new StringLib(); $loggedinuserdata = new SimpleXMLElement($authlib->getDetailsByToken($token)); if (strlen($loggedinuserdata->error) > 1) { // print_r($loggedinuserdata); setcookie('uneeoscetoken', "", -3600); header("Location: ./login.php"); exit; } } else { header("Location: ./login.php"); exit; } $mobiledetect = new Mobile_Detect(); $CFG->site_root = realpath(dirname(__FILE__)); $headerStr = "<div class='header-wrapper' style=''>\n <div style='position:absolute; left:10px; top:10px'><a href='javascript:window.location.assign(\"{$CFG->wwwroot}{$CFG->basedir}index.php?logout\");' >Log Out</a></div>"; if ($CFG->wwwroot == "https://srm-itd01/") {
include '../../backend/lib/StringLib.php'; include '../../backend/lib/EnumLib.php'; require_once '../../backend/config.inc.php'; $enumlib = new EnumLib(); $authlib = new authlib(); $stringlib = new StringLib(); if (isset($_REQUEST['logout'])) { setcookie('uneeoscetoken', "", -3600); //do redirect in Java? print "<script>window.location.assign('{$CFG->wwwroot}{$CFG->basedir}login.php');</script>"; exit; } if (isset($_COOKIE['uneeoscetoken'])) { $token = $_COOKIE['uneeoscetoken']; $authresult = ''; $stringlib = new StringLib(); $loggedinuserdata = new SimpleXMLElement($authlib->getDetailsByToken($token)); if (strlen($loggedinuserdata->error) > 1) { setcookie('uneeoscetoken', "", -3600); header("Location: {$CFG->wwwroot}{$CFG->basedir}login.php"); exit; } } else { header("Location: {$CFG->wwwroot}{$CFG->basedir}login.php"); exit; } // breadcrumbs $breadcrumbStr = "<a href='{$CFG->wwwroot}{$CFG->basedir}'>Home</a>>"; $currentpath = str_replace("/{$CFG->basedir}", '', $_SERVER['PHP_SELF']); //print($currentpath); $patharr = explode('/', $currentpath);