Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function admin_protector($_obfuscate_livXeSxqQi8я)
- {
- global $llave;
- $_obfuscate_OMIJx9TMuKk1 = $_obfuscate_livXeSxqQi8я;
- if (eregi("(nuke_authors)|(radminsuper)|(addauthor)|(pwd)|(/\\*.*\\*/)|(dW5pb24)|(VU5JT04)", $_obfuscate_OMIJx9TMuKk1)) {
- $_obfuscate_BVZMNopucEeXqQяя = base64_encode($_obfuscate_OMIJx9TMuKk1);
- $_obfuscate_M88D = "security.php?codigo='." . $_obfuscate_BVZMNopucEeXqQяя;
- header("Location: " . $_obfuscate_M88D);
- exit();
- }
- }
- function testonlinestatus($die = true)
- {
- require_once("includes/hora.php");
- global $ora;
- global $sbaccount;
- global $db;
- global $prefix;
- global $chkdate;
- global $chkdatesign;
- $server = $_SERVER['HTTP_HOST'] .= dirname($_SERVER['SCRIPT_NAME']);
- $maketest = 0;
- $tmpcode = md5("{$chkdate}-{$server}-" . base64_decode(_CIDSB));
- if ($chkdatesign != $tmpcode || $chkdate < $ora) {
- $maketest = 1;
- }
- if ($maketest) {
- $dom[0] = "{$sbaccount}";
- $dom[1] = $server;
- $dom[1] = strtoupper($dom[1]);
- $dom[2] = obtener_ip();
- $dom[3] = $ora;
- $domor = base64_encode(implode("&&", $dom));
- $code = md5("{$domor}-" . base64_decode(_CIDSB));
- static $servercode = "";
- if ($servercode == "") {
- $url = base64_decode(_CIDPA) . ("?dm=" . $domor . "&vc={$code}");
- if ($fp = @fopen($url, "r")) {
- while (!feof($fp)) {
- $servercode .= fread($fp, 128);
- }
- fclose($fp);
- }
- }
- $code = md5(base64_decode(_CIDSB) . ("-" . $domor));
- if ($code != $servercode) {
- $db->sql_query("UPDATE " . $prefix . "_config SET chkdate='0', chkdatesign=''");
- dberror($db, __FILE__, 322);
- } else {
- $chkdate = $ora + 21600;
- $tmpcode = md5("{$chkdate}-{$server}-" . base64_decode(_CIDSB));
- $db->sql_query("UPDATE " . $prefix . "_config SET chkdate='{$chkdate}', chkdatesign='{$tmpcode}'");
- dberror($db, __FILE__, 327);
- }
- }
- if ($code != $servercode && $maketest) {
- $message .= "<br /><center><table bgcolor=#FFFFFF cellspacing=2 cellpadding=20 style='border:4px solid red'><tr><td align=center>";
- $message .= "<b>Sportsbook Management System</b><br />Copyright (c) by <a href='http://adalid-soft.com'>Adalid-Soft</a><br />";
- $message .= "<b><font color=red>This Software is U N L I C E N S E D</font><br />Ref: " . $server . " {$servercode}</b>";
- if (defined("ADMIN_PAGE")) {
- $message .= "<br /><br />If you think this is a mistake, please <a href='http://adalid-soft.com/modules.php?name=Contacto'>contact us</a>";
- } else {
- $message .= "<br /><br />Please contact the webmaster of this site</a>";
- }
- $message .= "</td></tr></table></center><br />";
- if ($die) {
- $index = 1;
- include("header.php");
- opentable();
- echo $message;
- closetable();
- echo "<br>";
- include("footer.php");
- exit();
- }
- return $message;
- }
- return "";
- }
- function get_lang($module)
- {
- global $currentlang;
- global $language;
- if (file_exists("modules/" . $module . "/language/lang-" . $currentlang . ".php")) {
- if ($module == admin) {
- include_once("admin/language/lang-" . $currentlang . ".php");
- } else {
- include_once("modules/" . $module . "/language/lang-" . $currentlang . ".php");
- }
- } else if ($module == admin) {
- include_once("admin/language/lang-" . $currentlang . ".php");
- } else {
- include_once("modules/" . $module . "/language/lang-" . $language . ".php");
- }
- }
- function is_admin($_obfuscate_QEdCQBQя)
- {
- global $prefix;
- global $db;
- static $adminSave;
- if (isset($_obfuscate_feLGM_IBUWT7)) {
- return $adminSave;
- }
- if (!is_array($_obfuscate_QEdCQBQя)) {
- $_obfuscate_QEdCQBQя = base64_decode($_obfuscate_QEdCQBQя);
- $_obfuscate_QEdCQBQя = explode(":", $_obfuscate_QEdCQBQя);
- }
- $_obfuscate_2PfU = $_obfuscate_QEdCQBQя[0];
- $_obfuscate_4HS1 = $_obfuscate_QEdCQBQя[1];
- if ($_obfuscate_2PfU != "" && $_obfuscate_4HS1 != "") {
- $_obfuscate_2PfU = trim($_obfuscate_2PfU);
- $_obfuscate_3y0Y = "SELECT pwd FROM " . $prefix . ("_authors WHERE aid='" . $_obfuscate_2PfU . "'");
- $_obfuscate_xs33Yt_k = $db->sql_query($_obfuscate_3y0Y);
- $_obfuscate_gkt = $db->sql_fetchrow($_obfuscate_xs33Yt_k);
- dberror($db, __FILE__, 399);
- $_obfuscate_any6bwяя = $_obfuscate_gkt['pwd'];
- if ($_obfuscate_any6bwяя == $_obfuscate_4HS1 && $_obfuscate_any6bwяя != "") {
- return $adminSave = 1;
- }
- }
- return $adminSave = 0;
- }
- function is_user($_obfuscate_m2Kuwwяя)
- {
- global $db;
- global $user_prefix;
- static $userSave;
- if (isset($_obfuscate_KsyoHUaM_BQя)) {
- return $userSave;
- }
- if (!is_array($_obfuscate_m2Kuwwяя)) {
- $_obfuscate_m2Kuwwяя = base64_decode($_obfuscate_m2Kuwwяя);
- $_obfuscate_m2Kuwwяя = explode(":", $_obfuscate_m2Kuwwяя);
- }
- $_obfuscate_7Ri3 = $_obfuscate_m2Kuwwяя[0];
- $_obfuscate_4HS1 = $_obfuscate_m2Kuwwяя[2];
- $_obfuscate_7Ri3 = intval($_obfuscate_7Ri3);
- if ($_obfuscate_7Ri3 != "" && $_obfuscate_4HS1 != "") {
- $_obfuscate_3y0Y = "SELECT user_password FROM " . $user_prefix . ("_users WHERE user_id='" . $_obfuscate_7Ri3 . "'");
- $_obfuscate_xs33Yt_k = $db->sql_query($_obfuscate_3y0Y);
- $_obfuscate_gkt = $db->sql_fetchrow($_obfuscate_xs33Yt_k);
- dberror($db, __FILE__, 426);
- $_obfuscate_any6bwяя = $_obfuscate_gkt['user_password'];
- if ($_obfuscate_any6bwяя == $_obfuscate_4HS1 && $_obfuscate_any6bwяя != "") {
- return $userSave = 1;
- }
- }
- return $userSave = 0;
- }
- function title($_obfuscate_aNcpmAяя)
- {
- opentable();
- echo "<center><font class=\"title\"><b>" . $_obfuscate_aNcpmAяя . "</b></font></center>";
- closetable();
- echo "<br>";
- }
- function is_active($_obfuscate_T_cpxCSV)
- {
- global $prefix;
- global $db;
- static $save;
- if (is_array($save)) {
- if (isset($save[$_obfuscate_T_cpxCSV])) {
- return $save[$_obfuscate_T_cpxCSV];
- }
- return 0;
- }
- $_obfuscate_3y0Y = "SELECT title FROM " . $prefix . "_modules WHERE active=1";
- $_obfuscate_xs33Yt_k = $db->sql_query($_obfuscate_3y0Y);
- dberror($db, __FILE__, 455);
- while ($_obfuscate_gkt = $db->sql_fetchrow($_obfuscate_xs33Yt_k)) {
- $save[$_obfuscate_gkt[0]] = 1;
- }
- if (isset($save[$_obfuscate_T_cpxCSV])) {
- return $save[$_obfuscate_T_cpxCSV];
- }
- return 0;
- }
- function render_blocks($_obfuscate_7wvJegяя, $_obfuscate_VQGr3poCx8jK, $_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя, $_obfuscate_cO77, $_obfuscate_Il8i)
- {
- if ($_obfuscate_Il8i == "") {
- if ($_obfuscate_VQGr3poCx8jK == "") {
- if ($_obfuscate_7wvJegяя == "c") {
- themecenterbox($_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя);
- } else if ($_obfuscate_7wvJegяя == "d") {
- themecenterbox($_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя);
- } else {
- themesidebox($_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя, $_obfuscate_7wvJegяя);
- }
- } else if ($_obfuscate_7wvJegяя == "c") {
- blockfileinc($_obfuscate_obqvewяя, $_obfuscate_VQGr3poCx8jK, 1);
- } else if ($_obfuscate_7wvJegяя == "d") {
- blockfileinc($_obfuscate_obqvewяя, $_obfuscate_VQGr3poCx8jK, 1);
- } else {
- blockfileinc($_obfuscate_obqvewяя, $_obfuscate_VQGr3poCx8jK, $_obfuscate_7wvJegяя);
- }
- } else if ($_obfuscate_7wvJegяя == "c" || $_obfuscate_7wvJegяя == "d") {
- headlines($_obfuscate_cO77, 1);
- } else {
- headlines($_obfuscate_cO77);
- }
- }
- function themecenterbox($_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя)
- {
- opentable();
- echo "<center><font class=\"option\"><b>" . $_obfuscate_obqvewяя . "</b></font></center><br>" . "{$_obfuscate__WwKzYz1wAяя}";
- closetable();
- echo "<br>";
- }
- function blockfileinc($title, $blockfile, $side = 0)
- {
- $blockfiletitle = $title;
- $file = @file("blocks/" . $blockfile . "");
- if (!$file) {
- $content = _BLOCKPROBLEM;
- } else {
- include("blocks/" . $blockfile . "");
- }
- if ($content == "") {
- $content = _BLOCKPROBLEM2;
- }
- if ($side == 1) {
- themecenterbox($blockfiletitle, $content);
- } else if ($side == 2) {
- themecenterbox($blockfiletitle, $content);
- } else {
- themesidebox($blockfiletitle, $content, $side);
- }
- }
- function headlines($_obfuscate_cO77, $_obfuscate_gNHHh9 = 0)
- {
- global $prefix;
- global $db;
- global $ora;
- global $xmlscroll;
- $_obfuscate_cO77 = intval($_obfuscate_cO77);
- $_obfuscate_3y0Y = "SELECT title, content, url, bposition, refresh, time FROM " . $prefix . ("_blocks WHERE bid='" . $_obfuscate_cO77 . "'");
- $_obfuscate_xs33Yt_k = $db->sql_query($_obfuscate_3y0Y);
- $_obfuscate_gkt = $db->sql_fetchrow($_obfuscate_xs33Yt_k);
- dberror($db, __FILE__, 532);
- $_obfuscate_obqvewяя = $_obfuscate_gkt['title'];
- $_obfuscate__WwKzYz1wAяя = $_obfuscate_gkt['content'];
- $_obfuscate_Il8i = $_obfuscate_gkt['url'];
- $_obfuscate_5eJqQtW4X5QC = $_obfuscate_gkt['bposition'];
- $_obfuscate_cdNDZH083gяя = stripslashes($_obfuscate_gkt['refresh']);
- $_obfuscate_PVW9aPcя = $_obfuscate_gkt['time'];
- $_obfuscate_GIOrQwяя = $ora - $_obfuscate_cdNDZH083gяя;
- if ($_obfuscate_PVW9aPcя < $_obfuscate_GIOrQwяя) {
- $_obfuscate_FVg1SUoя = $ora;
- $_obfuscate_W3Qb = parse_url($_obfuscate_Il8i);
- $_obfuscate_YBYя = @fsockopen($_obfuscate_W3Qb['host'], 80, &$_obfuscate_FWIfY_0я, &$_obfuscate_5elozUtj, 15);
- if (!$_obfuscate_YBYя) {
- $_obfuscate__WwKzYz1wAяя = "";
- $_obfuscate_3y0Y = "UPDATE " . $prefix . "_blocks SET content='" . addslashes($_obfuscate__WwKzYz1wAяя) . ("', time='" . $_obfuscate_FVg1SUoя . "' WHERE bid='{$_obfuscate_cO77}'");
- $db->sql_query($_obfuscate_3y0Y);
- dberror($db, __FILE__, 549);
- $_obfuscate_NeLgcwяя = 0;
- if ($_obfuscate_gNHHh9 == 0) {
- themesidebox($_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя, $_obfuscate_5eJqQtW4X5QC);
- } else {
- themecenterbox($_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя);
- }
- } else {
- if ($_obfuscate_W3Qb['query'] != "") {
- $_obfuscate_W3Qb['query'] = "?" . $_obfuscate_W3Qb['query'];
- }
- fputs($_obfuscate_YBYя, "GET " . $_obfuscate_W3Qb['path'] . $_obfuscate_W3Qb['query'] . " HTTP/1.0\r\n");
- fputs($_obfuscate_YBYя, "HOST: " . $_obfuscate_W3Qb['host'] . "\r\n\r\n");
- $_obfuscate_xyiNieq6 = "";
- while (!feof($_obfuscate_YBYя)) {
- $_obfuscate_DJoXIUj6GJIя = fgets($_obfuscate_YBYя, 300);
- $_obfuscate_xyiNieq6 .= rtrim($_obfuscate_DJoXIUj6GJIя);
- }
- fputs($_obfuscate_YBYя, "Connection: close\r\n\r\n");
- fclose($_obfuscate_YBYя);
- $_obfuscate_ = explode("</item>", $_obfuscate_xyiNieq6);
- $_obfuscate__WwKzYz1wAяя = "<font class=\"content\">";
- $_obfuscate_7wяя = 0;
- for (; $_obfuscate_7wяя < 10; ++$_obfuscate_7wяя) {
- $_obfuscate_RlkkeAяя = ereg_replace(".*<link>", "", $_obfuscate_[$_obfuscate_7wяя]);
- $_obfuscate_RlkkeAяя = ereg_replace("</link>.*", "", $_obfuscate_RlkkeAяя);
- $_obfuscate_KXXN_2rl = ereg_replace(".*<title>", "", $_obfuscate_[$_obfuscate_7wяя]);
- $_obfuscate_KXXN_2rl = ereg_replace("</title>.*", "", $_obfuscate_KXXN_2rl);
- $_obfuscate_KXXN_2rl = stripslashes($_obfuscate_KXXN_2rl);
- if ($_obfuscate_[$_obfuscate_7wяя] == "" && $_obfuscate_NeLgcwяя != 1) {
- $_obfuscate__WwKzYz1wAяя = "";
- $_obfuscate_3y0Y = "UPDATE " . $prefix . "_blocks SET content='" . addslashes($_obfuscate__WwKzYz1wAяя) . ("', time='" . $_obfuscate_FVg1SUoя . "' WHERE bid='{$_obfuscate_cO77}'");
- $db->sql_query($_obfuscate_3y0Y);
- dberror($db, __FILE__, 584);
- $_obfuscate_NeLgcwяя = 0;
- if ($_obfuscate_gNHHh9 == 0) {
- themesidebox($_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя, $_obfuscate_5eJqQtW4X5QC);
- } else {
- themecenterbox($_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя);
- }
- } else if (!strcmp($_obfuscate_RlkkeAяя, $_obfuscate_KXXN_2rl) && !($_obfuscate_[$_obfuscate_7wяя] != "")) {
- $_obfuscate_NeLgcwяя = 1;
- $_obfuscate__WwKzYz1wAяя .= "<strong>:: </strong><a href=\"" . $_obfuscate_RlkkeAяя . "\" target=\"new\">{$_obfuscate_KXXN_2rl}</a><br>\n";
- }
- }
- $_obfuscate_3y0Y = "UPDATE " . $prefix . "_blocks SET content='" . addslashes($_obfuscate__WwKzYz1wAяя) . ("', time='" . $_obfuscate_FVg1SUoя . "' WHERE bid='{$_obfuscate_cO77}'");
- $db->sql_query($_obfuscate_3y0Y);
- dberror($db, __FILE__, 603);
- }
- }
- $_obfuscate_bA4YBgmMpAяя = ereg_replace("http://", "", $_obfuscate_Il8i);
- $_obfuscate_bA4YBgmMpAяя = explode("/", $_obfuscate_bA4YBgmMpAяя);
- if ($_obfuscate_NeLgcwяя == 1 || $_obfuscate__WwKzYz1wAяя != "") {
- if ($xmlscroll == 1) {
- $_obfuscate__WwKzYz1wAяя = "<br><Marquee Behavior=\"Scroll\" Direction=\"Up\" Height=\"140\" ScrollAmount=\"1\" ScrollDelay=\"100\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\"><br>" . $_obfuscate__WwKzYz1wAяя . "</font></Marquee><font class=\"content\"><br><a href=\"http://{$_obfuscate_bA4YBgmMpAяя['0']}\" target=\"blank\"><b>" . _HREADMORE . "</b></a></font>";
- } else {
- $_obfuscate__WwKzYz1wAяя = "<br>" . $_obfuscate__WwKzYz1wAяя . "<br><a href=\"http://{$_obfuscate_bA4YBgmMpAяя['0']}\" target=\"blank\"><b>" . _HREADMORE . "</b></a></font>";
- }
- } else if ($_obfuscate_NeLgcwяя == 0 || $_obfuscate__WwKzYz1wAяя == "") {
- $_obfuscate__WwKzYz1wAяя = "<font class=\"content\">" . _RSSPROBLEM . "</font>";
- }
- if ($_obfuscate_gNHHh9 == 0) {
- themesidebox($_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя, $_obfuscate_5eJqQtW4X5QC);
- } else {
- themecenterbox($_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя);
- }
- }
- function blocks($_obfuscate_7wvJegяя)
- {
- global $storynum;
- global $prefix;
- global $ora;
- global $multilingual;
- global $currentlang;
- global $db;
- global $admin;
- global $user;
- if ($multilingual == 1) {
- $_obfuscate_B5gSJO3EArIR = "AND (blanguage='" . $currentlang . "' OR blanguage='')";
- } else {
- $_obfuscate_B5gSJO3EArIR = "";
- }
- if (strtolower($_obfuscate_7wvJegяя[0]) == "l") {
- $_obfuscate_LmSv = "l";
- } else if (strtolower($_obfuscate_7wvJegяя[0]) == "r") {
- $_obfuscate_LmSv = "r";
- } else if (strtolower($_obfuscate_7wvJegяя[0]) == "c") {
- $_obfuscate_LmSv = "c";
- } else if (strtolower($_obfuscate_7wvJegяя[0]) == "d") {
- $_obfuscate_LmSv = "d";
- }
- $_obfuscate_7wvJegяя = $_obfuscate_LmSv;
- $_obfuscate_3y0Y = "SELECT bid, bkey, title, content, url, blockfile, view, expire, action, subscription FROM " . $prefix . ("_blocks WHERE bposition='" . $_obfuscate_LmSv . "' AND active='1' {$_obfuscate_B5gSJO3EArIR} ORDER BY weight ASC");
- $_obfuscate_xs33Yt_k = $db->sql_query($_obfuscate_3y0Y);
- dberror($db, __FILE__, 644);
- while ($_obfuscate_gkt = $db->sql_fetchrow($_obfuscate_xs33Yt_k)) {
- $_obfuscate_cO77 = intval($_obfuscate_gkt['bid']);
- $_obfuscate_obqvewяя = $_obfuscate_gkt['title'];
- $_obfuscate__WwKzYz1wAяя = $_obfuscate_gkt['content'];
- $_obfuscate_Il8i = $_obfuscate_gkt['url'];
- $_obfuscate_VQGr3poCx8jK = $_obfuscate_gkt['blockfile'];
- $_obfuscate_bbPlhQяя = intval($_obfuscate_gkt['view']);
- $_obfuscate_qOmXDu8y = intval($_obfuscate_gkt['expire']);
- $_obfuscate_IO8hYI15 = $_obfuscate_gkt['action'];
- $_obfuscate__dMu = $ora;
- $_obfuscate__R2_ = intval($_obfuscate_gkt['subscription']);
- if ($_obfuscate_qOmXDu8y != 0 && $_obfuscate_qOmXDu8y <= $_obfuscate__dMu) {
- if ($_obfuscate_IO8hYI15 == "d") {
- $db->sql_query("UPDATE " . $prefix . ("_blocks SET active='0', expire='0' WHERE bid='" . $_obfuscate_cO77 . "'"));
- dberror($db, __FILE__, 660);
- } else {
- if ($_obfuscate_IO8hYI15 == "r") {
- $db->sql_query("DELETE FROM " . $prefix . ("_blocks WHERE bid='" . $_obfuscate_cO77 . "'"));
- dberror($db, __FILE__, 664);
- } else {
- }
- }
- } else if ($_obfuscate_gkt[bkey] == "admin") {
- adminblock();
- } else if ($_obfuscate_gkt[bkey] == "userbox") {
- userblock();
- } else if ($_obfuscate_gkt[bkey] == "") {
- if ($_obfuscate_bbPlhQяя == 0) {
- render_blocks($_obfuscate_7wvJegяя, $_obfuscate_VQGr3poCx8jK, $_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя, $_obfuscate_cO77, $_obfuscate_Il8i);
- } else if ($_obfuscate_bbPlhQяя == 1 && (is_user($user) || is_admin($admin))) {
- render_blocks($_obfuscate_7wvJegяя, $_obfuscate_VQGr3poCx8jK, $_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя, $_obfuscate_cO77, $_obfuscate_Il8i);
- } else if ($_obfuscate_bbPlhQяя == 2 && is_admin($admin)) {
- render_blocks($_obfuscate_7wvJegяя, $_obfuscate_VQGr3poCx8jK, $_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя, $_obfuscate_cO77, $_obfuscate_Il8i);
- } else if (!($_obfuscate_bbPlhQяя == 3) && is_user($user) && !is_admin($admin)) {
- render_blocks($_obfuscate_7wvJegяя, $_obfuscate_VQGr3poCx8jK, $_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя, $_obfuscate_cO77, $_obfuscate_Il8i);
- }
- }
- }
- }
- function message_box()
- {
- global $bgcolor1;
- global $bgcolor2;
- global $user;
- global $ora;
- global $admin;
- global $cookie;
- global $textcolor2;
- global $prefix;
- global $multilingual;
- global $currentlang;
- global $db;
- if ($multilingual == 1) {
- $_obfuscate_B5gSJO3EArIR = "AND (mlanguage='" . $currentlang . "' OR mlanguage='')";
- } else {
- $_obfuscate_B5gSJO3EArIR = "";
- }
- $_obfuscate_3y0Y = "SELECT mid, title, content, date, expire, view FROM " . $prefix . ("_message WHERE active='1' " . $_obfuscate_B5gSJO3EArIR);
- $_obfuscate_xs33Yt_k = $db->sql_query($_obfuscate_3y0Y);
- dberror($db, __FILE__, 700);
- if ($_obfuscate_MitedbTxgQяя = $db->sql_numrows($_obfuscate_xs33Yt_k) == 0) {
- return;
- }
- while ($_obfuscate_gkt = $db->sql_fetchrow($_obfuscate_xs33Yt_k)) {
- $_obfuscate_T1Ej = intval($_obfuscate_gkt['mid']);
- $_obfuscate_obqvewяя = $_obfuscate_gkt['title'];
- $_obfuscate__WwKzYz1wAяя = stripslashes($_obfuscate_gkt['content']);
- $_obfuscate_PfNVopwя = $_obfuscate_gkt['date'];
- $_obfuscate_qOmXDu8y = intval($_obfuscate_gkt['expire']);
- $_obfuscate_bbPlhQяя = intval($_obfuscate_gkt['view']);
- if (!($_obfuscate_obqvewяя != "") || !($_obfuscate__WwKzYz1wAяя != "")) {
- if ($_obfuscate_qOmXDu8y == 0) {
- $_obfuscate_1LATkCw = _UNLIMITED;
- } else {
- $_obfuscate_KWKBW4я = ($_obfuscate_PfNVopwя + $_obfuscate_qOmXDu8y - $ora) / 3600;
- $_obfuscate_KWKBW4я = ( integer ) $_obfuscate_KWKBW4я;
- if ($_obfuscate_KWKBW4я < 1) {
- $_obfuscate_1LATkCw = _EXPIRELESSHOUR;
- } else {
- $_obfuscate_1LATkCw = _EXPIREIN . $_obfuscate_KWKBW4я . _HOURS;
- }
- }
- if ($_obfuscate_bbPlhQяя == 4 && is_admin($admin)) {
- opentable();
- if ($_obfuscate_obqvewяя != "") {
- echo "<center><font class=\"option\" color=\"" . $textcolor2 . "\"><b>" . $_obfuscate_obqvewяя . "</b></font></center><br>";
- }
- echo "<font class=\"content\">" . $_obfuscate__WwKzYz1wAяя . "</font><br><br><center><font class=\"content\">[ " . _MVIEWADMIN . " - " . $_obfuscate_1LATkCw . " - <a href=\"admin.php?op=editmsg&mid=" . $_obfuscate_T1Ej . "\">" . _EDIT . "</a> ]</font></center>";
- closetable();
- echo "<br>";
- } else if ($_obfuscate_bbPlhQяя == 3 && (is_user($user) || is_admin($admin))) {
- opentable();
- if ($_obfuscate_obqvewяя != "") {
- echo "<center><font class=\"option\" color=\"" . $textcolor2 . "\"><b>" . $_obfuscate_obqvewяя . "</b></font></center><br>";
- }
- echo "<font class=\"content\">" . $_obfuscate__WwKzYz1wAяя . "</font>";
- if (is_admin($admin)) {
- echo "<br><br><center><font class=\"content\">[ " . _MVIEWUSERS . " - " . $_obfuscate_1LATkCw . " - <a href=\"admin.php?op=editmsg&mid=" . $_obfuscate_T1Ej . "\">" . _EDIT . "</a> ]</font></center>";
- }
- closetable();
- echo "<br>";
- } else if ($_obfuscate_bbPlhQяя == 2 && (!is_user($user) && is_admin($admin))) {
- opentable();
- if ($_obfuscate_obqvewяя != "") {
- echo "<center><font class=\"option\" color=\"" . $textcolor2 . "\"><b>" . $_obfuscate_obqvewяя . "</b></font></center><br>";
- }
- echo "<font class=\"content\">" . $_obfuscate__WwKzYz1wAяя . "</font>";
- if (is_admin($admin)) {
- echo "<br><br><center><font class=\"content\">[ " . _MVIEWANON . " - " . $_obfuscate_1LATkCw . " - <a href=\"admin.php?op=editmsg&mid=" . $_obfuscate_T1Ej . "\">" . _EDIT . "</a> ]</font></center>";
- }
- closetable();
- echo "<br>";
- } else if ($_obfuscate_bbPlhQяя == 1) {
- opentable();
- if ($_obfuscate_obqvewяя != "") {
- echo "<center><font class=\"option\" color=\"" . $textcolor2 . "\"><b>" . $_obfuscate_obqvewяя . "</b></font></center><br>";
- }
- echo "<font class=\"content\">" . $_obfuscate__WwKzYz1wAяя . "</font>";
- if (is_admin($admin)) {
- echo "<br><br><center><font class=\"content\">[ " . _MVIEWALL . " - " . $_obfuscate_1LATkCw . " - <a href=\"admin.php?op=editmsg&mid=" . $_obfuscate_T1Ej . "\">" . _EDIT . "</a> ]</font></center>";
- }
- closetable();
- echo "<br>";
- }
- if ($_obfuscate_qOmXDu8y != 0) {
- $_obfuscate_GIOrQwяя = $ora - $_obfuscate_qOmXDu8y;
- if ($_obfuscate_PfNVopwя < $_obfuscate_GIOrQwяя) {
- $db->sql_query("UPDATE " . $prefix . ("_message SET active='0' WHERE mid='" . $_obfuscate_T1Ej . "'"));
- dberror($db, __FILE__, 769);
- }
- }
- }
- }
- }
- function obtener_ip()
- {
- global $HTTP_CLIENT_IP;
- global $REMOTE_ADDR;
- global $HTTP_X_FORWARDED_FOR;
- if ($HTTP_CLIENT_IP == "" && $HTTP_X_FORWARDED_FOR == "") {
- $_obfuscate_Asя = $_SERVER['REMOTE_ADDR'];
- return $_obfuscate_Asя;
- }
- if ($HTTP_X_FORWARDED_FOR != "") {
- $_obfuscate_Asя = $HTTP_X_FORWARDED_FOR;
- }
- if ($HTTP_CLIENT_IP != "") {
- $_obfuscate_Asя = $HTTP_CLIENT_IP;
- }
- return $_obfuscate_Asя;
- }
- function online()
- {
- global $sesionexpires;
- global $forceexpire;
- global $user;
- global $cookie;
- global $prefix;
- global $db;
- global $module_name;
- global $ora;
- global $HTTP_CLIENT_IP;
- global $REMOTE_ADDR;
- global $HTTP_X_FORWARDED_FOR;
- $_obfuscate_Asя = obtener_ip();
- $_obfuscate_Il8i = $_SERVER['REQUEST_URI'];
- $_obfuscate_IVe6Ccwjp8я = gethostbyaddr($_obfuscate_Asя);
- if (eregi("admin.php", $_obfuscate_Il8i)) {
- $_obfuscate_Fwl1 = 1;
- } else {
- $_obfuscate_Fwl1 = 0;
- }
- $_obfuscate_KdyaXfJIMvxZsEt1 = 0;
- if (is_user($user)) {
- cookiedecode($user);
- $_obfuscate_NS44QYkя = $cookie[1];
- $_obfuscate_bztmMNQя = 0;
- $_obfuscate_KdyaXfJIMvxZsEt1 = $db->sql_numrows($db->sql_query("SELECT uname FROM " . $prefix . ("_session WHERE uname='" . $_obfuscate_NS44QYkя . "'")));
- } else {
- $_obfuscate_NS44QYkя = "{$_obfuscate_Asя}";
- $_obfuscate_bztmMNQя = 1;
- }
- $_obfuscate_rFe_Fnr5 = explode(".", $_obfuscate_Asя);
- $_obfuscate_9yv_7SyMRLIя = "" . $_obfuscate_rFe_Fnr5[0] . "." . $_obfuscate_rFe_Fnr5[1] . "." . $_obfuscate_rFe_Fnr5[2] . "";
- $_obfuscate_Y45AaAяя = $db->sql_numrows($db->sql_query("select bid from " . $prefix . ("_banip where banip='" . $_obfuscate_Asя . "' OR banip='{$_obfuscate_9yv_7SyMRLIя}'")));
- dberror($db, __FILE__, 814);
- if ($_obfuscate_Y45AaAяя != 0) {
- $_obfuscate_M88D = "error.php?op=e500";
- header("Location: " . $_obfuscate_M88D);
- exit();
- }
- list($_obfuscate_z3CwBT3WT2aHewx0) = $db->sql_fetchrow($db->sql_query("select custom_title from " . $prefix . ("_modules where title='" . $module_name . "'")));
- dberror($db, __FILE__, 824);
- if (eregi("google", $_obfuscate_IVe6Ccwjp8я)) {
- $_obfuscate_NS44QYkя = $_obfuscate_IVe6Ccwjp8я;
- }
- $_obfuscate_GIOrQwяя = $ora - $sesionexpires;
- $db->sql_query("DELETE FROM " . $prefix . ("_session WHERE time < " . $_obfuscate_GIOrQwяя . " || uname = ''"));
- dberror($db, __FILE__, 832);
- if ($_obfuscate_NS44QYkя != "") {
- $_obfuscate_NS44QYkя = substr($_obfuscate_NS44QYkя, 0, 25);
- $_obfuscate_NeWLgAяя = $db->sql_numrows($db->sql_query("SELECT uname FROM " . $prefix . ("_session WHERE uname='" . $_obfuscate_NS44QYkя . "'")));
- dberror($db, __FILE__, 839);
- if ($_obfuscate_NeWLgAяя == 1) {
- $db->sql_query("UPDATE " . $prefix . ("_session SET uname='" . $_obfuscate_NS44QYkя . "', time='{$ora}', host_addr='{$_obfuscate_Asя}', donde='{$_obfuscate_z3CwBT3WT2aHewx0}', guest='{$_obfuscate_bztmMNQя}', dir='{$_obfuscate_Fwl1}' WHERE uname='{$_obfuscate_NS44QYkя}'"));
- dberror($db, __FILE__, 842);
- }
- if ($_obfuscate_NeWLgAяя == 0) {
- if ($_obfuscate_KdyaXfJIMvxZsEt1 && $forceexpire && !is_admin($_obfuscate_QEdCQBQя)) {
- $_obfuscate_Il8i = "modules.php?name=Users&op=sesionexpired";
- header("Location: " . $_obfuscate_Il8i);
- exit();
- }
- mt_srand(( double ) microtime() * 1000000);
- $_obfuscate_FpTXRkO4 = 1000000;
- $_obfuscate_wArmdsWAIWILVQяя = mt_rand(0, $_obfuscate_FpTXRkO4);
- $_obfuscate_3y0Y = "\n INSERT INTO " . $prefix . ("_session (uname, time, host_addr, donde, guest, dir, randnum)\n VALUES ('" . $_obfuscate_NS44QYkя . "', '{$ora}', '{$_obfuscate_Asя}', '{$_obfuscate_z3CwBT3WT2aHewx0}', '{$_obfuscate_bztmMNQя}', '{$_obfuscate_Fwl1}', '{$_obfuscate_wArmdsWAIWILVQяя}');\n ");
- $db->sql_query($_obfuscate_3y0Y);
- dberror($db, __FILE__, 864);
- }
- }
- }
- function ultramode()
- {
- global $prefix;
- global $db;
- $_obfuscate_SJnFjPUя = "ultramode.txt";
- $_obfuscate_6hS1Rwяя = fopen("{$_obfuscate_SJnFjPUя}", "w");
- fwrite($_obfuscate_6hS1Rwяя, "General purpose self-explanatory file with news headlines\n");
- fclose($_obfuscate_6hS1Rwяя);
- }
- function cookiedecode($_obfuscate_m2Kuwwяя)
- {
- global $cookie;
- global $db;
- global $user_prefix;
- static $pass;
- if (!is_array($_obfuscate_m2Kuwwяя)) {
- $_obfuscate_m2Kuwwяя = base64_decode($_obfuscate_m2Kuwwяя);
- $cookie = explode(":", $_obfuscate_m2Kuwwяя);
- } else {
- $cookie = $_obfuscate_m2Kuwwяя;
- }
- if (!isset($_obfuscate_any6bwяя)) {
- $_obfuscate_3y0Y = "SELECT user_password FROM " . $user_prefix . ("_users WHERE username='" . $cookie['1'] . "'");
- $_obfuscate_xs33Yt_k = $db->sql_query($_obfuscate_3y0Y);
- list($pass) = $db->sql_fetchrow($_obfuscate_xs33Yt_k);
- dberror($db, __FILE__, 915);
- }
- if ($cookie[2] == $pass && $pass != "") {
- return $cookie;
- }
- unset($_obfuscate_m2Kuwwяя);
- unset($_obfuscate_TqO_wFdm);
- }
- function fixquotes($_obfuscate_PUhJmAяя = "")
- {
- $_obfuscate_PUhJmAяя = ereg_replace("'", "''", $_obfuscate_PUhJmAяя);
- while (eregi("\\\\'", $_obfuscate_PUhJmAяя)) {
- $_obfuscate_PUhJmAяя = ereg_replace("\\\\'", "'", $_obfuscate_PUhJmAяя);
- }
- return $_obfuscate_PUhJmAяя;
- }
- function check_words($_obfuscate_AU8lIuVIgяя)
- {
- global $CensorMode;
- global $CensorReplace;
- global $EditedMessage;
- global $CensorList;
- $EditedMessage = $_obfuscate_AU8lIuVIgяя;
- if ($CensorMode != 0 && is_array($CensorList)) {
- $_obfuscate_XNsdlMLPVgяя = $CensorReplace;
- if ($CensorMode == 1) {
- $_obfuscate_7wяя = 0;
- do {
- for (; $_obfuscate_7wяя < count($CensorList); ++$_obfuscate_7wяя) {
- $EditedMessage = eregi_replace("{$CensorList[$_obfuscate_7wяя]}([^a-zA-Z0-9])", "{$_obfuscate_XNsdlMLPVgяя}\\1", $EditedMessage);
- break;
- }
- } while (1);
- } else if ($CensorMode == 2) {
- $_obfuscate_7wяя = 0;
- do {
- for (; $_obfuscate_7wяя < count($CensorList); ++$_obfuscate_7wяя) {
- $EditedMessage = eregi_replace("(^|[^[:alnum:]])" . $CensorList[$_obfuscate_7wяя], "\\1" . $_obfuscate_XNsdlMLPVgяя, $EditedMessage);
- break;
- }
- } while (1);
- } else if ($CensorMode == 3) {
- $_obfuscate_7wяя = 0;
- for (; $_obfuscate_7wяя < count($CensorList); ++$_obfuscate_7wяя) {
- $EditedMessage = eregi_replace("{$CensorList[$_obfuscate_7wяя]}", "{$_obfuscate_XNsdlMLPVgяя}", $EditedMessage);
- }
- }
- }
- return $EditedMessage;
- }
- function delquotes($_obfuscate_xyiNieq6)
- {
- $_obfuscate_juwe = "";
- $_obfuscate_xs33Yt_k = "";
- $_obfuscate_7wяя = 0;
- $_obfuscate_7ro6638 = -1;
- $_obfuscate_CxIjRh4я = 0;
- $_obfuscate_mc2H = strlen($_obfuscate_xyiNieq6);
- while ($_obfuscate_7wяя < $_obfuscate_mc2H) {
- switch ($_obfuscate_xyiNieq6[$_obfuscate_7wяя]) {
- case "\"":
- if ($_obfuscate_CxIjRh4я == 0) {
- $_obfuscate_CxIjRh4я = 1;
- } else {
- $_obfuscate_CxIjRh4я = 0;
- if (0 < $_obfuscate_7ro6638 && $_obfuscate_juwe != "") {
- $_obfuscate_xs33Yt_k .= "=\"" . $_obfuscate_juwe . "\"";
- }
- $_obfuscate_juwe = "";
- $_obfuscate_7ro6638 = -1;
- }
- break;
- case "=":
- if ($_obfuscate_CxIjRh4я == 0) {
- $_obfuscate_7ro6638 = 1;
- if ($_obfuscate_juwe != "") {
- $_obfuscate_xs33Yt_k .= " " . $_obfuscate_juwe;
- }
- $_obfuscate_juwe = "";
- } else {
- $_obfuscate_juwe .= "=";
- }
- break;
- case " ":
- if (!(0 < $_obfuscate_7ro6638)) {
- break;
- }
- $_obfuscate_juwe .= $_obfuscate_xyiNieq6[$_obfuscate_7wяя];
- break;
- default:
- if ($_obfuscate_7ro6638 < 0) {
- $_obfuscate_7ro6638 = 0;
- }
- $_obfuscate_juwe .= $_obfuscate_xyiNieq6[$_obfuscate_7wяя];
- }
- ++$_obfuscate_7wяя;
- }
- if ($_obfuscate_CxIjRh4я != 0 && $_obfuscate_juwe != "") {
- if ($_obfuscate_7ro6638 == 1) {
- $_obfuscate_xs33Yt_k .= "=";
- }
- $_obfuscate_xs33Yt_k .= "\"" . $_obfuscate_juwe . "\"";
- }
- return $_obfuscate_xs33Yt_k;
- }
- function check_html($_obfuscate_R2_b, $_obfuscate__dIVyL0я = "")
- {
- global $AllowableHTML;
- if ($_obfuscate__dIVyL0я == "nohtml") {
- $AllowableHTML = array(
- ""
- );
- }
- $_obfuscate_R2_b = stripslashes($_obfuscate_R2_b);
- $_obfuscate_R2_b = eregi_replace("<[[:space:]]*([^>]*)[[:space:]]*>", "<\\1>", $_obfuscate_R2_b);
- $_obfuscate_R2_b = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>", "<a href=\"\\1\">", $_obfuscate_R2_b);
- $_obfuscate_R2_b = eregi_replace("<[[:space:]]* img[[:space:]]*([^>]*)[[:space:]]*>", "", $_obfuscate_R2_b);
- $_obfuscate_R2_b = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?javascript[[:punct:]]*\"?[^>]*>", "", $_obfuscate_R2_b);
- $_obfuscate_juwe = "";
- while (ereg("<(/?[[:alpha:]]*)[[:space:]]*([^>]*)>", $_obfuscate_R2_b, &$_obfuscate_QaWJ)) {
- $_obfuscate_7wяя = strpos($_obfuscate_R2_b, $_obfuscate_QaWJ[0]);
- $A = strlen($_obfuscate_QaWJ[0]);
- if ($_obfuscate_QaWJ[1][0] == "/") {
- $_obfuscate_kLNZ = strtolower(substr($_obfuscate_QaWJ[1], 1));
- } else {
- $_obfuscate_kLNZ = strtolower($_obfuscate_QaWJ[1]);
- }
- if ($m = $AllowableHTML[$_obfuscate_kLNZ]) {
- if ($_obfuscate_QaWJ[1][0] == "/") {
- $_obfuscate_kLNZ = "</" . $_obfuscate_kLNZ . ">";
- } else if ($m == 1 || $_obfuscate_QaWJ[2] == "") {
- $_obfuscate_kLNZ = "<" . $_obfuscate_kLNZ . ">";
- } else {
- $_obfuscate_OYl4UMIFnNsyyAяя = delquotes($_obfuscate_QaWJ[2]);
- $_obfuscate_OYl4UMIFnNsyyAяя = ereg_replace("&", "&", $_obfuscate_OYl4UMIFnNsyyAяя);
- $_obfuscate_kLNZ = "<" . $_obfuscate_kLNZ . $_obfuscate_OYl4UMIFnNsyyAяя . ">";
- }
- } else {
- $_obfuscate_kLNZ = "";
- }
- $_obfuscate_juwe .= substr($_obfuscate_R2_b, 0, $_obfuscate_7wяя) . $_obfuscate_kLNZ;
- $_obfuscate_R2_b = substr($_obfuscate_R2_b, $_obfuscate_7wяя + $A);
- }
- $_obfuscate_R2_b = $_obfuscate_juwe . $_obfuscate_R2_b;
- return $_obfuscate_R2_b;
- }
- function filter_text($_obfuscate_AU8lIuVIgяя, $_obfuscate__dIVyL0я = "")
- {
- global $EditedMessage;
- check_words($_obfuscate_AU8lIuVIgяя);
- $EditedMessage = check_html($EditedMessage, $_obfuscate__dIVyL0я);
- return $EditedMessage;
- }
- function formattimestamp($_obfuscate_c6UELgяя)
- {
- global $datetime;
- global $locale;
- global $user;
- global $cookie;
- global $prefix;
- global $db;
- global $gmtloc;
- setlocale(LC_TIME, $locale);
- ereg("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $_obfuscate_c6UELgяя, &$datetime);
- $_obfuscate_eqys_Aяя = mktime($datetime[4], $datetime[5], $datetime[6], $datetime[2], $datetime[3], $datetime[1]);
- if (is_user($user)) {
- cookiedecode($user);
- $_obfuscate_NS44QYkя = $cookie[1];
- $_obfuscate_3y0Y = "SELECT user_timezone FROM " . $prefix . ("_users WHERE username='" . $_obfuscate_NS44QYkя . "'");
- $_obfuscate_xs33Yt_k = $db->sql_query($_obfuscate_3y0Y);
- $_obfuscate_gkt = $db->sql_fetchrow($_obfuscate_xs33Yt_k);
- dberror($db, __FILE__, 1094);
- $_obfuscate_242p3g5NU0J95L39BQяя = intval($_obfuscate_gkt['user_timezone']);
- $gmtloc = intval($gmtloc);
- $_obfuscate_W9Wf = ($_obfuscate_242p3g5NU0J95L39BQяя - $gmtloc) * 3600;
- $_obfuscate_eqys_Aяя += $_obfuscate_W9Wf;
- }
- $datetime = formato_fecha($_obfuscate_eqys_Aяя, 1);
- return $datetime;
- }
- function formato_fecha($_obfuscate_e4nD5c_ghxYя, $_obfuscate_G6HiEvjd6qjnQяя)
- {
- global $locale;
- $_obfuscate_e4nD5c_ghxYя = intval($_obfuscate_e4nD5c_ghxYя);
- $_obfuscate_G6HiEvjd6qjnQяя = intval($_obfuscate_G6HiEvjd6qjnQяя);
- setlocale(LC_TIME, $locale);
- if ($_obfuscate_G6HiEvjd6qjnQяя == 1) {
- $_obfuscate_eUHEdWkowof7 = strftime(_DATESTRING, $_obfuscate_e4nD5c_ghxYя);
- }
- if ($_obfuscate_G6HiEvjd6qjnQяя == 2) {
- $_obfuscate_eUHEdWkowof7 = strftime(_DATESTRING2, $_obfuscate_e4nD5c_ghxYя);
- }
- if ($_obfuscate_G6HiEvjd6qjnQяя == 3) {
- $_obfuscate_eUHEdWkowof7 = strftime(_DATESTRING3, $_obfuscate_e4nD5c_ghxYя);
- }
- return $_obfuscate_eUHEdWkowof7;
- }
- function themepreview($_obfuscate_obqvewяя, $_obfuscate_HyVqZn0US94я, $_obfuscate_TK8F78NSNWEя = "", $_obfuscate_LTfBZe8я = "")
- {
- echo "<b>" . $_obfuscate_obqvewяя . "</b><br><br>{$_obfuscate_HyVqZn0US94я}";
- if ($_obfuscate_TK8F78NSNWEя != "") {
- echo "<br><br>" . $_obfuscate_TK8F78NSNWEя;
- }
- if ($_obfuscate_LTfBZe8я != "") {
- echo "<br><br><b>" . _NOTE . ("</b> <i>" . $_obfuscate_LTfBZe8я . "</i>");
- }
- }
- function adminblock()
- {
- global $admin;
- global $prefix;
- global $db;
- if (is_admin($admin)) {
- $_obfuscate_xs33Yt_k = $db->sql_query("SELECT title, content, bposition FROM " . $prefix . "_blocks WHERE bkey='admin'");
- dberror($db, __FILE__, 1184);
- while ($_obfuscate_gkt = $db->sql_fetchrow($_obfuscate_xs33Yt_k)) {
- $_obfuscate__WwKzYz1wAяя = "<font class=\"content\">" . $_obfuscate_gkt['content'] . "</font>";
- themesidebox($_obfuscate_gkt[title], $_obfuscate_gkt[content], $_obfuscate_gkt[bposition]);
- }
- }
- }
- function dberror(&$_obfuscate_sx8я, $_obfuscate_6hS1Rwяя, $_obfuscate_CFGoDAяя)
- {
- $_obfuscate_xs33Yt_k = 1;
- $_obfuscate_rixiYSgя = $_obfuscate_sx8я->sql_error();
- if ($_obfuscate_rixiYSgя['code'] != "0") {
- echo "<br><br><font color=\"red\"><b>" . $_obfuscate_rixiYSgя['code'] . ": " . $_obfuscate_rixiYSgя['message'] . ("<br>File: " . $_obfuscate_6hS1Rwяя . " at Line: {$_obfuscate_CFGoDAяя}</b></font><br><br>");
- $_obfuscate_xs33Yt_k = 0;
- }
- return $_obfuscate_xs33Yt_k;
- }
- function usuario_configuracion()
- {
- global $db;
- global $user_prefix;
- global $conf_usuario;
- static $confusuario;
- if (isset($_obfuscate_kc4VDe2LT_sibMEя)) {
- return $_obfuscate_wuhBlgH7ewfAZOD4 = $confusuario;
- }
- $_obfuscate_1cPpwOUjnAяя = $db->sql_query("select * from " . $user_prefix . "_users_conf");
- $conf_usuario = $db->sql_fetchrow($_obfuscate_1cPpwOUjnAяя);
- dberror(&$db, __FILE__, 1213);
- $confusuario = $conf_usuario;
- return $conf_usuario;
- }
- function loginbox()
- {
- global $user;
- if (!is_user($user)) {
- $_obfuscate_obqvewяя = _LOGIN;
- $_obfuscate_21cя = "<form action=\"modules.php?name=Users\" method=\"post\">";
- $_obfuscate_21cя .= "<center><font class=\"content\">" . _NICKNAME . "<br>";
- $_obfuscate_21cя .= "<input type=\"text\" name=\"username\" size=\"8\" maxlength=\"25\"><br>";
- $_obfuscate_21cя .= "" . _PASSWORD . "<br>";
- $_obfuscate_21cя .= "<input type=\"password\" name=\"user_password\" size=\"8\" maxlength=\"20\"><br>";
- $_obfuscate_21cя .= "<input type=\"hidden\" name=\"op\" value=\"login\">";
- $_obfuscate_21cя .= "<input type=\"submit\" value=\"" . _LOGIN . "\"></font></center></form>";
- $_obfuscate_21cя .= "<center><font class=\"content\">" . _ASREGISTERED . "</font></center>";
- themesidebox($_obfuscate_obqvewяя, $_obfuscate_21cя);
- }
- }
- function userblock()
- {
- global $user;
- global $cookie;
- global $db;
- global $user_prefix;
- global $prefix;
- if (is_user($user) && $cookie[8]) {
- $_obfuscate_3y0Y = "SELECT ublock FROM " . $user_prefix . ("_users WHERE user_id='" . $cookie['0'] . "'");
- $_obfuscate_xs33Yt_k = $db->sql_query($_obfuscate_3y0Y);
- $_obfuscate_gkt = $db->sql_fetchrow($_obfuscate_xs33Yt_k);
- dberror(&$db, __FILE__, 1241);
- $_obfuscate_obqvewяя = "" . _MENUFOR . (" " . $cookie['1']);
- $_obfuscate_OgoyUAsGQяя = $db->sql_query("select bposition from " . $prefix . "_blocks where bkey='userbox'");
- $_obfuscate_uWfW3Qяя = $db->sql_fetchrow($_obfuscate_OgoyUAsGQяя);
- themesidebox($_obfuscate_obqvewяя, $_obfuscate_gkt[ublock], $_obfuscate_uWfW3Qяя[bposition]);
- }
- }
- function get_theme()
- {
- global $user;
- global $cookie;
- global $Default_Theme;
- static $ThemeSelSave;
- if (isset($_obfuscate_f_95oeplfxY1P2Wb)) {
- return $ThemeSelSave;
- }
- if (is_user($user)) {
- $_obfuscate_CyuzSVIя = base64_decode($user);
- $_obfuscate_nTpCPfwuNfYя = explode(":", $_obfuscate_CyuzSVIя);
- if ($_obfuscate_nTpCPfwuNfYя[9] == "") {
- $_obfuscate_nTpCPfwuNfYя[9] = $Default_Theme;
- }
- if (isset($_obfuscate_gOwyYBkя)) {
- $_obfuscate_nTpCPfwuNfYя[9] = $_obfuscate_gOwyYBkя;
- }
- if (!($_obfuscate_ZBz24GMя = @opendir("themes/" . $_obfuscate_nTpCPfwuNfYя['9']))) {
- $_obfuscate_GpKQS4yWqFYя = $Default_Theme;
- } else {
- $_obfuscate_GpKQS4yWqFYя = $_obfuscate_nTpCPfwuNfYя[9];
- }
- } else {
- $_obfuscate_GpKQS4yWqFYя = $Default_Theme;
- }
- $ThemeSelSave = $_obfuscate_GpKQS4yWqFYя;
- return $_obfuscate_GpKQS4yWqFYя;
- }
- function removecrlf($_obfuscate_R2_b)
- {
- return strtr($_obfuscate_R2_b, "\r\n", " ");
- }
- function bots()
- {
- global $user;
- global $cookie;
- global $prefix;
- global $db;
- global $module_name;
- global $ora;
- global $REMOTE_ADDR;
- global $HTTP_CLIENT_IP;
- cookiedecode($user);
- $_obfuscate_Il8i = $_SERVER['REQUEST_URI'];
- $_obfuscate_x0IT = $HTTP_CLIENT_IP;
- $_obfuscate_O2Rw = $_SERVER['REMOTE_ADDR'];
- if ($_obfuscate_x0IT == "") {
- $_obfuscate_x0IT = $_obfuscate_O2Rw;
- }
- $_obfuscate_Asя = $_obfuscate_x0IT;
- $_obfuscate_D9yo3Aяя = gethostbyaddr($_obfuscate_Asя);
- $_obfuscate_xs33Yt_k = $db->sql_query("SELECT nombre from " . $prefix . "_bots where ver='1'");
- $m = 1;
- $_obfuscate_gLufN6Qя = "";
- while (list($_obfuscate_FAg14cOk) = $db->sql_fetchrow($_obfuscate_xs33Yt_k)) {
- if ($m == 1) {
- $_obfuscate_gLufN6Qя .= "(" . $_obfuscate_D9yo3Aяя . "=={$_obfuscate_FAg14cOk})";
- } else {
- $_obfuscate_gLufN6Qя .= " OR (" . $_obfuscate_D9yo3Aяя . "=={$_obfuscate_FAg14cOk})";
- }
- ++$m;
- }
- if ($_obfuscate_gLufN6Qя) {
- $_obfuscate_cFkcaRNw = 1;
- } else {
- $_obfuscate_cFkcaRNw = 0;
- }
- if ($_obfuscate_gLufN6Qя == "") {
- $_obfuscate_cFkcaRNw = 0;
- }
- return $_obfuscate_cFkcaRNw;
- }
- function selectlanguage()
- {
- global $useflags;
- global $currentlang;
- if ($useflags == 1) {
- $_obfuscate_obqvewяя = _SELECTLANGUAGE;
- $_obfuscate__WwKzYz1wAяя = "<center><font class=\"content\">" . _SELECTGUILANG . "<br><br>";
- $_obfuscate_FGv6VaU7lgяя = dir("language");
- while ($_obfuscate_G4H9PAяя = $_obfuscate_FGv6VaU7lgяя->read()) {
- if (substr($_obfuscate_G4H9PAяя, 0, 5) == "lang-") {
- $_obfuscate_3m80mfqUgncя .= "{$_obfuscate_G4H9PAяя} ";
- }
- }
- closedir($_obfuscate_FGv6VaU7lgяя->handle);
- $_obfuscate_3m80mfqUgncя = explode(" ", $_obfuscate_3m80mfqUgncя);
- sort(&$_obfuscate_3m80mfqUgncя);
- $_obfuscate_7wяя = 0;
- for (; $_obfuscate_7wяя < sizeof($_obfuscate_3m80mfqUgncя); ++$_obfuscate_7wяя) {
- if ($_obfuscate_3m80mfqUgncя[$_obfuscate_7wяя] != "") {
- $EV = ereg_replace("lang-", "", $_obfuscate_3m80mfqUgncя[$_obfuscate_7wяя]);
- $EV = ereg_replace(".php", "", $EV);
- $_obfuscate_8UA1iIyhqQяя = ucfirst($EV);
- $_obfuscate__WwKzYz1wAяя .= "<a href=\"index.php?newlang=" . $EV . "\"><img src=\"images/language/flag-" . $EV . (".png\" border=\"0\" alt=\"" . $_obfuscate_8UA1iIyhqQяя . "\" title=\"{$_obfuscate_8UA1iIyhqQяя}\" hspace=\"3\" vspace=\"3\"></a> ");
- }
- }
- $_obfuscate__WwKzYz1wAяя .= "</font></center>";
- themesidebox($_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя);
- } else {
- $_obfuscate_obqvewяя = _SELECTLANGUAGE;
- $_obfuscate__WwKzYz1wAяя = "<center><font class=\"content\">" . _SELECTGUILANG . "<br><br></font>";
- $_obfuscate__WwKzYz1wAяя .= "<form action=\"index.php\" method=\"get\"><select name=\"newlanguage\" onChange=\"top.location.href=this.options[this.selectedIndex].value\">";
- $_obfuscate_iUdm8Jn7 = opendir("language");
- while ($_obfuscate_6hS1Rwяя = readdir($_obfuscate_iUdm8Jn7)) {
- if (preg_match("/^lang\\-(.+)\\.php/", $_obfuscate_6hS1Rwяя, $_obfuscate_8UmnTppRcAяя)) {
- $_obfuscate_mQ3ue8N8Ehqi = $_obfuscate_8UmnTppRcAяя[1];
- $_obfuscate_MHtr76fLJRgDYU06Aяя .= "{$_obfuscate_mQ3ue8N8Ehqi} ";
- }
- }
- closedir($_obfuscate_iUdm8Jn7);
- $_obfuscate_MHtr76fLJRgDYU06Aяя = explode(" ", $_obfuscate_MHtr76fLJRgDYU06Aяя);
- sort(&$_obfuscate_MHtr76fLJRgDYU06Aяя);
- $_obfuscate_7wяя = 0;
- for (; $_obfuscate_7wяя < sizeof($_obfuscate_MHtr76fLJRgDYU06Aяя); ++$_obfuscate_7wяя) {
- if ($_obfuscate_MHtr76fLJRgDYU06Aяя[$_obfuscate_7wяя] != "") {
- $_obfuscate__WwKzYz1wAяя .= "<option value=\"index.php?newlang=" . $_obfuscate_MHtr76fLJRgDYU06Aяя[$_obfuscate_7wяя] . "\" ";
- if ($_obfuscate_MHtr76fLJRgDYU06Aяя[$_obfuscate_7wяя] == $currentlang) {
- $_obfuscate__WwKzYz1wAяя .= " selected";
- }
- $_obfuscate__WwKzYz1wAяя .= ">" . ucfirst($_obfuscate_MHtr76fLJRgDYU06Aяя[$_obfuscate_7wяя]) . "</option>\n";
- }
- }
- $_obfuscate__WwKzYz1wAяя .= "</select></form></center>";
- themesidebox($_obfuscate_obqvewяя, $_obfuscate__WwKzYz1wAяя);
- }
- }
- function getusrinfo($_obfuscate_m2Kuwwяя)
- {
- global $user_prefix;
- global $db;
- global $userinfo;
- static $userrow;
- if (!$_obfuscate_m2Kuwwяя && $_obfuscate_m2Kuwwяя == "") {
- return NULL;
- }
- if (!is_array($_obfuscate_m2Kuwwяя)) {
- $_obfuscate_m2Kuwwяя = base64_decode($_obfuscate_m2Kuwwяя);
- $_obfuscate_m2Kuwwяя = explode(":", $_obfuscate_m2Kuwwяя);
- }
- if (is_array($userrow) && $userrow['username'] == $_obfuscate_m2Kuwwяя[1] && ($userrow['user_password'] = $_obfuscate_m2Kuwwяя[2])) {
- return $userrow;
- }
- $_obfuscate_3y0Y = "SELECT * FROM " . $user_prefix . ("_users WHERE username='" . $_obfuscate_m2Kuwwяя['1'] . "' AND user_password='{$_obfuscate_m2Kuwwяя['2']}'");
- $_obfuscate_xs33Yt_k = $db->sql_query($_obfuscate_3y0Y);
- dberror(&$db, __FILE__, 1548);
- if ($db->sql_numrows($_obfuscate_xs33Yt_k) == 1) {
- $userrow = $db->sql_fetchrow($_obfuscate_xs33Yt_k);
- return $userinfo = $userrow;
- }
- unset($_obfuscate_pbPZCXBehSAя);
- }
- define("SMS", 1);
- $direccion = $_SERVER['REQUEST_URI'];
- if (eregi("(<)|(>)|(%3C)|(%3E)|(admin=)|(user=)|(http://)|(ftp://)|(pwd)|(nuke_authors)|(radminsuper)|(union)|(/\\*.*\\*/)|(%25)|(dW5pb24)|(VU5JT04)", $direccion)) {
- $direccion2 = base64_encode($direccion);
- $err = "security.php?codigo=" . $direccion2;
- header("Location: " . $err);
- exit();
- }
- if (eregi("mainfile.php", $direccion)) {
- $err = "error.php?op=e403";
- header("Location: " . $err);
- exit();
- }
- $phpver = phpversion();
- if ("4.0.4pl1" <= $phpver && strstr($HTTP_USER_AGENT, "compatible")) {
- if (extension_loaded("zlib")) {
- ob_end_clean();
- ob_start("ob_gzhandler");
- }
- } else if ("4.0" < $phpver && strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], "gzip") && extension_loaded("zlib")) {
- $do_gzip_compress = TRUE;
- ob_start();
- ob_implicit_flush(0);
- }
- $phpver = explode(".", $phpver);
- $phpver = "{$phpver['0']}{$phpver['1']}";
- if (41 <= $phpver) {
- $PHP_SELF = $_SERVER['PHP_SELF'];
- }
- if (!ini_get("register_globals")) {
- import_request_variables("GPC");
- }
- if (isset($admin)) {
- $admin = base64_decode($admin);
- $admin = addslashes($admin);
- $admin = base64_encode($admin);
- admin_protector($admin);
- }
- if (isset($user)) {
- $user = base64_decode($user);
- $user = addslashes($user);
- $user = base64_encode($user);
- admin_protector($user);
- }
- if (phpversion() < "4.1.0") {
- $GLOBALS['_GET'] = $_HTTP_GET_VARS;
- $GLOBALS['_POST'] = $_HTTP_POST_VARS;
- $GLOBALS['_SERVER'] = $HTTP_SERVER_VARS;
- }
- require_once("config.php");
- require_once("db/db.php");
- if (isset($llavep)) {
- $llavep = md5($llavep);
- }
- if (!isset($llavep) && $llavep != $llave) {
- foreach ($GLOBALS['_GET'] as $secvalue) {
- if (!eregi("<[^>]*script*\"?[^>]*>", $secvalue) || !eregi("<[^>]*object*\"?[^>]*>", $secvalue) || !eregi("<[^>]*iframe*\"?[^>]*>", $secvalue) || !eregi("<[^>]*applet*\"?[^>]*>", $secvalue) || !eregi("<[^>]*meta*\"?[^>]*>", $secvalue) || !eregi("<[^>]*form*\"?[^>]*>", $secvalue) || !eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue) || !eregi("<[^>]*textarea*\"?[^>]*>", $secvalue) || !eregi("<[^>]*body*\"?[^>]*>", $secvalue)) {
- continue;
- }
- $err = "error.php?op=tags";
- header("Location: " . $err);
- exit();
- }
- foreach ($GLOBALS['_POST'] as $secvalue) {
- if (!eregi("<[^>]*script*\"?[^>]*>", $secvalue) || !eregi("<[^>]*object*\"?[^>]*>", $secvalue) || !eregi("<[^>]*iframe*\"?[^>]*>", $secvalue) || !eregi("<[^>]*applet*\"?[^>]*>", $secvalue) || !eregi("<[^>]*form*\"?[^>]*>", $secvalue) || !eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue) || !eregi("<[^>]*textarea*\"?[^>]*>", $secvalue) || !eregi("<[^>]*body*\"?[^>]*>", $secvalue)) {
- continue;
- }
- $err = "error.php?op=tags";
- header("Location: " . $err);
- exit();
- }
- }
- $mainfile = 1;
- $result = $db->sql_query("SELECT * FROM " . $prefix . "_config");
- $row = $db->sql_fetchrow($result);
- dberror($db, __FILE__, 139);
- $sesionexpires = 600;
- $forceexpire = 1;
- $straightminbet = 1;
- $straightmaxbet = 500;
- $parlayminbet = 1;
- $parlaymaxbet = 500;
- $parlaymaxpicks = 10;
- $parlayminpicks = 2;
- define("_CIDSB", "cG9yIGZhdm9yIHNlbGVjY2lvbmUgYWwgbWVub3MgZG9zIHBpY2tz");
- define("_CIDPA", "aHR0cDovL2FkYWxpZC1zb2Z0LmNvbS9zcG9ydHNib29rLnBocA==");
- $sbaccount = $row['sbaccount'];
- $sitename = $row['sitename'];
- $nukeurl = $row['nukeurl'];
- $site_logo = $row['site_logo'];
- $slogan = $row['slogan'];
- $startdate = $row['startdate'];
- $adminmail = stripslashes($row['adminmail']);
- $anonpost = $row['anonpost'];
- $Default_Theme = $row['Default_Theme'];
- $foot1 = $row['foot1'];
- $foot2 = $row['foot2'];
- $foot3 = $row['foot3'];
- $commentlimit = intval($row['commentlimit']);
- $anonymous = $row['anonymous'];
- $minpass = intval($row['minpass']);
- $pollcomm = intval($row['pollcomm']);
- $articlecomm = intval($row['articlecomm']);
- $broadcast_msg = intval($row['broadcast_msg']);
- $my_headlines = intval($row['my_headlines']);
- $top = intval($row['top']);
- $storyhome = intval($row['storyhome']);
- $user_news = intval($row['user_news']);
- $oldnum = intval($row['oldnum']);
- $ultramode = intval($row['ultramode']);
- $banners = intval($row['banners']);
- $backend_title = $row['backend_title'];
- $backend_language = $row['backend_language'];
- $language = $row['language'];
- $locale = $row['locale'];
- $multilingual = intval($row['multilingual']);
- $useflags = intval($row['useflags']);
- $notify = intval($row['notify']);
- $notify_email = $row['notify_email'];
- $notify_subject = $row['notify_subject'];
- $notify_message = $row['notify_message'];
- $notify_from = $row['notify_from'];
- $moderate = intval($row['moderate']);
- $admingraphic = intval($row['admingraphic']);
- $httpref = intval($row['httpref']);
- $httprefmax = intval($row['httprefmax']);
- $CensorMode = intval($row['CensorMode']);
- $CensorReplace = $row['CensorReplace'];
- $copyright = $row['copyright'];
- $Version_Num = $row['Version_Num'];
- $gfx_chk = intval($row['gfx_chk']);
- $cod_desc = intval($row['cod_desc']);
- $plantilla = $row['plantilla'];
- $gmtloc = intval($row['gmtloc']);
- $usuarios = intval($row['usuarios']);
- $act_nuke = intval($row['act_nuke']);
- $paginacion = intval($row['paginacion']);
- $columnas = intval($row['columnas']);
- $xmlscroll = intval($row['xmlscroll']);
- $tipo_dominio = intval($row['tipo_dominio']);
- $dominio = $row['dominio'];
- $buscadores = intval($row['buscadores']);
- $forma_mail = intval($row['forma_mail']);
- $framejs = intval($row['framejs']);
- $guardar_estats = intval($row['guardar_estats']);
- $precarga = intval($row['precarga']);
- $del_user = intval($row['del_user']);
- $user_chtheme = intval($row['user_chtheme']);
- $keywords = $row['keywords'];
- $domain = eregi_replace("http://", "", $nukeurl);
- $tipath = "images/topics/";
- $mtime = microtime();
- $mtime = explode(" ", $mtime);
- $mtime = $mtime[1] + $mtime[0];
- $start_time = $mtime;
- $ThemeSel = get_theme();
- $chkdate = intval($row['chkdate']);
- $chkdatesign = intval($row['chkdatesign']);
- require_once("includes/hora.php");
- global $ora;
- if (isset($newlang) && !eregi("\\.", "{$newlang}")) {
- if (file_exists("language/lang-" . $newlang . ".php")) {
- if ($tipo_dominio == 1) {
- setcookie("lang", $newlang, $ora + 31536000, "/", $dominio);
- } else {
- setcookie("lang", $newlang, $ora + 31536000);
- }
- include("language/lang-" . $newlang . ".php");
- $currentlang = $newlang;
- } else {
- if ($tipo_dominio == 1) {
- setcookie("lang", $newlang, $ora + 31536000, "/", $dominio);
- } else {
- setcookie("lang", $language, $ora + 31536000);
- }
- include("language/lang-" . $language . ".php");
- $currentlang = $language;
- }
- } else {
- if (isset($lang)) {
- include("language/lang-" . $lang . ".php");
- $currentlang = $lang;
- } else {
- if ($tipo_dominio == 1) {
- setcookie("lang", $newlang, $ora + 31536000, "/", $dominio);
- } else {
- setcookie("lang", $language, $ora + 31536000);
- }
- include("language/lang-" . $language . ".php");
- $currentlang = $language;
- }
- }
- ?>
Add Comment
Please, Sign In to add comment