function __construct() { //驗證權限 auth_valid_function("user_manager"); //呼叫基本套件 include_db_pkg(); }
function __construct() { require_once $_SERVER['SRVROOT'] . "/cms/inc/incpkg.inc.php"; require_once SRVROOT . "/cms/inc/admin_breadcrumb.inc.php"; require_once SRVROOT . "/cms/lib/ezsql/shared/ez_sql_core.php"; //驗證權限 auth_valid_function("pricing"); //呼叫基本套件 include_db_pkg(); }
function __construct() { require_once SRVROOT . "/cms/inc/incpkg.inc.php"; require_once SRVROOT . "/cms/inc/admin_breadcrumb.inc.php"; require_once SRVROOT . "/cms/lib/ezsql/shared/ez_sql_core.php"; //驗證權限 auth_valid_function("yahoo_k_plus"); //呼叫基本套件 include_db_pkg(); }
function __construct() { //session_start(); //$trail = new Breadcrumb(); //$trail->add('Home', $_SERVER['PHP_SELF'], 0); //驗證權限 auth_valid_function("user_manager"); //呼叫基本套件 include_db_pkg(); }
function __construct() { require_once $_SERVER['SRVROOT'] . "/cms/inc/incpkg.inc.php"; require_once SRVROOT . "/cms/inc/admin_breadcrumb.inc.php"; require_once SRVROOT . "/cms/lib/ezsql/shared/ez_sql_core.php"; $this->plu_path = $this->plu_path . "&time=" . time(); //驗證權限 auth_valid_function("news"); //呼叫基本套件 include_db_pkg(); }
function is_multi_func($mod_id, $site_id = 0) { $db = init_db(); $sql = " SELECT count(*) FROM sys_functions WHERE mod_id = '{$mod_id}' AND func_call IS null "; $is_func_call = $db->get_var($sql); if ($is_func_call == 1) { return auth_valid_module($mod_id, $site_id); } if (!isset($_GET['func_call'])) { return false; } $func_call = $_GET['func_call']; $sql = " SELECT func_id FROM sys_functions WHERE func_call = '{$func_call}' AND mod_id = '{$mod_id}' "; $func_id = $db->get_var($sql); return auth_valid_function($func_id, $site_id); }
$inc = $_SERVER['SRVROOT'] . "/cms/admin/plugin/index.php"; $current_plugin = $current; } else { $inc = $_SERVER['SRVROOT'] . "/cms/admin/default/index.php"; $current_default = $current; } break; case "login": $inc = $_SERVER['SRVROOT'] . "/cms/admin/default/login.php"; break; case "plugin": $inc = $_SERVER['SRVROOT'] . "/cms/admin/plugin/index.php"; $current_plugin = $current; break; case "content": if (!auth_valid_function("cms_content")) { $inc = $_SERVER['SRVROOT'] . "/cms/admin/plugin/index.php"; $current_plugin = $current; } else { $inc = $_SERVER['SRVROOT'] . "/cms/admin/content/index.php"; $current_content = $current; } break; default: $inc = $_SERVER['SRVROOT'] . "/cms/admin/plugin/index.php"; $current_plugin = $current; break; } $func = isset($_GET['func']) ? $_GET['func'] : ""; switch ($func) { case "logout":