-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInfo.php
186 lines (167 loc) · 4.17 KB
/
Info.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<html>
<head>
<!---<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
});
</script>!--->
<style>
body {
background-image:url(img/backgroundNima.jpg);
background-color:#C09;
background-attachment:fixed;
background-clip:padding-box;
}
body:hover {
background-image:url(img/backgroundNima2.jpg);
background-color:#0CF;
background-attachment:fixed;
background-clip:padding-box;
}
a:link {
color: #0CF;
}
a:visited {
color: #0CF;
}
a:active {
color: #0CF;
}
body,td,th {
color: #CC3;
direction: rtl;
}
a {
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
color: #0CF;
font-style: italic;
}
a:hover {
color: #0CF;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body tracingsrc="img/backgroundNima.jpg" tracingopacity="84">
<table width="408" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td><?php
/**
* @author Edward McKnight (EM-Creations.co.uk)
*/
error_reporting(0);
require("actions/SampQuery.class.php"); // Require or include the SampQuery class file
if ($query->connect()) { // Attempt to the SA-MP server and if the connection was successful run the code below
$hoso = $query->getRules();
$hosn = $query->getInfo();
// print_r($hosn);
echo "<title>";
echo $hosn['hostname'];
echo "</title>";
} else {
echo "<h3 align='center'>× Server Is Offline! ×</h3>";
echo "<br />";
}
// $query->close(); // Close the connection
?></td>
<td><?php echo $hosn['players'] ?> / <?php echo $hosn['maxplayers'] ?></td>
<td> </td>
</tr>
<tr>
<td><?php echo $hosn['map'] ?></td>
<td><?php echo $hosn['gamemode'] ?></td>
<td> </td>
</tr>
<tr>
<td> <?php echo $hoso['mapname'] ?></td>
<td><a href="http://<?php echo $hoso['weburl'] ?>"><?php echo $hoso['weburl'] ?></a></td>
<td> </td>
</tr>
<tr>
<td><?php echo $hoso['version'] ?></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td></td>
<td><?php echo "testt" ?></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<?php
echo '<table width="488" border="0" align="center" cellspacing="1" cellpadding="1">
<tr>
<th width="96" scope="col">ID</th>
<th width="196" scope="col">Name</th>
<th width="102" scope="col">Score</th>
<th width="71" scope="col">Ping</th>
</tr>
';
$players = $query->getDetailedPlayers();
foreach ($players as $player) {
$nplayr = $player['nickname'];
echo " <tr>
<td>{$player['playerid']}</td>
<td>{$player['nickname']}</td>
<td>{$player['score']}</td>
<td>{$player['ping']}</td>
</tr>
";
}
echo "</table>";
?>
<?php
$D = date('N');
$Today = $D++;
$days = '';
if($Today == 1){
$days = 'دو شنبه';
}
elseif($Today == 2){
$days = 'سه شنبه';
}
elseif($Today == 3){
$days = 'چهار شنبه';
}
elseif($Today == 4){
$days = 'پنج شنبه';
}
elseif($Today == 5){
$days = 'جمعه';
}
elseif($Today == 6){
$days = 'شنبه';
}
elseif($Today == 7){
$days = 'یک شنبه';
};
echo '<br> <h6 align="center">× × '.$days.' | Server + Players List Samp || Made By : Nima Bastaniw™ × ×</h6>';
?>
</body>
</html>