You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.6 KiB
39 lines
1.6 KiB
5 years ago
|
<?php
|
||
|
header('Access-Control-Allow-Origin:*');
|
||
|
|
||
|
|
||
|
if(!isset($_REQUEST['k'])){
|
||
|
header('Content-type: image/jpg');
|
||
|
|
||
|
if($_REQUEST['i'] == "middleSchoolGraduate"){
|
||
|
$id = mt_rand(1,100);
|
||
|
echo file_get_contents("https://yimian-image.obs.myhwclouds.com/photo/middleSchoolGraduate/".$id.".jpeg");
|
||
|
}elseif($_REQUEST['i'] == "mountTai2014"){
|
||
|
$id = mt_rand(1,40);
|
||
|
echo file_get_contents("https://yimian-image.obs.myhwclouds.com/photo/mountTai2014/".$id.".jpeg");
|
||
|
}elseif($_REQUEST['i'] == "songshanShaolin2011"){
|
||
|
$id = mt_rand(1,500);
|
||
|
echo file_get_contents("https://yimian-image.obs.myhwclouds.com/photo/songshanShaolin2011/".$id.".jpeg");
|
||
|
}elseif($_REQUEST['i'] == "tsingzhuTaishan2014"){
|
||
|
$id = mt_rand(1,318);
|
||
|
echo file_get_contents("https://yimian-image.obs.myhwclouds.com/photo/tsingzhuTaishan2014/".$id.".jpeg");
|
||
|
}
|
||
|
}else{
|
||
|
|
||
|
if($_REQUEST['i'] == "middleSchoolGraduate"){
|
||
|
$id = mt_rand(1,100);
|
||
|
header("Location: https://yimian-image.obs.myhwclouds.com/photo/middleSchoolGraduate/".$id.".jpeg");
|
||
|
}elseif($_REQUEST['i'] == "mountTai2014"){
|
||
|
$id = mt_rand(1,40);
|
||
|
header("Location: https://yimian-image.obs.myhwclouds.com/photo/mountTai2014/".$id.".jpeg");
|
||
|
}elseif($_REQUEST['i'] == "songshanShaolin2011"){
|
||
|
$id = mt_rand(1,500);
|
||
|
header("Location: https://yimian-image.obs.myhwclouds.com/photo/songshanShaolin2011/".$id.".jpeg");
|
||
|
}elseif($_REQUEST['i'] == "tsingzhuTaishan2014"){
|
||
|
$id = mt_rand(1,318);
|
||
|
header("Location: https://yimian-image.obs.myhwclouds.com/photo/tsingzhuTaishan2014/".$id.".jpeg");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
die();
|