Fixed some things

Added $config to enable or disable country flags its on false by
default.
Also some advice from Znote for securing integer database values.
Cleanedup some if statements.
This commit is contained in:
Tandloze
2015-08-15 23:24:44 +02:00
parent a2b241b6c1
commit 651b62686c
3 changed files with 18 additions and 57 deletions

View File

@@ -1,8 +1,6 @@
<?php
require_once 'engine/init.php';
if (user_logged_in() === false) {
header('Location: register.php');
}
protect_page();
include 'layout/overall/header.php';
$view = (isset($_GET['view']) && (int)$_GET['view'] > 0) ? (int)$_GET['view'] : false;