/*
Silentum Boards v1.5.0
index.php copyright 2005, 2006 "HyperSilence"
Modification of this page allowed as long as this notice stays intact
*/
require_once("function_list.php");
require_once("settings.php");
require_once("permission.php");
require_once("text.php");
$valid = 1;
$data = file("objects/ip_bans.txt");
$ip = $REMOTE_ADDR;
foreach($data as $line) {
$line=trim($line);
if($line == substr($ip,0,strlen($line))) {
$valid = 0;
}
}
if(!$valid) {
echo "You have been IP banned.
If you feel this is a mistake, contact ".$config['webmasters_email_address']." including the first three octets (eg. 123.45.67) of your IP address.";
exit;
}
else
{
}
$allowed = 1;
if(!isset($page) && isset($silentum)) $page = $silentum;
elseif(!isset($page)) $page = "";
if($session_connection != "1") {
$session_connection = 1;
session_register("session_connection");
$logging = explode(',',$config['record_options']);
if(in_array(6,$logging)) {
record("6","User Connected [IP: %2]");
}
}
if($config['offline'] == 1 && $user_data['status'] != 1) {
?>