代码拉取完成,页面将自动刷新
<?php
define('TDIR',dirname(__FILE__));
//include_once TDIR.'/config.php';
if(isset($_REQUEST['go'])){
$a=base_convert($_GET['a'],36,10);
//if($a<300)$a=base_convert($_GET['a'],16,10);
$d=$a%100;
$g=($a-$d)/100;
if(!file_exists(TDIR.'/data/'.$g.'.php')){
$tv=array('URL Not Exists','go.notexists');
include_once TDIR.'/inctpl.php';
}else{
include_once TDIR.'/data/'.$g.'.php';
if(isset($t[$d])){
$tUrl=$t[$d];
switch($_GET['method']){
case 'click':
$tv=array('请点击链接跳转','go.click');
include_once TDIR.'/inctpl.php';
break;
case 'javascript':
$tv=array('正在跳转,请等待……','go.html');
$tv[3]='<script src="'.str_replace('//','/',strtr(dirname($_SERVER['SCRIPT_NAME']).'/jump.js','\\','/')).'" type="text/javascript"></script><script type="text/javascript">jumpTo("'.str_replace('"','\\"',$tUrl).'");</script>';
include_once TDIR.'/inctpl.php';
break;
case 'html':
$tv=array('正在跳转,请等待……','go.html');
$tv[3]='<meta http-equiv="refresh" content="1;url='.$tUrl.'"/>';
include_once TDIR.'/inctpl.php';
break;
case 'header':
header('Location: '.$tUrl);
break;
default:
header('Location: '.$tUrl);
break;
}
}else{
header('Location: /');
}
}
}elseif($_POST['url']){
$a=file_get_contents(TDIR.'/data/n.txt');
$d=$a%100;
$g=($a-$d)/100;
file_exists('data/'.$g.'.php') or file_put_contents('data/'.$g.'.php',"<?php\r\n");
file_put_contents('data/'.$g.'.php','$t['.$d.']=\''.$_POST['url'].'\';'."\r\n",FILE_APPEND);
file_put_contents('n.txt',$a+1);
$outUrl='http://'.$_SERVER['HTTP_HOST'].'/'.base_convert($a,10,36);
$tv=array('输出链接','output');
include_once TDIR.'/inctpl.php';
}else{
$tv=array('输入链接','mainform');
include_once TDIR.'/inctpl.php';
}
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。