sql_query("SELECT * FROM ".$prefix."_modules WHERE title='".addslashes($f)."' AND alanguage='$currentlang'"); $rowloadmod = $db->sql_fetchrow($resultloadmod); if(!$rowloadmod) { info_exit(_PROBLEMMOD); } $page_title = $rowloadmod['custom_title']; if ($home == 1) { $page_title = ""; } $module_active = intval($rowloadmod['active']); $module_view = intval($rowloadmod['view']); $module_title = $rowloadmod['title']; $index = intval($rowloadmod['mindex']); //if (($module_active != 1) AND !defined('iS_ADMIN')) { info_exit(_MODULENOTACTIVE); } $module_path = "modules/$f/$do.php"; if(file_exists($module_path)) { getlangmod($f); if (defined('_MODTITLE') && $home == 0) { $page_title = ""; } $module_name = $f; if(file_exists(DATAFOLD."/config_".$module_name.".php")) { require_once(DATAFOLD."/config_".$module_name.".php"); } if(file_exists("templates/".$Default_Temp."/module_".$module_name.".php")) { include("templates/".$Default_Temp."/module_".$module_name.".php"); } if(file_exists("modules/".$module_name."/Functions.php")) { include("modules/".$module_name."/Functions.php"); } if ($module_view == 0) { include($module_path); } elseif ($module_view == 1 && defined('iS_ADMIN')) { include($module_path); } elseif ($module_view == 2 && (defined('iS_ADMIN') || defined('iS_CUS'))) { include($module_path); } else { info_exit(_MODULENOTACTIVE); } } else { info_exit(_FILENOTFOUND); } ?>