This repository has been archived by the owner on May 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
137 lines (119 loc) · 4.31 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html>
<head>
<?php
session_start();
include "config.php";
include "lib/dbip.php";
$_SESSION["current"] = 1;
?>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<?php
if(isset($_REQUEST["url"])!==True){
header("Refresh: 0; url=error.php?from=index.php&error=URL parameter not detected");
die();
}
if(strpos($_REQUEST["url"],".")==False){
header("Refresh: 0; url=error.php?from=index.php&error=URL parameter error");
}
?>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="google-signin-scope" content="profile email">
<meta name="google-signin-client_id" content="5318022020-80fbc5pcgvf52gq2el63b33tolcitkop.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tocas-ui/2.3.2/tocas.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/flatly/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
<style>
</style>
</head>
<body>
<div class="ts container">
<br>
<?php
if($requireauthenction=="true"){
if($authenctionkey==$_REQUEST["key"]){
}else{
header("Refresh: 0; url=error.php?from=index.php&error=Access Key Invaild");
}
}else{
}
//WARNING
if($enableipgeo=="true"){
if(strpos($banlocation, geoip($dbipcsv,$_SERVER['REMOTE_ADDR'])) !== false){
header("Refresh: 0; url=error.php?from=index.php&error=Your Region : ".geoip($dbipcsv,$_SERVER['REMOTE_ADDR'])." (IP:".$_SERVER['REMOTE_ADDR'].") Is Prohibited Access");
}
}
//WARNING
if($announcement=="" || $announcementgrade==""){
}else{
echo '<div class="alert alert-'.$announcementgrade.'" role="alert"><i class="fa fa-asterisk fa-2" aria-hidden="true"></i> '.$announcement.'</div>';
}
?>
<?php
$json = file_get_contents("developer.json");
$obj = json_decode($json);
if(isset($_REQUEST["dev_key"])){
$dev = $_REQUEST["dev_key"];
}else{
$dev = "null";
}
?>
<br>
<div class="ts heading vertically padded slate">
<p><?php echo $lang['index_title']; ?></p>
<details class="ts accordion" open>
<summary>
<i class="dropdown icon"></i>
<?php
$domain = parse_url($_REQUEST["url"]);
if(strpos($_REQUEST["url"],"127.0.0.1")===False){
echo $domain["host"];
}else{
echo $lang['index_application'];
}
?>
<?php
if($obj->{$dev}->{"verified"} == "true"){
if($domain["host"] == $obj->{$dev}->{"usualdomain"} || $domain["host"] == "127.0.0.1" || $domain["host"] == "localhost")
echo '<i class="fa fa-shield" aria-hidden="true" ></i>';
}
?>
</summary>
<div class="content">
<p><?php echo $lang['index_dev']; ?><?php echo $obj->{$dev}->{"author"}; ?></p>
<p><?php echo $lang['index_author']; ?><?php echo $obj->{$dev}->{"web"}; ?></p>
<p><?php echo $lang['index_date']; ?><?php echo $obj->{$dev}->{"date"}; ?></p>
</div>
</details>
</div>
<br>
<div class="ts fluid vertical buttons">
<?php
$disable=0;
if(strpos($_REQUEST["disable"],"M")===False){
echo '<a href="main.php?url='.bin2hex($_REQUEST["url"]).'" class="ts negative button" id="main">'.$lang['index_mainserver'].'</a>';
$disable = $disable +1;
}
if(strpos($_REQUEST["disable"],"G")===False){
echo '<a href="google.php?url='.bin2hex($_REQUEST["url"]).'" class="ts warning button">'.$lang['index_google'].'</a>';
$disable = $disable +1;
}
if(strpos($_REQUEST["disable"],"T")===False){
echo '<a href="github.php?url='.bin2hex($_REQUEST["url"]).'" class="ts primary button">'.$lang['index_github'].'</a>';
$disable = $disable +1;
}
if(strpos($_REQUEST["disable"],"I")===False){
echo '<a href="imus.php?url='.bin2hex($_REQUEST["url"]).'" class="ts inverted button">'.$lang['index_imus'].'</a>';
$disable = $disable +1;
}
if($disable ==0){
header("Refresh: 0; url=error.php?from=index.php&error=No Login Method Available");
}
?>
</div>
</div>
</body>
</html>