. */ 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_lifetime', '0'); ini_set('session.cookie_secure', '1'); ini_set('session.cookie_httponly', '1'); ini_set('session.cookie_samesite', 'Strict'); 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', FILTER_SANITIZE_FULL_SPECIAL_CHARS); // 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(); $defaulttimezone = $StaticFunctions->getDefaultTZ(); date_default_timezone_set('UTC'); // DEFAULT TO UTC date_default_timezone_set($defaulttimezone); // UPDATE TO DEFAULT APP SETTING $timezone = $SiteInfo->getSite($siteid, "0", "0", "0")[0]["sites_timezone"]; // GET TIMEZONE FROM SITE ID $timeplus = new DateTime($StaticFunctions->getUTC(), new DateTimeZone('UTC')); // DUMB WAY TO CALCULATE SOME TIMES $timeplus->setTimezone(new DateTimeZone("$timezone")); $timenow = $timeplus->format('Y-m-d H:i:s'); $app_current_pagename = $transLang['ACCOUNT']; // PAGE SETUP $app_current_pageicon = ' '; // require_once("inc/header.inc.php"); if ($StaticFunctions->getUserSessionStatus() == false) { // CHECK STATUS echo $StaticFunctions->killSession(); // ELSE DIE } else { ?> <?php echo $transLang['STR_VENDORINFO_FORM_TITLE']; ?> (string)FILTER_SANITIZE_STRING, 'form_data_sitename' => (string)FILTER_SANITIZE_STRING, 'form_data_timein' => (string)FILTER_SANITIZE_STRING, 'form_data_timeout' => (string)FILTER_SANITIZE_STRING, 'form_data_isvendor' => (int)FILTER_VALIDATE_INT, 'form_data_badge' => (string)FILTER_SANITIZE_STRING, 'form_data_reason' => (string)FILTER_SANITIZE_STRING, 'form_data_manualsignindate' => (string)FILTER_SANITIZE_STRING, 'form_data_firstname' => (string)FILTER_SANITIZE_STRING, 'form_data_idtypename' => (string)FILTER_SANITIZE_STRING, 'form_data_lastname' => (string)FILTER_SANITIZE_STRING, 'form_data_country' => (string)FILTER_SANITIZE_STRING, 'form_data_checklistcompleted' => (string)FILTER_SANITIZE_STRING, 'form_data_workcompleted' => (string)FILTER_SANITIZE_STRING, 'form_data_sitecleanup' => (string)FILTER_SANITIZE_STRING, 'form_data_doccompleted' => (string)FILTER_SANITIZE_STRING, 'form_data_signinby' => (string)FILTER_SANITIZE_STRING, 'form_data_vwfby' => (string)FILTER_SANITIZE_STRING, 'form_data_checklistrequired' => (string)FILTER_SANITIZE_STRING, 'form_data_routinework' => (string)FILTER_SANITIZE_STRING, 'form_data_nonroutinework' => (string)FILTER_SANITIZE_STRING, 'form_data_coi' => (string)FILTER_SANITIZE_STRING, 'form_data_carnum' => (string)FILTER_SANITIZE_STRING, 'form_data_ssanum' => (string)FILTER_SANITIZE_STRING, 'form_data_company' => (string)FILTER_SANITIZE_STRING, 'form_data_worksummary' => (string)FILTER_SANITIZE_STRING, 'form_data_equipmentsummary' => (string)FILTER_SANITIZE_STRING, 'form_data_contact1' => (string)FILTER_SANITIZE_STRING, 'form_data_contact2' => (string)FILTER_SANITIZE_STRING, 'form_data_workstart' => (string)FILTER_SANITIZE_STRING, 'form_data_workend' => (string)FILTER_SANITIZE_STRING, 'form_data_visittype' => (int)FILTER_VALIDATE_INT, 'form_data_escortrequired' => (int)FILTER_VALIDATE_INT, 'form_data_customerimpacted' => (string)FILTER_SANITIZE_STRING, 'form_data_v_signature' => (string)FILTER_SANITIZE_STRING, 'form_data_e_signature' => (string)FILTER_SANITIZE_STRING, 'form_data_escortname' => (string)FILTER_SANITIZE_STRING ]); ?>

: 
: 
: 
: 
: 
: 
: 
: 
  •      ';}else{echo ' ';} ?> ()
  •      ';}else{echo ' ';} ?> ()
  •      ';}else{echo ' ';} ?> ()
  •      ';}else{echo ' ';} ?> ()
:
    
:
    
  •      ';}else{echo ' ';} ?> ()
  •      ';}else{echo ' ';} ?> ()
  •      ';}else{echo ' ';} ?> ()
  •      ';}else{echo ' ';} ?> ()
: 
: 
:

:
:
: