1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
| <?php
define ("INDEX_CHECK", 1);
include ("conf.inc.php");
if (!defined("NK_OPEN"))
{
echo "<br /><br /><br /><div style=\"text-align: center;\"><big>Sorry, this website is momently closed, Please try again later.</big></div>";
exit();
}
if (!defined("NK_INSTALLED"))
{
if (is_file("install.php"))
{
header("location: install.php");
}
}
else
{
if (is_file("install.php") || is_file("update.php"))
{
echo "<br /><br /><br /><div style=\"text-align: center;\"><big>Warning ! <b>install.php</b> and <b>update.php</b> must be removed before continuing !</big></div>";
exit();
}
}
include ("nuked.php");
$session = session_check();
if ($session == 1) $user = secure();
else $user = "";
$session_admin = admin_check();
$check_ip = banip();
if ($check_ip != "")
{
$url_ban = "ban.php?ip_ban=" . $check_ip;
redirect($url_ban, 0);
exit();
}
if (isset($nuked_nude) && $nuked_nude != "") $im_file = $nuked_nude;
else if (isset($page) && $page != "") $im_file = $page;
else $im_file = "index";
// Securite par phpSecure.info
if (ereg("\.\.", $theme) || ereg("\.\.", $language) || ereg("\.\.", $file) || ereg("\.\.", $im_file) || eregi("http\:\/\/", $file) || eregi("http\:\/\/", $im_file))
{
die("<br /><br /><br /><div style=\"text-align: center;\"><big>What are you trying to do ?</big></div>");
}
$file = trim($file);
$im_file = trim($im_file);
$theme = trim($theme);
$language = trim($language);
// Fin
if ($nuked['nk_status'] == "closed" && $user[1] < 9 && $op != "login_screen" && $op != "login_message" && $op != "login")
{
include ("themes/" . $theme . "/colors.php");
translate("lang/" . $language . ".lang.php");
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"
. "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"fr\">\n"
. "<head><title>" . $nuked['name'] . " :: " . $nuked['slogan'] . " ::</title>\n"
. "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n"
. "<meta http-equiv=\"content-style-type\" content=\"text/css\" />\n"
. "<link title=\"style\" type=\"text/css\" rel=\"stylesheet\" href=\"themes/" . $theme . "/style.css\" /></head>\n"
. "<body style=\"background: " . $bgcolor2 . ";\"><div><br /><br /><br /><br /><br /><br /><br /><br /></div>\n"
. "<table style=\"margin-left: auto;margin-right: auto;text-align: left;background: " . $bgcolor3 . ";\" cellspacing=\"1\" cellpadding=\"20\">\n"
. "<tr><td style=\"background: " . $bgcolor1 . ";\" align=\"center\"><big><b>" . $nuked['name'] . " - " . $nuked['slogan'] . "</b></big><br /><br />\n"
. _SITECLOSED . "</td></tr></table></body></html>";
}
else if (($file == "Admin" || $page == "admin" || $nuked_nude == "admin") && $session_admin == 0)
{
include ("themes/" . $theme . "/colors.php");
include ("themes/" . $theme . "/theme.php");
translate("lang/" . $language . ".lang.php");
if (!isset($nuked_nude)) top();
include("modules/Admin/login.php");
if (!isset($nuked_nude))
{
footer();
include("Includes/copyleft.php");
}
}
else
{
if ($file != "Admin" && $page != "admin" && $nuked_nude != "admin" && $op != "smilies" && $session_admin == 1) setcookie($cookie_admin, "", time() - 86400);
include ("themes/" . $theme . "/colors.php");
include ("themes/" . $theme . "/theme.php");
translate("lang/" . $language . ".lang.php");
visits();
if (!isset($nuked_nude))
{
if (defined("NK_GZIP") && @extension_loaded('zlib') && !@ini_get('zlib.output_compression') && @phpversion() >= "4.0.4")
{
ob_start("ob_gzhandler");
}
top();
echo "<script type=\"text/javascript\" src=\"infobulle.js\"></script>"
. "<script type=\"text/javascript\">InitBulle('" . $bgcolor2 . "', '" . $bgcolor3 . "', 2);</script>";
if ($nuked['nk_status'] == "closed" && $user[1] == 9)
{
echo "<table style=\"background: " . $bgcolor3 . ";\" width=\"100%\" cellspacing=\"1\" cellpadding=\"8\">\n"
."<tr><td style=\"background: " . $bgcolor2 . ";\" ><big><b>" . _YOURSITEISCLOSED . " :<br /><br/ >" . $nuked['url'] . "/index.php?file=User&op=login_screen</b></big></td></tr></table><br />\n";
}
}
if (is_file("modules/" . $file . "/" . $im_file . ".php"))
{
include("modules/" . $file . "/" . $im_file . ".php");
}
else
{
include("modules/404/index.php");
}
if (!isset($nuked_nude))
{
if ($user[5] > 0 && !isset($_COOKIE['popup']) && $file != "User" && $file != "Userbox")
{
echo "<div id=\"popup_dhtml\" style=\"position:absolute;top:0;left:0;visibility:visible;z-index:10\"></div>\n"
. "<script type=\"text/javascript\" src=\"popup.js\"></script>\n"
. "<script type=\"text/javascript\">popup('" . $bgcolor2 . "', '" . $bgcolor3 . "', '" . _NEWMESSAGESTART . " " . $user[5] . " " . _NEWMESSAGEEND . "', '" . _CLOSEWINDOW . "', 'index.php?file=Userbox', 350, 100);</script>\n";
}
footer();
include("Includes/copyleft.php");
}
} |
Partager