Skip to content

Commit 635cd78

Browse files
committed
update 260301
1 parent cca053c commit 635cd78

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

app/modules/ut-frame/admin/upload.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
if(UTInc::SqlCheck($_GET['do'])=="del"){
44
$img=UTInc::SqlCheck(str_replace("..","",$_GET['img']));
55
if(in_array(substr($img,-4),array(".jpg",".png",".gif"))):
6-
$img=str_replace($config["APPURL"]."/app",APP_ROOT,$img);
6+
$img=str_replace($config["APPURL"],OPEN_ROOT,$img);
77
UTInc::UnlinkFile($img);
88
echo json_encode(array("error"=>0));
99
else:
@@ -15,7 +15,7 @@
1515
}else{
1616
$l="upload";
1717
}
18-
$path = APP_ROOT."/assets/".$l."/";
18+
$path = OPEN_ROOT."/assets/".$l."/";
1919
$file = $_FILES['file'];
2020
$name = $file['name'];
2121
$type = strtolower(substr($name,strrpos($name,'.')+1));
@@ -28,7 +28,7 @@
2828
echo json_encode(array("error"=>"Illegal source of documents!<br>|-|Illegal source of documents!"));
2929
}else{
3030
if(move_uploaded_file($file['tmp_name'],$picurl)){
31-
echo json_encode(array("error"=>"0","pic"=>str_replace(APP_ROOT,$config["APPURL"],$picurl),"name"=>$fname,"post"=>$config["APPURL"]));
31+
echo json_encode(array("error"=>"0","pic"=>str_replace(OPEN_ROOT,$config["APPURL"],$picurl),"name"=>$fname,"post"=>$config["APPURL"]));
3232
}else{
3333
echo json_encode(array("error"=>"File upload failed!"));
3434
}

app/modules/ut-frame/front/upload.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
if(UTInc::SqlCheck($_GET['do'])=="del"){
44
$img=UTInc::SqlCheck(str_replace("..","",$_GET['img']));
55
if(in_array(substr($img,-4),array(".jpg",".png",".gif"))):
6-
$img=str_replace($config["APPURL"]."/app",APP_ROOT,$img);
6+
$img=str_replace($config["APPURL"],OPEN_ROOT,$img);
77
UTInc::UnlinkFile($img);
88
echo json_encode(array("error"=>0));
99
else:
@@ -15,7 +15,7 @@
1515
}else{
1616
$l="upload";
1717
}
18-
$path = APP_ROOT."/assets/".$l."/";
18+
$path = OPEN_ROOT."/assets/".$l."/";
1919
$file = $_FILES['file'];
2020
$name = $file['name'];
2121
$type = strtolower(substr($name,strrpos($name,'.')+1));
@@ -28,7 +28,7 @@
2828
echo json_encode(array("error"=>"Illegal source of documents!<br>|-|Illegal source of documents!"));
2929
}else{
3030
if(move_uploaded_file($file['tmp_name'],$picurl)){
31-
echo json_encode(array("error"=>"0","pic"=>str_replace(APP_ROOT,$config["APPURL"],$picurl),"name"=>$fname,"post"=>$config["APPURL"]));
31+
echo json_encode(array("error"=>"0","pic"=>str_replace(OPEN_ROOT,$config["APPURL"],$picurl),"name"=>$fname,"post"=>$config["APPURL"]));
3232
}else{
3333
echo json_encode(array("error"=>"File upload failed!"));
3434
}

app/modules/ut-frame/skin/admin/update.cms

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
<div class="col-md-3">
3232
<a target="_blank" href="<{$update}>/<{split=>$rows,"^",1}>.zip">下载</a> |
3333
<{php=>
34-
$thisver=explode("^",return=>$rows)[1];
35-
if(return=>$ver>=$thisver):
34+
$thisver_time=explode("^",return=>$rows)[1];
35+
if(return=>$version_time>=$thisver_time):
3636
}>
3737
已更新
3838
<{php=>
3939
else:
40-
$updatenum=library\UsualToolData\UTData::queryData("cms_update","","updateid='".$thisver."'","","","0")["querynum"];
40+
$updatenum=library\UsualToolData\UTData::queryData("cms_update","","updateid='".$thisver_time."'","","","0")["querynum"];
4141
if($updatenum>0):
4242
}>
4343
已更新

open/dev/index.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
/**
1717
* 获取版本号并载入应用部分设置
1818
*/
19-
$ver=substr(file_get_contents(UTF_ROOT."/.version.ini"),-6);
19+
$framework=file_get_contents(UTF_ROOT."/.version.ini");
20+
$version=substr($frame_version,0,5);
21+
$version_time=substr($frame_version,-6);
2022
$app->Runin(
21-
array("ver","update","develop","lock"),
22-
array($ver,$config["UPDATEURL"],$config["DEVELOP"],$config["LOCKSCREEN"])
23+
array("version","version_time","update","develop","lock"),
24+
array($version,$version_time,$config["UPDATEURL"],$config["DEVELOP"],$config["LOCKSCREEN"])
2325
);
2426
/**
2527
* 接收官方消息

0 commit comments

Comments
 (0)