-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
92 lines (92 loc) · 2.3 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" id="viewport" content="width=device-width, initial-scale=1">
</head>
<!---
/ / |
Γ ̄ ̄ ̄ ̄ | |
|[]:: | |
|_____| |
|[]:: | |
|_____| |
ガラッ |_____| |
.彡/(´・ω・) /| |
Γ ̄ ̄ ̄ ̄ | |/
L____|/
水啊API from 2022 the web 主要配色黑,蓝,白 at 2022.1.27 last updated
--->
<script>
function add(nr,url){
var txt=$("<button></button>").text(nr).attr("class","mdui-btn mdui-btn-raised").click(function () { window.location=url; }); // 使用 jQuery 创建文本
$(".mdui-card").append(txt);
}
</script>
<center>
<div class="mdui-container-fluid">
<div style="padding: 5px;background: transparent;" class="mdui-card mdui-shadow-24">
<br>
<?php
include "config.php";
if ($web==false){
header("location:$dz/404.html");
}
if ($gg!=""){
echo "<script>alert('$gg')</script>";
}
start();
echo "<title>$title</title>";
echo "<center><h1 style=\"color: #5DB1FF;\">$title</h1></center><div class='mdui-divider'></div>";
echo "<p>$subtitle</p><div class='mdui-divider'></div>";
foreach ($arrayapi as $nr=>$api){
echo "<script>add('$nr','$api')</script>";
}
//本地
if (isset($_GET["l"])){
$b=randp();
header("Location:/rand/$b");
}
if (isset($_GET["cm"])){
jc();
$cm=$_GET["cm"];
sethome($title,$cm);
header("Location:index.php");
die();
}
//随机本地图片
function randp(){
$d=scandir("rand/");
$bg=array();
foreach ($d as $v){
if ($v!="." and $v!=".."){
$vv=explode(".",$v);
$vv=end($vv);
if ($vv=="jpg" or $vv=="png" or $vv=="jpeg"){
array_push($bg,$v);
}
}
}
$rr=rand(0,count($bg)-1);
$b=$bg[$rr];
return $b;
}
//echo "$b";
$b=randp();
echo("<body style='width: 100%;height: 100%;background: url(\"/rand/$b\") no-repeat;background-size: cover;position: absolute;background-attachment: fixed;'>");
?>
<div class="mdui-divider"></div>
<font size="3">Copyright © 2022 by <a href="admin/">水啊</a></font></center>
</div>
<style>
.mdui-btn{
margin: 5px;
width: 200px;
color: #74D3FF;
background: transparent;
border-radius: 5px;
}</style>
<?php
include "bing.php";
?>
</body>
</html>