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 * $_POST['add_token'] 生成的Token * $_POST['add_token_id'] Token的ID * $_POST['add_token_expired'] 过期时间 */ if (isset($_POST['add_token_id'])) { $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版本:
运行模式:
上传限制:
运行时间限制:
最大占用内存:
POST上传限制:
GD版本:
IP:
Browser:
ZUI Verot Tinyfilemanager Ip2Region TinyPng TinyPng Moderatecontent Moderatecontent GPL-2.0
EasyImage2.0简单图床构建于众多优秀的开源项目之上,非常感谢这些项目!
Ip2region (2.0 - xdb) 是一个离线 IP 数据管理框架和定位库,支持亿级别的数据段,10微秒级别的查询性能,提供了许多主流编程语言的 xdb 数据管理引擎的实现。 每个 ip 数据段的 region 信息都固定了格式:国家|区域|省份|城市|ISP, 只有中国的数据绝大部分精确到了城市, 其他国家部分数据只能定位到国家, 后前的选项全部是0。