, begin
HTML; #} # Sessions if (count($UserSessions) > 1) { foreach ($UserSessions as $ThisSessionID => $Session) { if ($ThisSessionID !== $SessionID) { $LastActive = $Session; break; } } } # User meta $LastUpdate = time_diff($LastActive['LastUpdate']); $IP = (apcu_exists('DBKEY') && $LastActive['IP'] && $LastActive['IP'] !== '0.0.0.0' ? (Crypto::decrypt($LastActive['IP'])) : '[Encrypted]'); if (!empty($LastActive)) { echo $HTML = << Last activity: $LastUpdate from $IP HTML; } # Site meta $Year = date('Y'); $Load = sys_getloadavg(); echo $HTML = << © $Year $ENV->SITE_NAME $Sep Warrant Canary HTML; # Script meta $MicroTime = number_format(((microtime(true) - $ScriptStartTime) * 1000), 5); $Used = Format::get_size(memory_get_usage(true)); $Load = number_format($Load[0], 2).' '.number_format($Load[1], 2).' '.number_format($Load[2], 2); $Date = date('M d Y'); $Time = date('H:i'); echo $HTML = << Time: $MicroTime ms $Sep Load: $Load $Sep Date: $Date, $Time HTML; # Start debug if (DEBUG_MODE || check_perms('site_debug')) { echo $HTML = << HTML; $Debug->perf_table(); $Debug->flag_table(); $Debug->error_table(); $Debug->sphinx_table(); $Debug->query_table(); $Debug->cache_table(); $Debug->vars_table(); $Debug->ocelot_table(); echo $HTML = << HTML; } # End debug global $NotificationSpans; if (!empty($NotificationSpans)) { foreach ($NotificationSpans as $Notification) { echo "$Notification\n"; } } echo $HTML = << HTML;