1 Star 1 Fork 0

青草Minecraft/minetest.github.io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
qcmc 提交于 2018-08-06 15:23 . 修复在Linux下无法include的问题
<?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');
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/qcminecraft/minetest.github.io.git
git@gitee.com:qcminecraft/minetest.github.io.git
qcminecraft
minetest.github.io
minetest.github.io
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385