$eveRender->Assign('corp', $userinfo['corp']); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $pID = 'track'; $eveRender->Assign('pID', $pID); include_once 'themes/posmanager/style/theme' . $theme_id . '.php'; $user_track = explode('.', $userinfo['user_track']); if (in_array('1', $access) || in_array('5', $access) || in_array('6', $access)) { //sets current time $time = time(); //pulls time out of database for last update $pulltime = $posmgmt->GetLastSystemUpdate(); $sovtime = $posmgmt->get_formatted_timediff($pulltime, $now = false); //gives a difference value for the warning message $sovtimedifference = $time - $pulltime; //pulls time out of database for last update for ally $pulltimeally = $posmgmt->GetLastAllianceUpdate(); $allytime = $posmgmt->get_formatted_timediff($pulltimeally, $now = false); //gives a difference value for the warning message $allytimedifference = $time - $pulltimeally; if ($sovtimedifference >= "86400" && (in_array('5', $access) || in_array('6', $access))) { //1 day $errormsg = '<b>Warning, Your Sovereignty data is out of date.</b> ' . $sovtime . '<br />'; } if ($allytimedifference >= "604800" && (in_array('5', $access) || in_array('6', $access))) { #1 week $errormsg .= 'Warning, Your Alliance data is out of date. ' . $allytime . '<br />'; }