run(ATE_TEMPLATES_PATH.'index.tpl'); include_once(CONFIG_PATH.'footer.inc.php'); ?>OST['file'] : $_GET['file']); if (preg_match("/[^a-zA-Z0-9_]/", $file)) { Header("Location: index.php"); exit; } } else { $file = "index"; } if (isset($_GET['name']) || isset($_POST['name'])) { $name = trim(isset($_POST['name']) ? $_POST['name'] : $_GET['name']); if (preg_match("/[^a-zA-Z0-9_]/", $name)) { Header("Location: index.php"); exit; } $module = 1; $forumuser = addslashes(base64_decode($user)); list($mod_active, $view, $blocks, $blocks_c) = $db->sql_fetchrow($db->sql_query("SELECT active, view, blocks, blocks_c FROM ".$prefix."_modules WHERE title='".addslashes($name)."'")); $mod_active = intval($mod_active); $view = intval($view); $blocks = intval($blocks); $blocks_c = intval($blocks_c); if (($mod_active == 1) || ($mod_active == 0 && is_admin($admin))) { $ThemeSel = get_theme(); if ($view == 0) { $modpath = "modules/$name/".$file.".php"; if (file_exists($modpath)) { include($modpath); } else { Header("Location: index.php"); exit; } } else if ($view == 1 && (is_user($user) && is_group($user, $name)) || is_admin($admin)) { $modpath = "modules/$name/".$file.".php"; if (file_exists($modpath)) { include($modpath); } else { Header("Location: index.php"); exit; } } elseif ($view == 1 && !is_user($user) && !is_admin($admin)) { $pagetitle = "$defis "._ACCESSDENIED.""; include("header.php"); title(""._ACCESSDENIED.""); OpenTable(); echo "