diff options
-rw-r--r-- | config.php.example | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config.php.example b/config.php.example index f3a9cf2..ded60bf 100644 --- a/config.php.example +++ b/config.php.example @@ -3,6 +3,8 @@ // This might leak sensitive information. Never enable in production! define('CONFIG_DEBUG', true); define('CONFIG_PREFIX', '/webif/'); +define('CONFIG_SESSION_TIMEOUT', 86400 * 7); +define('CONFIG_FORCE_DOMAIN', 'my.server.address.example.com'); // Have a properties file or set variables here manually. // Make sure properties file is not in webroot @@ -12,7 +14,7 @@ foreach ($lines as $line) { if (preg_match('/^\s*(.+?)\s*=\s*(\S*)\s*$/', $line, $out)) $key[$out[1]] = $out[2]; } - +unset($lines, $line, $out); if (empty($key['host']) || empty($key['db']) || empty($key['user']) || empty($key['password'])) { die('Missing database config'); } @@ -21,4 +23,4 @@ define('CONFIG_SQL_DSN', "mysql:dbname={$key['db']};host={$key['host']}"); define('CONFIG_SQL_USER', $key['user']); define('CONFIG_SQL_PASS', $key['password']); define('CONFIG_SQL_FORCE_UTF8', true); - +unset($key); |