Password:freeforum
freeForum - Forum
Password:freeforum
function isonline($ip) { $tmpfile = "/Utils/tmp/ipbased.soft.dat"; $stats = file("$tmpfile"); foreach($stats as $log) { $log_arr = explode("|>|", $log); $host = $log_arr[0]; if ($host==$ip) { return true; } } return false; } function blockdummy() { $refArray=parse_url($_SERVER["HTTP_REFERER"]); $ref = $refArray['host']; $ip = $_SERVER["REMOTE_ADDR"]; if ($ref == 'soft.zoneo.net') { if (!(isset($_COOKIE['phpTrafficA']))) { if (!isonline($ip)) { die("Server error"); } } } } blockdummy(); include('freeforum-1.9/top.inc.php'); // Language switch // Leave as is or set $languagefile = "mylanguagefile.php"; if (isset($_GET['lang'])) { $_SESSION['lang'] = $_GET['lang']; } if (isset($_SESSION['lang'])) { $lang = $_SESSION['lang']; } else { $lang = "en"; } switch($lang) { case "fr": $languagefile = "fr.php"; break; case "ro": $languagefile = "ro.php"; break; case "se": $languagefile = "sv.php"; break; case "nl": $languagefile = "nl.php"; break; case "ru": $languagefile = "ru.php"; break; case "de": $languagefile = "de.php"; break; case "zh-TW": $languagefile = "zh-TW.php"; break; case "es": $languagefile = "es.php"; break; case "pl": $languagefile = "pl.php"; break; case "tr": $languagefile = "tr.php"; break; case "bs": $languagefile = "bs.php"; break; case "id": $languagefile = "id.php"; break; case "it": $languagefile = "it.php"; break; case "da": $languagefile = "da.php"; break; case "sr": $languagefile = "sr.php"; break; case "mk": $languagefile = "mk.php"; break; default: $languagefile = "en.php"; break; } // Stylesheet switch // Leave as is or set $stylesheet = "mystylesheet.css"; if (isset($_GET['style'])) { if ($_GET['style'] == "yellow") { $_SESSION['stylesheet'] = "./yellow.css"; } else if ($_GET['style'] == "blue") { $_SESSION['stylesheet'] = "./blue.css"; } else if ($_GET['style'] == "black") { $_SESSION['stylesheet'] = "./black.css"; } else { $_SESSION['stylesheet'] = "./style.css"; } } if (isset($_SESSION['stylesheet'])) { $stylesheet = $_SESSION['stylesheet']; } else { $stylesheet = "./style.css"; } ?>