Fix a bug that allow bypass all checks if everything was entered.
[spamdforum.git] / extra / config.php
blob0ac3b4850ebeaa415ee67e517651d410073953fb
1 <?php
2 /* See file COPYING for permissions and conditions to use the file. */
3 ?>
4 <?php
5 $sitename = 'spamdforum';
6 $protocol = 'http';
7 $server = $_SERVER['HTTP_HOST'];
8 /* $server = 'hostname.com'; */
9 $secure = false;
10 if ($protocol == 'https' || isset($_SERVER['HTTPS'])) {
11 $secure = true;
13 session_set_cookie_params(['lifetime' => time() + 2592000, 'path' => '/', 'domain' => '', 'secure' => $secure, 'httponly' => true, 'samesite' => 'Lax']);
14 session_start();
15 require_once("{$_SERVER['DOCUMENT_ROOT']}/../dbconnect.php");
16 require_once("{$_SERVER['DOCUMENT_ROOT']}/extra/variables.php");
17 require_once("{$_SERVER['DOCUMENT_ROOT']}/extra/functions.php");
18 require_once("{$_SERVER['DOCUMENT_ROOT']}/extra/config_access.php");