修复PHP5.6无法使用问题
parent
3291438f1b
commit
43e31ed287
|
@ -37,12 +37,11 @@ if (isset($_POST['delDir'])) {
|
|||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="container">
|
||||
</div class="row">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-primary">
|
||||
<h3 style="text-align:center">EasyImage2.0 快捷操作中心</h2>
|
||||
<h3 style="text-align:center">EasyImage2.0 快捷操作中心</h3>
|
||||
<hr />
|
||||
<h5>目录保存以 年/月/日/ 递进,非必要请勿修改!否则会导致部分操作不可用;</h5>
|
||||
<h5>本人仅为程序开源创作,如非法网站使用与本人无关,请勿用于非法用途;</h5>
|
||||
|
@ -74,12 +73,8 @@ if (isset($_POST['delDir'])) {
|
|||
<p>访问者IP:<?php echo $_SERVER["REMOTE_ADDR"]; ?></p>
|
||||
<h5>图床信息</h5>
|
||||
<hr />
|
||||
<p><?php
|
||||
$yesterday = date("Y/m/d/", strtotime("-1 day"));
|
||||
echo '今日上传:' . getFileNumber(APP_ROOT . config_path()) . ' 昨日上传:' . getFileNumber(APP_ROOT . $config['path'] . $yesterday); ?>
|
||||
</p>
|
||||
<p><?php $yesterday = date("Y/m/d/", strtotime("-1 day"));echo '今日上传:' . getFileNumber(APP_ROOT . config_path()) . ' 昨日上传:' . getFileNumber(APP_ROOT . $config['path'] . $yesterday); ?></p>
|
||||
<p>当前版本:<?php echo $config['version']; ?>,Github版本:<a href="https://github.com/icret/EasyImages2.0/releases" target="_blank"><?php echo getVersion(); ?></a></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -186,6 +181,8 @@ if (isset($_POST['delDir'])) {
|
|||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<link href="<?php static_cdn(); ?>/public/static/zui/lib/datetimepicker/datetimepicker.min.css" rel="stylesheet">
|
||||
<script src="<?php static_cdn(); ?>/public/static/zui/lib/datetimepicker/datetimepicker.min.js"></script>
|
||||
<script>
|
||||
|
@ -202,7 +199,6 @@ if (isset($_POST['delDir'])) {
|
|||
var delimgurl = document.getElementById("delimgurl");
|
||||
delimgurl.innerHTML += '<img src="' + oBtn.value + '" width="200" class="img-rounded" /><br />';
|
||||
}
|
||||
|
||||
// 仅选择日期
|
||||
$(".form-date").datetimepicker({
|
||||
weekStart: 1,
|
||||
|
@ -214,9 +210,7 @@ if (isset($_POST['delDir'])) {
|
|||
forceParse: 0,
|
||||
format: "yyyy/mm/dd/"
|
||||
});
|
||||
|
||||
// Title
|
||||
document.title = "管理中心 - <?php echo $config['title']; ?>";
|
||||
</script>
|
||||
|
||||
<?php require_once APP_ROOT . '/libs/footer.php';
|
|
@ -3,8 +3,8 @@ require_once __DIR__ . '/header.php';
|
|||
if (!$config['showSwitch'] and !is_online()) {
|
||||
echo '<div class="alert alert-info">管理员关闭了预览哦~~</div>';
|
||||
} else {
|
||||
$path = $_GET['date'] ?? date('Y/m/d/');
|
||||
$keyNum = $_GET['num'] ?? $config['listNumber'];
|
||||
$path = isset($_GET['date']) ?$_GET['date']: date('Y/m/d/');
|
||||
$keyNum =isset( $_GET['num'] )?$_GET['num']:$config['listNumber'];
|
||||
$fileArr = getFile(APP_ROOT . config_path($path));
|
||||
if ($fileArr[0]) {
|
||||
echo '<div class="cards listNum">';
|
||||
|
@ -42,11 +42,12 @@ $yesterdayUpload = getFileNumber(APP_ROOT . $config['path'] . $yesterday);
|
|||
$spaceUsed = getDistUsed(disk_total_space(__DIR__) - disk_free_space(__DIR__));
|
||||
// 占用空间
|
||||
// 当前日期全部上传
|
||||
$allUploud = $_GET['date'] ?? date('Y/m/d/');
|
||||
$allUploud = isset($_GET['date'])?$_GET['date']:date('Y/m/d/');
|
||||
$allUploud = getFileNumber(APP_ROOT . $config['path'] . $allUploud);
|
||||
@($httpUrl = array('date' => $path, 'num' => getFileNumber(APP_ROOT . config_path($path))));
|
||||
?>
|
||||
<style>
|
||||
/** 返回顶部*/
|
||||
* {
|
||||
list-style: none;
|
||||
border: 0;
|
||||
|
|
Loading…
Reference in New Issue