1234567891011121314 |
- <?php
- include "source/system/db.class.php";
- $allActions = db("action")->field("c")->where("status", "1")->select()->toArray();
- $allActions = array_column($allActions, "c");
- $frames = array("login", "index", "body", "action", "user_recharge", "worker", "app_pack", "user_aclog", "user_cash", "ios_device", "super_sign", "article", "item", "config", "config_setting", "config_pay", "config_wenti", "config_jiage", "config_credit", "config_upload", "config_qita", "config_extend", "config_sms", "config_sign", "app", "report", "advice", "key", "make", "cert", "sign", "secret", "super_cert", "user", "backup", "sql", "clean", "update", "admin", "paylog", "buylog", "signlog", "talk", "ajax", "module", "mailsend", "ldurl");
- $frames = array_merge($allActions, $frames);
- $iframe = SafeRequest("c", "get");
- $action = SafeRequest("a", "get") ?: "index";
- if (!$iframe || !in_array($iframe, $frames)) {
- $iframe = "login";
- }
- loadClass("admin", $iframe, $action);
|