You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-16 11:53:58 +08:00
进入维护阶段---精简文件
This commit is contained in:
@@ -103,7 +103,7 @@ if (isset($_POST['delDir'])) {
|
||||
<form action="../libs/compressing.php" method="post" target="_blank">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputInviteCode1">压缩文件夹内图片(格式:2021/05/10/):</label>
|
||||
<input type="text" class="form-control form-date" placeholder="" name="folder" value="2021/05/06/" readonly="">
|
||||
<input type="text" class="form-control form-date" placeholder="" name="folder" value="<?php echo date('Y/m/d/'); ?>" readonly="">
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label>
|
||||
@@ -146,9 +146,10 @@ if (isset($_POST['delDir'])) {
|
||||
<form action="<?php $_SERVER['PHP_SELF']; ?>" method="post">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputInviteCode1" style="color:red">删除所选日期文件夹(删除之后无法恢复!):</label>
|
||||
<input type="text" class="form-control form-date" name="delDir" value="2021/05/22/" readonly="">
|
||||
<input type="text" class="form-control form-date" name="delDir" value="<?php echo date('Y/m/d/'); ?>" readonly="">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-mini btn-danger" onClick="delcfm()">删除目录</button>
|
||||
|
||||
<button type="submit" class="btn btn-mini btn-danger" onClick="return confirm('确认要删除?\n* 删除文件夹后将无法恢复!');">删除目录</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -186,13 +187,6 @@ if (isset($_POST['delDir'])) {
|
||||
|
||||
// Title
|
||||
document.title = "管理中心 - <?php echo $config['title']; ?>";
|
||||
|
||||
// 删除目录确认
|
||||
function delcfm() {
|
||||
if (!confirm("确认要删除?\n* 删除文件夹后将无法恢复!")) {
|
||||
window.event.returnValue = false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php require_once APP_ROOT . '/libs/footer.php';
|
||||
|
||||
@@ -4,22 +4,32 @@ require_once '../../libs/function.php';
|
||||
require_once APP_ROOT . '/libs/header.php';
|
||||
require_once APP_ROOT . '/config/api_key.php';
|
||||
|
||||
// 如果关闭Api上传并且没有登录的情况下关闭测试接口
|
||||
if (!$config['apiStatus'] and !is_online()) {
|
||||
exit('<script>
|
||||
new $.zui.Messager("Api关闭,请登录", {type: "danger" // 定义颜色主题
|
||||
}).show();
|
||||
// 延时2s跳转
|
||||
window.setTimeout("window.location=\'/../libs/login.php \'",2000);
|
||||
</script>');
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="container">
|
||||
</div class="row">
|
||||
<div class="col-md-12">
|
||||
<h4>测试Token:<code><?php echo $tokenList['1']; ?></code></h4>
|
||||
<form action="../index.php" method="post" enctype="multipart/form-data" class="form-inline" target="_blank">
|
||||
<div class="form-group">
|
||||
<input type="file" name="image" accept="image/*" class="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="token" placeholder="请输入Token" class="form-control" />
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">上传</button>
|
||||
</form>
|
||||
</div class="row">
|
||||
<div class="col-md-12">
|
||||
<h4>测试Token:<code><?php echo $tokenList['1']; ?></code></h4>
|
||||
<form action="../index.php" method="post" enctype="multipart/form-data" class="form-inline" target="_blank">
|
||||
<div class="form-group">
|
||||
<input type="file" name="image" accept="image/*" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="token" placeholder="请输入Token" class="form-control" />
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">上传</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user