class Utils {
+ private $timeout = false;
private $settings;
private $header = '<!DOCTYPE html>
<html>
$this->startSession();
}
+ if (false !== $this->timeout) {
+ $timeout = $this->timeout;
+ } else {
+ $timeout = 0;
+ }
+
$this->settings = array(
'server' => $_SERVER,
'user' => null,
'admin' => false,
'loginStatus' => 'Not logged in',
- 'timeout' => 0
+ 'timeout' => $timeout
);
$_SESSION['settings'] = $this->settings;