mirror of
https://github.com/tznb1/TwoNav.git
synced 2025-08-10 08:51:49 +00:00
v2.0.09-20230410
This commit is contained in:
@@ -25,13 +25,15 @@ function other_upsys(){
|
||||
if(!preg_match('/^v.+-(\d{8})$/i',SysVer,$matches)){
|
||||
msg(-1,"获取程序版本异常");
|
||||
}
|
||||
if (!is_dir('./data/temp')) mkdir('./data/temp',0755,true) or msg(-1,'下载失败,创建临时[/data/temp]目录失败');
|
||||
//检查指定文件夹是否可写
|
||||
$paths = ["./","./data","./static","./system","./templates"];
|
||||
$paths = ["./","./data","./data/temp","./static","./system","./templates"];
|
||||
foreach($paths as $path){
|
||||
if(!is_writable($path)){
|
||||
msg(-1,"文件夹不可写 >> $path");
|
||||
}
|
||||
}
|
||||
|
||||
$_SESSION['upsys']['sysver'] = intval($matches[1]);
|
||||
usleep(1000*300); //延迟300毫秒
|
||||
msg(1,'success');
|
||||
|
||||
@@ -230,8 +230,8 @@ function echo_category($property = false){
|
||||
function echo_pwds(){
|
||||
$where["uid"] = UID;
|
||||
$where['ORDER']['pid'] = 'ASC';
|
||||
foreach (select_db('user_pwd_group',['pid','name'],$where) as $data) {
|
||||
echo "<option value=\"{$data['pid']}\">{$data['name']}</option>";
|
||||
foreach (select_db('user_pwd_group',['pid','name','password'],$where) as $data) {
|
||||
echo "<option value=\"{$data['pid']}\">{$data['name']} | 密码 [{$data['password']}]</option>";
|
||||
}
|
||||
}
|
||||
//检查链接
|
||||
|
||||
@@ -1 +1 @@
|
||||
v2.0.08-20230406
|
||||
v2.0.09-20230410
|
||||
Reference in New Issue
Block a user