Skip to content

Commit

Permalink
v2.8.3
Browse files Browse the repository at this point in the history
- Fix #115
- Fix #114
  • Loading branch information
icret committed May 13, 2023
1 parent 9e2a513 commit 3603504
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/function.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// 判断当前的系统类型是否为windows
define('IS_WIN', strstr(PHP_OS, 'WIN') ? 1 : 0);
// 定义当前版本
define('APP_VERSION', '2.8.1');
define('APP_VERSION', '2.8.3');

/*---------------基础配置结束-------------------*/

Expand Down Expand Up @@ -1732,7 +1732,7 @@ function write_login_log($user, $pass, $msg)
if (!is_file($log_file)) file_put_contents($log_file, '<?php /** 登录日志 */ exit; ?>' . PHP_EOL, FILE_APPEND | LOCK_EX);

/** 写入日志 */
$log = '时间: ' . date('Y-m-d H:i:s') . ' IP: ' . real_ip() . ' 账号: ' . $user . ' 密码: ' . $pass . ' 消息: ' . $msg;
$log = htmlentities('时间: ' . date('Y-m-d H:i:s') . ' IP: ' . real_ip() . ' 账号: ' . $user . ' 密码: ' . $pass . ' 消息: ' . $msg);
file_put_contents($log_file, $log . PHP_EOL, FILE_APPEND | LOCK_EX);
}

Expand Down
2 changes: 1 addition & 1 deletion app/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<li><a href="<?php echo $config['domain']; ?>/app/list.php"><i class="icon icon-th"></i> 广场<span class="label label-badge label-primary"><?php echo get_file_by_glob(APP_ROOT . config_path(), 'number'); ?></span></a></li>
<?php endif; ?>
<?php /** 非管理或未开启不显示上传历史 */ if ($config['history'] || is_who_login('admin')) : ?>
<li><a href="<?php $config['domain']; ?>/app/history.php"><i class="icon icon-history"></i> 历史<span class="label label-badge label-primary"></span></a></li>
<li><a href="<?php echo $config['domain']; ?>/app/history.php"><i class="icon icon-history"></i> 历史<span class="label label-badge label-primary"></span></a></li>
<?php endif; ?>
<?php /** 非管理不显示设置 */ if (is_who_login('admin')) : ?>
<li><a href="<?php echo $config['domain']; ?>/admin/admin.inc.php"><i class="icon icon-cogs"></i> 设置</a></li>
Expand Down
4 changes: 4 additions & 0 deletions docs/update.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
* 2023-05-14 v2.8.3
- Fix #115
- Fix #114

* 2023-04-23 v2.8.2
- 增加uPic教程

Expand Down

0 comments on commit 3603504

Please sign in to comment.