代码拉取完成,页面将自动刷新
<?php
require_once __DIR__ . '/route.class.php';
function index_init()
{
error_reporting(E_ALL | E_STRICT);
header("Content-Type: text/html;charset=utf-8");
$arr = array(
'/index.html',
'/student/index.html',
'/student/user/index.html',
'/student/user/role/index///.html',
'/index.xml',
'/student/index.xml',
'/student/user/index.xml',
'/student/user/role/index///.xml',
'/index.jsonp',
'/student/index.jsonp',
'/student/user/index.jsonp',
'/student/user/role/index.jsonp',
'/index.json',
'/student/index.json',
'/student/user/index.json',
'/student/user/role/index.jsonp',
);
foreach( $arr as $t )
{
Route::parse_url($t);
prety_printr($_GET);
$route_key = $_GET['q:route'];
unset($_GET['q:route']);
prety_printr( Route::rewrite_url($route_key, $_GET));
}
echo __FILE__;
EXIT;
}
function prety_printr($vars, $label = '', $return = false)
{
$content = "<pre>\n";
if ($label != '') {
$content .= "<strong>{$label} :</strong>\n";
}
$content .= htmlspecialchars(print_r($vars, true),ENT_COMPAT | ENT_IGNORE);
$content .= "\n</pre>\n";
if ($return) { return $content; }
echo $content;
}
index_init();
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。