new $.zui.Messager("请登录后再修改! ", { type: "danger", // 定义颜色主题 icon: "exclamation-sign" // 定义消息图标 }).show();'; header("refresh:2;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'])) { $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:1;url=/admin/admin.inc.php"); } // 删除Token if (isset($_GET['delete_token'])) { unset($tokenList[$_GET['delete_token']]); $config_file = APP_ROOT . '/config/api_key.php'; cache_write($config_file, $tokenList, 'tokenList'); echo ' '; header("refresh:1;url=/admin/admin.inc.php"); } // 禁用用户 if (isset($_GET['stop_guest'])) { $stop_guest = $_GET['stop_guest']; $postArr = array( $stop_guest => array( 'password' => $guestConfig[$stop_guest]['password'], 'expired' => time(), 'add_time' => $guestConfig[$stop_guest]['add_time'] ) ); $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;url=/admin/admin.inc.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 ' '; header("refresh:1;url=/admin/admin.inc.php"); } // 添加上传账号 修改config.guest.php if (isset($_POST['uploader_form'])) { $postArr = array( $_POST['uploader_user'] => array( 'password' => $_POST['uploader_password'], 'expired' => $_POST['uploader_time'] * 86400 + time(), 'add_time' => time() ) ); $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($_REQUEST['delDir'])) { $delDir = APP_ROOT . $config['path'] . $_REQUEST['delDir']; if (deldir($delDir)) { echo ' '; } else { echo ' '; } // header("refresh:1;"); // 1s后刷新当前页面 header("refresh:1;url=/admin/admin.inc.php"); } // 监黄恢复图片 if (isset($_GET['suspic_reimg'])) { $name = $_GET['suspic_reimg']; if (re_checkImg($name)) { echo " "; } else { echo " "; } header("refresh:1;url=/admin/admin.inc.php"); } // 回收站恢复图片 if (isset($_GET['recycle_reimg'])) { $name = $_GET['recycle_reimg']; if (re_checkImg($name, 'recycle/')) { echo " "; } else { echo " "; } header("refresh:1;url=/admin/admin.inc.php"); } ?>
API调用地址: /api/index.php
key申请地址: https://client.moderatecontent.com/
获得key后打开->API 设置->Moderate Key->填入key
为了访问速度,仅显示最近20张图片;鉴黄需要在图床安全->图片鉴黄中开启
服务系统: ' . php_uname() . ''; ?>
Web服务:
服务器IP:
系统时间:
占用内存:
占用磁盘:
剩余磁盘:
PHP Version:
PHP Model:
PHP Max UP:
PHP Max Time:
PHP Max Memery:
POST Max Upload:
GD:
IP:
Browser:
TinyPng TinyPng Moderatecontent Moderatecontent ZUI verot Tinyfilemanager New GPL-2.0
EasyImage2.0简单图床构建于众多优秀的开源项目之上,非常感谢这些项目!