-
Notifications
You must be signed in to change notification settings - Fork 1
/
promoted.php
30 lines (30 loc) · 938 Bytes
/
promoted.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
<?php
require_once('_extra/core.php');
?>
<!doctype HTML>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>xat API by Mundosmilies.com</title>
</head>
<body>
<?php
$latest = core::loadPage('http://api.mundosmilies.com/promoted.php');
$getJson = json_decode($latest, true);
if(empty($latest)) {
echo '<font color=red>[1] Something is wrong please check if it\'s working..</font>';
} else if(is_null($getJson)) {
echo '<font color=red>[2] Something is wrong please check if it\'s working..</font>';
} else {
foreach($getJson as $lang => $chats) {
echo '<h1>' . $lang . ':</h1>';
foreach($chats as $cname => $v) {
echo '<strong>Chat id</strong>: ' . $v['chatid'] . '<br>';
echo '<strong>Chat name</strong>: ' . $cname . '<br>';
echo '<strong>Remaining</strong>: ' . $v['remaining'] . '<br><br>';
}
}
}
?>
</body>
</html>