初始化
This commit is contained in:
1
api/sjbz/counter.dat
Normal file
1
api/sjbz/counter.dat
Normal file
@@ -0,0 +1 @@
|
||||
3
|
||||
45
api/sjbz/index.php
Normal file
45
api/sjbz/index.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
$counter = intval(file_get_contents("counter.dat"));
|
||||
$_SESSION['#'] = true;
|
||||
$counter++;
|
||||
$fp = fopen("counter.dat","w");
|
||||
fwrite($fp, $counter);
|
||||
fclose($fp);
|
||||
?>
|
||||
|
||||
<?php
|
||||
if($_GET["method"] == "mobile"){
|
||||
if($_GET["lx"] == 'dongman'){
|
||||
$imgurl = 'http://api.btstu.cn/sjbz/api.php?method=mobile&lx=dongman';
|
||||
}
|
||||
else if($_GET["lx"] == 'meizi'){
|
||||
$imgurl = 'http://api.btstu.cn/sjbz/api.php?method=mobile&lx=meizi';
|
||||
}
|
||||
else if($_GET["lx"] == 'fengjing'){
|
||||
$imgurl = 'http://api.btstu.cn/sjbz/api.php?method=mobile&lx=fengjing';
|
||||
}
|
||||
else if($_GET["lx"] == 'suiji'){
|
||||
$imgurl = 'http://api.btstu.cn/sjbz/api.php?method=mobile&lx=suiji';
|
||||
}
|
||||
else{
|
||||
$imgurl = 'http://api.btstu.cn/sjbz/api.php?method=mobile&lx=dongman';
|
||||
}
|
||||
}else{
|
||||
if($_GET["lx"] == 'dongman'){
|
||||
$imgurl = 'http://api.btstu.cn/sjbz/api.php?lx=dongman';
|
||||
}
|
||||
else if($_GET["lx"] == 'meizi'){
|
||||
$imgurl = 'http://api.btstu.cn/sjbz/api.php?lx=meizi';
|
||||
}
|
||||
else if($_GET["lx"] == 'fengjing'){
|
||||
$imgurl = 'http://api.btstu.cn/sjbz/api.php?lx=fengjing';
|
||||
}
|
||||
else if($_GET["lx"] == 'suiji'){
|
||||
$imgurl = 'http://api.btstu.cn/sjbz/api.php?lx=suiji';
|
||||
}
|
||||
else{
|
||||
$imgurl = 'http://api.btstu.cn/sjbz/api.php?lx=dongman';
|
||||
}
|
||||
}
|
||||
header("Location:".$imgurl);//跳转输出图片
|
||||
?>
|
||||
Reference in New Issue
Block a user