代码拉取完成,页面将自动刷新
<?php
switch ($_GET['s']){
case '':
$TITLE = '首页';
break;
case '/downloads':
$TITLE = '下载';
break;
case '/community':
$TITLE = '社区';
break;
case '/credits':
$TITLE = '贡献者';
break;
case '/customize':
$TITLE = '资源';
break;
case '/development':
$TITLE = '开发';
break;
case '/irc':
$TITLE = 'IRC';
break;
case '/servers':
$TITLE = '服务器';
break;
default:
$TITLE = '页面不存在';
break;
}
if($_GET['s'] == '' || $_GET['s']== ' '){
include_once('_includes/header.html');
include_once('_layouts/homepage.html');
}elseif(!is_file('./'.$_GET['s'].'.html')) {
//header("HTTP/1.1 404 Not Found");
include_once('_includes/header.html');
include_once ('./404.html');
}else {
include_once('_includes/header.html');
echo "<div class=\"content\">";
include_once('./'.$_GET['s'] . '.html');
echo "</div>";
}
include_once('_includes/footer.html');
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。