. */ ini_set('session.gc_maxlifetime', 24*60*60); // MIN SESSION ini_set('session.gc_probability', 1); // GC RATES ini_set('session.gc_divisor', 100); // TIMES ini_set('session.use_cookies', '1'); ini_set('session.use_only_cookies', '1'); ini_set('session.cookie_secure', '0'); ini_set('session.cookie_httponly', '0'); ini_set('session.cookie_samesite', 'Lax'); session_save_path('.tmp'); // TEMP session_start(); // START require_once __DIR__ . '/autoload.php'; // AUTOLOAD use App\LobbySIO\Config\Registry; $Users = new \App\LobbySIO\Database\Users(); if (Registry::AUTHMETHOD == 'SAML') { //simplesaml require_once('../simplesamlphp/lib/_autoload.php'); $auth = new \SimpleSAML\Auth\Simple(Registry::AUTHIDP); //$auth->requireAuth(); $auth->isAuthenticated(); if (!$auth->isAuthenticated()) { $attributes = 'none'; } else { $attributes = $auth->getAttributes(); $saml_user_email = $attributes['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress'][0]; $saml_user_info = $Users->getUserInfoByEmail($saml_user_email, "1", "0"); $saml_user_id = $saml_user_info["0"]["users_id"]; } $session = \SimpleSAML\Session::getSessionFromRequest(); $session->cleanup(); } $StaticFunctions = new \App\LobbySIO\Misc\StaticFunctions(); // DEFAULT CLASSES $SiteInfo = new \App\LobbySIO\Database\SiteInfo(); if (isset($_SESSION['user_id'])) { // LOGGED IN? GET USER OBJECT if (isset($saml_user_id)) { $sessuserid=$saml_user_id; } else { $sessuserid=$_SESSION['user_id']; } } elseif (!isset($_SESSION['user_id'])) { if (isset($saml_user_id)) { $sessuserid=$saml_user_id; } else { $sessuserid='2'; } $session_user = $Users->getUserInfo($sessuserid, "1", "0"); } if (isset($session_user)) { // GET UID OR SET TO KIOSK $uid = $session_user["0"]["users_id"];} else { $uid = "2"; } $app_disp_lang = filter_input(INPUT_COOKIE, 'app_disp_lang'); // SETUP LANGUAGE if(!isset($app_disp_lang)) { $app_disp_lang=$StaticFunctions->getDefaultLanguage(); } $siteidcookie = filter_input(INPUT_COOKIE, 'app_site'); // SETUP SITE foreach($SiteInfo->getSite("0", $uid, "0", "0") as $arr) { $lookup_array[$arr['sites_id']]=1; } if(isset($lookup_array[$siteidcookie])) { $siteid = $siteidcookie; } else { $siteid = "1"; } if(!isset($siteid)) { $siteid="1"; } $Translate = new \App\LobbySIO\Language\Translate($app_disp_lang); // SETUP TRANSLATOR $transLang = $Translate->userLanguage(); $VisitTypeInfo = new \App\LobbySIO\Database\VisitTypeInfo(); $IDTypeInfo = new \App\LobbySIO\Database\IDTypeInfo(); $VisitInfo = new \App\LobbySIO\Database\VisitInfo(); $app_current_pagename = $transLang['REPORTS']; // PAGE SETUP $app_current_pageicon = ' '; require_once("inc/header.inc.php"); if ($StaticFunctions->getUserSessionStatus() == false) { // CHECK STATUS echo $StaticFunctions->killSession(); // ELSE DIE } else { ?> (string)FILTER_SANITIZE_STRING, 'repsite' => (string)FILTER_SANITIZE_STRING, 'starttime' => (string)FILTER_SANITIZE_STRING, 'endtime' => (string)FILTER_SANITIZE_STRING ]); ?>

 

 
 

getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "EMEA") { ?> getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "US") { ?> getVisitInfo($selsite, "%", "%", "%", "%", $form_data['starttime'], $form_data['endtime'], "%", "%") as $row){ $timein = new DateTime($row['visits_intime'], new DateTimeZone('UTC')); $timeout = new DateTime($row['visits_outtime'], new DateTimeZone('UTC')); $timein->setTimezone(new DateTimeZone("$timezone")); $timeout->setTimezone(new DateTimeZone("$timezone")); $timein_disp = $timein->format('Y-m-d H:i:s'); $timeout_disp = $timeout->format('Y-m-d H:i:s'); if(!empty($row['visits_carnum'])) { $carnum=$row['visits_carnum']; } else { $carnum="-";} if(!empty($row['visits_ssanum'])) { $ssanum=$row['visits_ssanum']; } else { $ssanum="-";} if(!empty($row['visits_citizen'])) { $citizen=$row['visits_citizen']; } else { $citizen="-";} ?> getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "EMEA") { ?> getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "US") { ?>
getSite($row['visits_site_id'], $uid, "0", "0")[0]["sites_name"]; ?> getInfoVisitType("%", $row['visits_reason'])[0]['visittypes_name']]; ?>
Signature
Escort Signature'; } ?> readUserFirstAndLast($row['visits_initials']))){ echo $Users->readUserFirstAndLast($row['visits_initials'])[0]["users_firstname"] . " " . $Users->readUserFirstAndLast($row['visits_initials'])[0]["users_lastname"]; } ?> getIDTypeInfo($row['visits_id_type'])[0]['idtypes_name']]; ?>
getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "EMEA") { ?> getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "US") { ?> getVisitInfo($selsite, "%", "%", "%", "%", $form_data['starttime'], $form_data['endtime'], "%", "%") as $row){ $timein = new DateTime($row['visits_intime'], new DateTimeZone('UTC')); $timeout = new DateTime($row['visits_outtime'], new DateTimeZone('UTC')); $timein->setTimezone(new DateTimeZone("$timezone")); $timeout->setTimezone(new DateTimeZone("$timezone")); $timein_disp = $timein->format('Y-m-d H:i:s'); $timeout_disp = $timeout->format('Y-m-d H:i:s'); if(!empty($row['visits_carnum'])) { $carnum=$row['visits_carnum']; } else { $carnum="-";} if(!empty($row['visits_ssanum'])) { $ssanum=$row['visits_ssanum']; } else { $ssanum="-";} if(!empty($row['visits_citizen'])) { $citizen=$row['visits_citizen']; } else { $citizen="-";} if ($row['visits_isvendor']===1) { ?> getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "EMEA") { ?> getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "US") { ?>
getSite($row['visits_site_id'], $uid, "0", "0")[0]["sites_name"]; ?> getInfoVisitType("%", $row['visits_reason'])[0]['visittypes_name']]; ?>
Signature
readUserFirstAndLast($row['visits_initials']))){ echo $Users->readUserFirstAndLast($row['visits_initials'])[0]["users_firstname"] . " " . $Users->readUserFirstAndLast($row['visits_initials'])[0]["users_lastname"]; } ?> getIDTypeInfo($row['visits_id_type'])[0]['idtypes_name']]; ?> getInfoVendorVisitFinal($row['visits_id']) as $vnrow) { $db_vendorinfo_id = $vnrow['db_vendorinfo_id']; $db_vendorinfo_contact1 = $vnrow['db_vendorinfo_contact1']; $db_vendorinfo_contact2 = $vnrow['db_vendorinfo_contact2']; $db_vendorinfo_workstart = $vnrow['db_vendorinfo_workstart']; $db_vendorinfo_workend = $vnrow['db_vendorinfo_workend']; $db_vendorinfo_customerimpacted = $vnrow['db_vendorinfo_customerimpacted']; $db_vendorinfo_checklistrequired= $vnrow['db_vendorinfo_checklistrequired']; $db_vendorinfo_routinework = $vnrow['db_vendorinfo_routinework']; $db_vendorinfo_nonroutinework = $vnrow['db_vendorinfo_nonroutinework']; $db_vendorinfo_coi = $vnrow['db_vendorinfo_coi']; $db_vendorinfo_worksummary = $vnrow['db_vendorinfo_worksummary']; $db_vendorinfo_equipmentsummary = $vnrow['db_vendorinfo_equipmentsummary']; $db_vendorinfo_checklistcompleted = $vnrow['db_vendorinfo_checklistcompleted']; $db_vendorinfo_workcompleted = $vnrow['db_vendorinfo_workcompleted']; $db_vendorinfo_sitecleanup = $vnrow['db_vendorinfo_sitecleanup']; $db_vendorinfo_doccompleted = $vnrow['db_vendorinfo_doccompleted']; $db_vendorinfo_approverid = $vnrow['db_vendorinfo_approverid']; ?>
" /> " /> readUserFirstAndLast($row['visits_initials'])[0]["users_lastname"]; ?>" /> readUserFirstAndLast($db_vendorinfo_approverid)[0]["users_lastname"]; ?>" /> " />

- - - - - - - - - - -