Skip to content

Commit

Permalink
v1.51修复一些BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
helloxz committed May 31, 2020
1 parent b510439 commit 78ea18d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion functions/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function get_url(){
break;
default:
$protocol = "http://";
$port = ":".$port;
$port = "";
break;
}

Expand Down
2 changes: 1 addition & 1 deletion functions/readme.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
//载入文件
if ( $config['thedir'] == '' ){
include_once(__DIR__."./Parsedown.php");
include_once(__DIR__."/Parsedown.php");
}
else{
include_once($config['thedir']."/zdir/functions/Parsedown.php");
Expand Down
2 changes: 1 addition & 1 deletion functions/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.50-2020530
1.51-2020531
2 changes: 1 addition & 1 deletion functions/viewmd.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
//载入文件
if ( $config['thedir'] == '' ){
include_once(__DIR__."./Parsedown.php");
include_once(__DIR__."/Parsedown.php");
}
else{
include_once($config['thedir']."/zdir/functions/Parsedown.php");
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
else if($c == 'admin') {
//如果当前目录存在
if( file_exists('./functions/admin.php') ) {
header("Location: ./zdir/functions/admin.php");
header("Location: ./functions/admin.php");
exit;
}
else{
header("Location: ./functions/admin.php");
header("Location: ./zdir/functions/admin.php");
exit;
}
}
Expand Down

0 comments on commit 78ea18d

Please sign in to comment.