初始化

This commit is contained in:
muzihuaner
2026-03-14 23:26:53 +08:00
parent 30348c6dba
commit 6c5e43ae2d
59 changed files with 13770 additions and 0 deletions

45
api/sjbz/index.php Normal file
View 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);//跳转输出图片
?>