Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function colorize($loginnaam) {
- include ($_SERVER['DOCUMENT_ROOT'] . "/inc/language/" . $_SESSION['taalkeuze'] . ".inc.php");
- if (!($info1 = mysql_query("SELECT `level`,`hulpadmin`,`vermoord`,`accban`,`activated`,`vipdays`,`forumstatus` FROM `[users]` where `login`='" . $loginnaam . "'"))) {
- exit(mysql_error());
- }
- $info = mysql_fetch_object($info1);
- $loginnaam = $info->level == "255" ? "<font color=\"red\">{$loginnaam}</font>" : $loginnaam;
- $loginnaam = $info->hulpadmin == "1" ? "<font color=\"#CC3333\">{$loginnaam}</font>" : $loginnaam;
- $loginnaam = $info->level == "254" ? "{$loginnaam}</font>" : $loginnaam;
- $loginnaam = $info->level == "253" ? "<font color=\"orange\">{$loginnaam}</font>" : $loginnaam;
- $loginnaam = "0" < $info->vermoord ? "{$loginnaam} {$l1}</font>" : $loginnaam;
- $loginnaam = $info->accban == "-1" ? "<font color=\"green\">{$loginnaam} {$l2}</font>" : $loginnaam;
- $loginnaam = $info->activated == "-3" ? "<font color=\"purple\">{$loginnaam} {$l3}</font>" : $loginnaam;
- $loginnaam = "0" < $info->vipdays ? "<font color=\"yellow\">{$loginnaam}</font>" : $loginnaam;
- $loginnaam = $info->level == "0" ? "<font color=\"white\">{$loginnaam}</font>" : $loginnaam;
- return $loginnaam;
- }
- function clancolorize($loginnaam) {
- include ($_SERVER['DOCUMENT_ROOT'] . "/inc/language/" . $_SESSION['taalkeuze'] . ".inc.php");
- if (!($info1 = mysql_query("SELECT `clanlevel` FROM `[users]` where `login`='" . $loginnaam . "'"))) {
- exit(mysql_error());
- }
- $info = mysql_fetch_object($info1);
- $loginnaam = $info->clanlevel == "9" ? "<font color=\"#FF0000\">{$loginnaam}</font>" : $loginnaam;
- $loginnaam = $info->clanlevel == "8" ? "<font color=\"#CC3333\">{$loginnaam}</font>" : $loginnaam;
- $loginnaam = $info->clanlevel == "7" ? "<font color=\"orange\">{$loginnaam}</font>" : $loginnaam;
- $loginnaam = $info->clanlevel == "2" ? "<font color=\"blue\">{$loginnaam}</font>" : $loginnaam;
- $loginnaam = $info->clanlevel == "1" ? "<font color=\"white\">{$loginnaam}</font>" : $loginnaam;
- $loginnaam = str_replace("Owner", " <font color=\"red\">" . $l1a . "</font>", $loginnaam);
- $loginnaam = str_replace("Leaders", " <font color=\"#CC3333\">" . $l1b . "</font>", $loginnaam);
- $loginnaam = str_replace("Generaals", " <font color=\"orange\">" . $l1c . "</font>", $loginnaam);
- return $loginnaam;
- }
- function datum($format, $timestamp) {
- include ($_SERVER['DOCUMENT_ROOT'] . "/inc/language/" . $_SESSION['taalkeuze'] . ".inc.php");
- $wdays = array($l4, $l5, $l6, $l7, $l8, $l9, $l10);
- $months = array(1 => $l11, $l12, $l13, $l14, $l15, $l16, $l17, $l18, $l19, $l20, $l21, $l22);
- $replace_wdays = array(date("l", mktime(0, 0, 0, 11, 10, 1991)) => $wdays[0], date("l", mktime(0, 0, 0, 11, 11, 1991)) => $wdays[1], date("l", mktime(0, 0, 0, 11, 12, 1991)) => $wdays[2], date("l", mktime(0, 0, 0, 11, 13, 1991)) => $wdays[3], date("l", mktime(0, 0, 0, 11, 14, 1991)) => $wdays[4], date("l", mktime(0, 0, 0, 11, 15, 1991)) => $wdays[5], date("l", mktime(0, 0, 0, 11, 16, 1991)) => $wdays[6]);
- $replace_short_wdays = array(date("D", mktime(0, 0, 0, 11, 10, 1991)) => substr($wdays[0], 0, 3), date("D", mktime(0, 0, 0, 11, 11, 1991)) => substr($wdays[1], 0, 3), date("D", mktime(0, 0, 0, 11, 12, 1991)) => substr($wdays[2], 0, 3), date("D", mktime(0, 0, 0, 11, 13, 1991)) => substr($wdays[3], 0, 3), date("D", mktime(0, 0, 0, 11, 14, 1991)) => substr($wdays[4], 0, 3), date("D", mktime(0, 0, 0, 11, 15, 1991)) => substr($wdays[5], 0, 3), date("D", mktime(0, 0, 0, 11, 16, 1991)) => substr($wdays[6], 0, 3));
- $replace_months = array(date("F", mktime(0, 0, 0, 1, 1, 2004)) => $months[1], date("F", mktime(0, 0, 0, 2, 1, 2004)) => $months[2], date("F", mktime(0, 0, 0, 3, 1, 2004)) => $months[3], date("F", mktime(0, 0, 0, 4, 1, 2004)) => $months[4], date("F", mktime(0, 0, 0, 5, 1, 2004)) => $months[5], date("F", mktime(0, 0, 0, 6, 1, 2004)) => $months[6], date("F", mktime(0, 0, 0, 7, 1, 2004)) => $months[7], date("F", mktime(0, 0, 0, 8, 1, 2004)) => $months[8], date("F", mktime(0, 0, 0, 9, 1, 2004)) => $months[9], date("F", mktime(0, 0, 0, 10, 1, 2004)) => $months[10], date("F", mktime(0, 0, 0, 11, 1, 2004)) => $months[11], date("F", mktime(0, 0, 0, 12, 1, 2004)) => $Var_3648[12]);
- $replace_short_months = array(date("M", mktime(0, 0, 0, 1, 1, 2004)) => substr($months[1], 0, 3), date("M", mktime(0, 0, 0, 2, 1, 2004)) => substr($months[2], 0, 3), date("M", mktime(0, 0, 0, 3, 1, 2004)) => substr($months[3], 0, 3), date("M", mktime(0, 0, 0, 4, 1, 2004)) => substr($months[4], 0, 3), date("M", mktime(0, 0, 0, 5, 1, 2004)) => substr($months[5], 0, 3), date("M", mktime(0, 0, 0, 6, 1, 2004)) => substr($months[6], 0, 3), date("M", mktime(0, 0, 0, 7, 1, 2004)) => substr($months[7], 0, 3), date("M", mktime(0, 0, 0, 8, 1, 2004)) => substr($months[8], 0, 3), date("M", mktime(0, 0, 0, 9, 1, 2004)) => substr($months[9], 0, 3), date("M", mktime(0, 0, 0, 10, 1, 2004)) => substr($months[10], 0, 3), date("M", mktime(0, 0, 0, 11, 1, 2004)) => substr($months[11], 0, 3), date("M", mktime(0, 0, 0, 12, 1, 2004)) => substr($months[12], 0, 3));
- $return = date($format, $timestamp);
- $return = strtr($return, $replace_wdays);
- $return = strtr($return, $replace_short_wdays);
- $return = strtr($return, $replace_months);
- $return = strtr($return, $replace_short_months);
- return $return;
- }
- function quote_smart($value) {
- if (get_magic_quotes_gpc()) {
- $value = stripslashes($value);
- }
- if (version_compare(phpversion(), "4.3.0") == "-1") {
- return mysql_escape_string($value);
- }
- return mysql_real_escape_string($value);
- }
- function legenda($sitetitle) {
- include ($_SERVER['DOCUMENT_ROOT'] . "/inc/language/" . $_SESSION['taalkeuze'] . ".inc.php");
- echo "\r\n<table align=\"center\">\r\n <tr>\r\n\t\t<td class=\"subTitle\" colspan=\"2\">";
- echo $l23;
- echo "</td>\r\n\t</tr>\r\n <tr>\r\n\t\t<td align=\"right\" class=\"mainTxt\"><font color=\"red\">";
- echo $l24;
- echo "</font></td>\r\n\t\t<td class=\"mainTxt\">";
- echo $l25;
- echo " ";
- echo $sitetitle;
- echo ".</td>\r\n\t</tr>\r\n\t<tr class=\"inhoud\">\r\n\t\t<td align=\"right\" class=\"mainTxt\"><font color=\"#CC3333\">";
- echo $l26;
- echo "</font></td>\r\n\t\t<td class=\"mainTxt\">";
- echo $l27;
- echo " ";
- echo $sitetitle;
- echo ".</td>\r\n\t</tr>\r\n\t<tr class=\"inhoud\">\r\n\t\t<td align=\"right\" class=\"mainTxt\"><font color=\"blue\">";
- echo $l28;
- echo "</font></td>\r\n\t\t<td class=\"mainTxt\">";
- echo $l29;
- echo " ";
- echo $sitetitle;
- echo ".</td>\r\n\t</tr>\r\n <tr class=\"inhoud\">\r\n\t\t<td align=\"right\" class=\"mainTxt\"><font color=\"orange\">";
- echo $l30;
- echo "</font></td>\r\n\t\t<td class=\"mainTxt\">";
- echo $l31;
- echo " ";
- echo $sitetitle;
- echo ".</td>\r\n\t</tr>\r\n\t<tr class=\"inhoud\">\r\n\t\t<td align=\"right\" class=\"mainTxt\"><font color=\"yellow\">";
- echo $l32;
- echo "</font></td>\r\n\t\t<td class=\"mainTxt\">";
- echo $l33;
- echo " ";
- echo $sitetitle;
- echo ".</td>\r\n </tr>\r\n\t<tr class=\"inhoud\">\r\n\t\t<td align=\"right\" class=\"mainTxt\"><font color=\"green\">";
- echo $l34;
- echo "</font></td>\r\n\t\t<td class=\"mainTxt\">";
- echo $l35;
- echo " ";
- echo $sitetitle;
- echo ".</td>\r\n\t</tr>\r\n\t<tr class=\"inhoud\">\r\n\t\t<td align=\"right\" class=\"mainTxt\"><font color=\"purple\">";
- echo $l36;
- echo "</font></td>\r\n\t\t<td class=\"mainTxt\">";
- echo $l37;
- echo " ";
- echo $sitetitle;
- echo ".</td>\r\n\t</tr>\r\n\t<tr class=\"inhoud\">\r\n\t\t<td align=\"right\" class=\"mainTxt\"><font color=\"white\">";
- echo $l38;
- echo "</font></td>\r\n\t\t<td class=\"mainTxt\">";
- echo $l39;
- echo " ";
- echo $sitetitle;
- echo ".</td>\r\n\t</tr>\r\n\r\n</table> \r\n";
- }
- function clanlegenda($clan) {
- include ($_SERVER['DOCUMENT_ROOT'] . "/inc/language/" . $_SESSION['taalkeuze'] . ".inc.php");
- echo "<table align=\"center\">\r\n <tr>\r\n\t\t<td class=\"subTitle\" colspan=\"2\">";
- echo $l40;
- echo "</td>\r\n\t</tr>\r\n <tr>\r\n\t\t<td align=\"right\" class=\"mainTxt\"><font color=\"red\">";
- echo $l41;
- echo "</font></td>\r\n\t\t<td class=\"mainTxt\">";
- echo $l42;
- echo " <font color=\"Yellow\">";
- echo $clan;
- echo "</font>.</td>\r\n\t</tr>\r\n <tr>\r\n\t\t<td align=\"right\" class=\"mainTxt\"><font color=\"#CC3333\">";
- echo $l43;
- echo "</font></td>\r\n\t\t<td class=\"mainTxt\">";
- echo $l44;
- echo " <font color=\"Yellow\">";
- echo $clan;
- echo "</font>.</td>\r\n\t</tr>\r\n\t<tr class=\"inhoud\">\r\n\t\t<td align=\"right\" class=\"mainTxt\"><font color=\"orange\">";
- echo $l45;
- echo "</font></td>\r\n\t\t<td class=\"mainTxt\">";
- echo $l46;
- echo " <font color=\"Yellow\">";
- echo $clan;
- echo "</font>.</td>\r\n\t</tr>\r\n\t<tr class=\"inhoud\">\r\n\t\t<td align=\"right\" class=\"mainTxt\"><font color=\"blue\">";
- echo $l47;
- echo "</font></td>\r\n\t\t<td class=\"mainTxt\">";
- echo $l48;
- echo " <font color=\"Yellow\">";
- echo $clan;
- echo "</font>.</td>\r\n\t</tr>\r\n\t<tr class=\"inhoud\">\r\n\t\t<td align=\"right\" class=\"mainTxt\"><font color=\"white\">";
- echo $l49;
- echo "</font></td>\r\n\t\t<td class=\"mainTxt\">";
- echo $l50;
- echo " <font color=\"Yellow\">";
- echo $clan;
- echo "</font>.</td>\r\n\t</tr>\r\n</table> \r\n";
- }
- function show_bankrate() {
- include ($_SERVER['DOCUMENT_ROOT'] . "/inc/language/" . $_SESSION['taalkeuze'] . ".inc.php");
- echo "<table align=\"center\" width=\"70%\">\r\n <tr>\r\n <td class=\"subTitle\" colspan=\"2\">\r\n ";
- echo $l51;
- echo " \r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" class=\"mainTxt\">\r\n <font color=\"white\">";
- echo $l52;
- echo "</font>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td class=\"mainTxt\">\r\n <center>\r\n 5 % ";
- echo $l53;
- echo " €1.000.000<BR>\r\n 4 % ";
- echo $l54;
- echo " €1.000.000 ";
- echo $l55;
- echo " €3.000.000<BR>\r\n 3 % ";
- echo $l54;
- echo " €3.000.000 ";
- echo $l55;
- echo " €6.000.000<BR>\r\n 2 % ";
- echo $l54;
- echo " €6.000.000 ";
- echo $l55;
- echo " €10.000.000<BR>\r\n 1 % ";
- echo $l54;
- echo " €10.000.000 ";
- echo $l55;
- echo " €20.000.000<BR>\r\n 0,5 % ";
- echo $l56;
- echo " €20.000.000 <BR>\r\n </center>\r\n </td>\r\n </tr>\r\n <tr class=\"inhoud\">\r\n <td align=\"center\" class=\"mainTxt\">\r\n <font color=\"yellow\">Betaald account :</font>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td class=\"mainTxt\">\r\n <center>\r\n 6 % ";
- echo $l53;
- echo " €1.000.000<BR>\r\n 5 % ";
- echo $l54;
- echo $l55;
- echo " €3.000.000<BR>\r\n 4 % ";
- echo $l54;
- echo " €3.000.000 ";
- echo $l55;
- echo " €6.000.000<BR>\r\n 3 % ";
- echo " €6.000.000 ";
- echo $l55;
- echo " €10.000.000<BR>\r\n 2 % ";
- echo $l54;
- echo " €10.000.000 ";
- echo $l55;
- echo " €20.000.000<BR>\r\n 1 % ";
- echo $l56;
- echo " €20.000.000 <BR>\r\n </center>\r\n </td>\r\n </tr>\r\n</table> \r\n";
- }
- function show_stats() {
- include ($_SERVER['DOCUMENT_ROOT'] . "/inc/language/" . $_SESSION['taalkeuze'] . ".inc.php");
- if (!($dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `activated`=1 and `aanuit`='1'"))) {
- exit(mysql_error());
- }
- $leden = mysql_num_rows($dbres);
- if (!($dbres2 = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300"))) {
- exit(mysql_error());
- }
- $online = mysql_num_rows($dbres2);
- if (!($laatstelid = mysql_query("select `login` from `[users]` where `activated`=1 and `aanuit`='1' and `accban`<>'-1' order by id desc limit 0,3"))) {
- exit(mysql_error());
- }
- $laatste = @mysql_result(@$laatstelid, 0, 0);
- echo $l57 . " " . $Var_912 . " " . $l58 . " " . $online . " " . $l59 . " " . colorize($laatste) . " ";
- }
- function stuurbericht($sVan, $sNaar, $sTitel, $sBericht) {
- if (!mysql_query("INSERT INTO `[messages]` (`time`,`IP`,`forwardedFor`,`from`,`to`,`subject`,`message`) values\t(NOW(),'" . $_SERVER['REMOTE_ADDR'] . "','0','" . $sVan . "','" . $sNaar . "','" . $sTitel . "','" . $sBericht . "')")) {
- exit("Function Automailer :" . mysql_error());
- }
- }
- function maffiaprotection() {
- include ($_SERVER['DOCUMENT_ROOT'] . "/inc/language/" . $_SESSION['taalkeuze'] . ".inc.php");
- if (!($select = mysql_query("SELECT * FROM `instellingen`"))) {
- exit(mysql_error());
- }
- $page = mysql_fetch_object($select);
- echo "\r\n\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"";
- echo $sitelink;
- echo "/layout/layout";
- echo $page->layout;
- echo "/css/css.css\">\r\n\r\n";
- if (!($check1 = mysql_query("SELECT `maffiamode` FROM `[users]` WHERE `login`='" . $data->login . "'"))) {
- exit(mysql_error());
- }
- $check = mysql_fetch_object($check1);
- if (!empty($check->maffiamode) && $check->maffiamode <= 1) {
- echo " \r\n\t<table width=\"100%\" align=\"center\">\r\n\t\t<tr><td class=\"subtitle\">";
- echo $l60;
- echo "</td></tr>\r\n\t\t\t\t<td class=\"maintxt\" colspan=\"3\">";
- echo $l61;
- echo "\t</td>\r\n\t\t</tr>\r\n\t</table>\r\n\t";
- exit();
- }
- }
- function show_copyrights() {
- $beginjaar = "2007";
- $jaar = date("Y");
- $jaar2 = $jaar + 1;
- $rechten = "";
- echo "© " . trim($sitelink, "http://www.") . " " . $beginjaar . " - " . $jaar . " Alle rechten voorbehouden!";
- }
- function check_login() {
- if ($_SESSION['IP'] == $_SERVER['REMOTE_ADDR']) {
- if (!($Tmp_10 && isset($_COOKIE['login'], $_COOKIE['validate']))) {
- $validate = md5(rand(0, 1000));
- } else {
- $validate = $_COOKIE['validate'];
- }
- if (!strstr($_SERVER['REQUEST_URI'], "admin") && !strstr($_SERVER['REQUEST_URI'], "inc") && !strstr($_SERVER['REQUEST_URI'], "layout") && !strstr($_SERVER['REQUEST_URI'], "adsshow.php") && $_SERVER['REQUEST_URI'] != "" && $_SERVER['REQUEST_URI'] != "/") {
- if (!mysql_query("UPDATE `[online]` SET `time`=NOW(),`page`='" . trim(trim($_SERVER['PHP_SELF'], ".php"), "/") . "' WHERE `login`='" . $_SESSION['login'] . "' AND `validate`='" . $validate . "'")) {
- exit(mysql_error());
- }
- }
- return TRUE;
- }
- if (isset($_COOKIE['login'], $_COOKIE['validate'])) {
- $login = $_COOKIE['login'];
- $validate = $_COOKIE['validate'];
- $query = mysql_query("SELECT * FROM `[online]` WHERE `login`='{$login}' AND `validate`='{$validate}' AND `IP`='{$_SERVER['REMOTE_ADDR']}' AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`time`) < 60*60*24");
- if ($user = mysql_fetch_object($query)) {
- mysql_query("UPDATE `[online]` SET `time`=NOW() WHERE `login`='{$login}' AND `validate`='{$validate}' AND `IP`='{$_SERVER['REMOTE_ADDR']}' AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`time`) < 60*60*24");
- $_SESSION['login'] = $user->login;
- $_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
- return TRUE;
- }
- unset($_SESSION['login']);
- unset($_SESSION['IP']);
- return FALSE;
- }
- unset($_SESSION['login']);
- unset($_SESSION['IP']);
- return FALSE;
- }
- function captcha() {
- $codene = rand(1000, 9999);
- $codee = ereg_replace("0", "gsqwq", $codene);
- $codee = ereg_replace("1", "ssBjyq", $codee);
- $codee = ereg_replace("2", "gHiq", $codee);
- $codee = ereg_replace("4", "hsqerf", $codee);
- $codee = ereg_replace("5", "Hwsawq", $codee);
- $codee = ereg_replace("6", "hSXaq", $codee);
- $codee = ereg_replace("7", "hgqYt", $codee);
- $codee = ereg_replace("8", "hAsqF", $codee);
- $codee = ereg_replace("9", "hxqSAw", $codee);
- include ($_SERVER['DOCUMENT_ROOT'] . "/inc/language/" . $_SESSION['taalkeuze'] . ".inc.php");
- echo "<table width=\"100%\">\r\n<tr><td align=\"center\"><input name=\"url\" type=\"hidden\" value=\"";
- echo $_SERVER['REQUEST_URI'];
- echo "\"><input name=\"code2\" type=\"hidden\" value=\"";
- echo $codene;
- echo "\"><input name=\"codecheck\" type=\"hidden\" value=\"";
- echo $codechecker;
- echo "\"><img alt=\"";
- echo $l62;
- echo "\" src=\"../coden.php?security=";
- echo $codee;
- echo "\" style=\"position: relative; top: 4;\"><- ";
- echo $l63;
- echo " -><input name=\"codenn\" maxlength=\"4\" size=\"5\" valign=\"center\"></td></tr>\r\n</table>\r\n";
- }
- function PageViewLimit() {
- include ($_SERVER['DOCUMENT_ROOT'] . "/inc/language/" . $_SESSION['taalkeuze'] . ".inc.php");
- $PvlViews = 25;
- session_start();
- if (!isset($_SESSION['Pvl'])) {
- $_SESSION['Pvl']['Time'] = time();
- $_SESSION['Pvl']['Views'] = 1;
- } else if (60 <= time() - $_SESSION['Pvl']['Time']) {
- $_SESSION['Pvl'] = null;
- $_SESSION['Pvl']['Time'] = time();
- $_SESSION['Pvl']['Views'] = 1;
- } else {
- ++$_SESSION['Pvl']['Views'];
- if ($PvlViews <= $_SESSION['Pvl']['Views']) {
- if (!($select = mysql_query("SELECT * FROM `instellingen`"))) {
- exit(mysql_error());
- }
- $page = mysql_fetch_object($select);
- echo " <body style=\"margin:0px;\" >\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"";
- echo $sitelink;
- echo "/layout/layout";
- echo $page->layout;
- echo "/css/css.css\">\r\n\t\t<table width=\"100%\">\r\n \t<tr>\r\n <td class=\"subTitle\">\r\n ";
- echo $l64;
- echo " </td>\r\n </tr>\r\n <tr>\r\n <td class=\"mainTxt\" align=\"center\">\r\n <B>";
- echo $l65;
- echo " ";
- echo $PvlViews;
- echo " ";
- echo $l66;
- echo "</b>\r\n <br /><br />\r\n ";
- echo $l67;
- echo "<BR />\r\n <a href=\"";
- echo $sitelink;
- echo "/belsysteem.php\">";
- echo $l68;
- echo "</a>\r\n <br />\r\n </td>\r\n </tr>\r\n </table>\r\n\t\t";
- exit();
- }
- }
- }
- function checknewmail() {
- include ($_SERVER['DOCUMENT_ROOT'] . "/inc/language/" . $_SESSION['taalkeuze'] . ".inc.php");
- $dbres = mysql_query("SELECT id FROM `[messages]` WHERE `read`='0' AND `inbox`='1' AND `to`='" . $_SESSION['login'] . "'");
- $inboxnew = mysql_num_rows($dbres);
- if (1 <= $inboxnew) {
- echo " <div style=\"position: absolute; top: 50px; left: 10; z-index: 0;\">\r\n <table width=\"100%\">\r\n <tr>\r\n <td align=\"center\" class=\"Subtitle\">\r\n ";
- echo $l69;
- echo " </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" class=\"Error\">\r\n <A href=\"http://";
- echo $_SERVER['HTTP_HOST'];
- echo "/message.php?p=inbox\"><IMG src=\"/images/newmessage.jpg\" border=\"0\" width=\"20\" height=\"20\"><br><br>";
- echo $l70;
- echo "</A>\r\n </td>\r\n </tr>\r\n </table>\r\n\t</div>\r\n\t ";
- }
- }
- function checkmail($mail) {
- $email_host = explode("@", $mail);
- $email_host = $email_host['1'];
- $email_resolved = gethostbyname($email_host);
- if ($email_resolved != $email_host && eregi("^[0-9a-z]([-_.~]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,4}\$", $mail)) {
- $valid = 1;
- }
- return $valid;
- }
- include_once ($_SERVER['DOCUMENT_ROOT'] . "/inc/_include-config.php");
- echo "<s";
- echo "cript language=\"javascript\">\r\n \r\n function getKeyCode(eventObject)\r\n {\r\n if (!eventObject) keyCode = window.event.keyCode; //IE\r\n else keyCode = eventObject.which; //Mozilla\r\n return keyCode;\r\n }\r\n \r\n function onlyNumeric(eventObject)\r\n {\r\n keyCode = getKeyCode(eventObject);\r\n if (((keyCode > 31) && (keyCode < 48)) || ((keyCode > 57) && (keyCode < 12";
- echo "7)))\r\n {\r\n if (!eventObject) window.event.keyCode = 0; //IE\r\n else eventObject.preventDefault(); //Mozilla\r\n return false;\r\n }\r\n }\r\n</script>\r\n\r\n";
- $locatie = $_SERVER['REQUEST_URI'];
- $array = array();
- $array[] = "mysql";
- $array[] = ")";
- $array[] = ";";
- $array[] = "}";
- $array[] = "INSERT";
- $array[] = "DROPTABLE";
- $array[] = "TRUNCATE";
- $array[] = "DROP";
- $array[] = "UPDATE";
- $array[] = "COOKIE";
- $array[] = "ENV ";
- $array[] = "FILES";
- $array[] = "GET ";
- $array[] = "POST";
- $array[] = "REQUEST";
- $array[] = "SERVER";
- $array[] = "<script>";
- foreach($array as $foutbezig) {
- if (eregi($foutbezig, $locatie)) {
- echo "Internet fout, ip adres doorgegeven aan domein houder.";
- exit();
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement