sql_ufetchrow("SELECT `clickurl` FROM `".$prefix."_banner` WHERE `bid`='$bid'", SQL_NUM);
if(!is_admin()) {
$db->sql_query("UPDATE `".$prefix."_banner` SET `clicks`=clicks+1 WHERE `bid`='$bid'");
}
redirect($clickurl);
} elseif($_GET['op'] == 'gfx') {
include_once(NUKE_INCLUDE_DIR.'gfxchk.php');
} else {
exit('Illegal Operation');
}
}
/*****[END]********************************************
[ Mod: Banner Ads v1.0.0 ]
[ Mod: Advanced Security Code Control v1.0.0 ]
******************************************************/
if (isset($_GET['url']) && is_admin()) {
redirect($_GET['url']);
}
$module_name = main_module();
/*****[BEGIN]******************************************
[ Mod: Lock Modules v1.0.0 ]
******************************************************/
global $lock_modules;
if(($lock_modules && $module_name != 'Your_Account') && !is_admin() && !is_user()) {
include(NUKE_MODULES_DIR.'Your_Account/index.php');
}
/*****[END]********************************************
[ Mod: Lock Modules v1.0.0 ]
******************************************************/
$mop = (!isset($mop)) ? 'modload' : trim($mop);
$mod_file = (!isset($mod_file)) ? 'index' : trim($mod_file);
$file = (isset($_REQUEST['file'])) ? trim($_REQUEST['file']) : 'index';
if (!isset($modpath)) { $modpath = ''; }
if (stristr($file,"..") || stristr($mod_file,"..") || stristr($mop,"..")) {
/*****[BEGIN]******************************************
[ Base: Evolution Functions v1.5.0 ]
******************************************************/
log_write('error', 'Inappropriate module path was used', 'Hack Attempt');
/*****[END]********************************************
[ Base: Evolution Functions v1.5.0 ]
******************************************************/
die("You are so cool...");
} else {
$module = $db->sql_ufetchrow('SELECT `blocks` FROM `'.$prefix.'_modules` WHERE `title`="'.$module_name.'"');
$modpath = NUKE_MODULES_DIR.$module_name."/$file.php";
if (file_exists($modpath)) {
$showblocks = $module['blocks'];
unset($module, $error);
require($modpath);
} else {
DisplayError((is_admin()) ? ""._HOMEPROBLEM."
[ "._ADDAHOME." ]" : _HOMEPROBLEMUSER);
}
}
?>