@@ -85,7 +85,7 @@ | |||||
<input type="text" name="keyword" placeholder="功能搜索" class="allsearch"> | <input type="text" name="keyword" placeholder="功能搜索" class="allsearch"> | ||||
<button type="submit" class="np">搜索</button> | <button type="submit" class="np">搜索</button> | ||||
<a href="<?php echo $cfg_biz_gitUrl; ?>" target="_blank"><i class="fa fa-code"></i> 代码托管</a> | <a href="<?php echo $cfg_biz_gitUrl; ?>" target="_blank"><i class="fa fa-code"></i> 代码托管</a> | ||||
<a href="<?php echo $cfg_biz_helpUrl; ?>" target="_blank"><i class="fa fa-info-circle"></i> 帮助中心</a> | |||||
<a href="<?php echo $cfg_biz_helpUrl; ?>" target="_blank"><i class="fa fa-question-circle"></i> 帮助中心</a> | |||||
</form> | </form> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -288,11 +288,7 @@ class Archives | |||||
*/ | */ | ||||
function MakeHtml($isremote = 0) | function MakeHtml($isremote = 0) | ||||
{ | { | ||||
global $fileFirst, $cfg_basehost,$cfg_rewrite; | |||||
if ($cfg_rewrite == 'Y') { | |||||
return ''; | |||||
} | |||||
global $fileFirst, $cfg_basehost; | |||||
if ($this->IsError) { | if ($this->IsError) { | ||||
return ''; | return ''; | ||||
} | } | ||||
@@ -148,13 +148,15 @@ if (!function_exists('GetFileName')) { | |||||
//伪静态文档,Nginx伪静态规则参考: | //伪静态文档,Nginx伪静态规则参考: | ||||
//rewrite ^/([0-9]+).html$ /apps/view.php?arcID=$1; | //rewrite ^/([0-9]+).html$ /apps/view.php?arcID=$1; | ||||
//rewrite ^/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2; | //rewrite ^/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2; | ||||
if ($cfg_rewrite == 'Y') { | |||||
//目录版return "/article/".$aid.""; | |||||
//网页版 | |||||
return $GLOBALS['cfg_cmspath'].'/'.$aid.".html"; | |||||
} | |||||
if ($rank != 0 || $ismake == -1 || $typeid == 0 || $money > 0) { | if ($rank != 0 || $ismake == -1 || $typeid == 0 || $money > 0) { | ||||
return $GLOBALS['cfg_phpurl']."/view.php?aid=$aid"; | |||||
if ($cfg_rewrite == 'Y') { | |||||
//目录版return "/article/".$aid.""; | |||||
//网页版 | |||||
return $GLOBALS['cfg_cmspath'].'/'.$aid.".html"; | |||||
} else { | |||||
return $GLOBALS['cfg_phpurl']."/view.php?aid=$aid"; | |||||
} | |||||
} else { | } else { | ||||
$articleDir = MfTypedir($typedir); | $articleDir = MfTypedir($typedir); | ||||
$articleRule = strtolower($namerule); | $articleRule = strtolower($namerule); | ||||