new $.zui.Messager("请登录后再修改! ", { type: "danger", // 定义颜色主题 icon: "exclamation-sign" // 定义消息图标 }).show();'; header("refresh:21;url=" . $config['domain'] . "/admin/index.php"); require_once APP_ROOT . '/application/footer.php'; exit; } // 修改config配置 if (isset($_POST['update'])) { $postArr = $_POST; $new_config = array_replace($config, $postArr); $config_file = APP_ROOT . '/config/config.php'; cache_write($config_file, $new_config); echo ' '; header("refresh:1;"); } // 添加token if (isset($_POST['add_token_id'])) { // $_POST['add_token'] 生成的Token // $_POST['add_token_id'] Token的ID // $_POST['add_token_expired'] 过期时间 $postArr = array( $_POST['add_token'] => array( 'id' => $_POST['add_token_id'], 'expired' => $_POST['add_token_expired'] * 86400 + time(), 'add_time' => time() ) ); $new_config = array_replace($tokenList, $postArr); $config_file = APP_ROOT . '/config/api_key.php'; cache_write($config_file, $new_config, 'tokenList'); echo ' '; header("refresh:1;"); } // 禁用Token if (isset($_GET['stop_token'])) { // unset($tokenList[$_GET['delete_token']]); $stop_token = $_GET['stop_token']; $postArr = array( $stop_token => array( 'id' => 0, 'expired' => time(), 'add_time' => $tokenList[$stop_token]['add_time'] ) ); $new_config = array_replace($tokenList, $postArr); $config_file = APP_ROOT . '/config/api_key.php'; cache_write($config_file, $new_config, 'tokenList'); echo ' '; header("refresh:2;url=" . $config['domain'] . "/admin/admin.inc.php"); } // 删除guset.config.php数组对 if (isset($_GET['delete_guest'])) { unset($guestConfig[$_GET['delete_guest']]); $config_file = APP_ROOT . '/config/config.guest.php'; cache_write($config_file, $guestConfig, 'guestConfig'); echo ' '; } // 添加上传账号 修改config.guest.php if (isset($_POST['uploader_form'])) { $postArr = array($_POST['uploader_user'] => $_POST['uploader_password']); $new_config = array_replace($guestConfig, $postArr); $config_file = APP_ROOT . '/config/config.guest.php'; cache_write($config_file, $new_config, 'guestConfig'); echo ' '; header("refresh:1;"); } // 删除非空目录 if (isset($_POST['delDir'])) { $delDir = APP_ROOT . $config['path'] . $_POST['delDir']; if (deldir($delDir)) { echo ' '; } else { echo ' '; } header("refresh:1;"); // 1s后刷新当前页面 } // 监黄恢复图片 if (isset($_GET['suspic_reimg'])) { $name = $_GET['suspic_reimg']; if (re_checkImg($name)) { echo " "; } else { echo " "; } } // 回收站恢复图片 if (isset($_GET['recycle_reimg'])) { $name = $_GET['recycle_reimg']; if (re_checkImg($name, 'recycle/')) { echo " "; } else { echo " "; } } ?>
ID | 列表 | 添加时间 | 有效期至 | 禁用 |
---|---|---|---|---|
禁用 |
为了访问速度,仅显示最近20张图片;鉴黄需要在图床安全->图片鉴黄中开启
key申请地址: https://client.moderatecontent.com/
获得key后打开->API 设置->Moderate Key->填入
guest
的MD5为: 084e0343a0486ff05530df6c705c8bb4
登录账号 | 登录密码 | 删除密码 |
---|---|---|
删除 |