-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlatest.php
32 lines (32 loc) · 1.4 KB
/
latest.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
<?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/latest.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 {
echo '<strong>Power ID</strong>: ' . $getJson['id'] . '<br>';
echo '<strong>Power name</strong>: ' . $getJson['name'] . '<br>';
echo '<strong>Price</strong>: ' . $getJson['price'] . '<br>';
echo '<strong>Status</strong>: ' . $getJson['status'] . '<br>';
/* Note: ✔ == Yes, ✖ == No */
echo '<strong>Allpowers</strong>: ' . ($getJson['allpowers'] == false ? '✖' : '✔') . '<br>';
echo '<strong>Epic</strong>: ' . ($getJson['epic'] == false ? '✖' : '✔') . '<br>';
echo '<strong>Game</strong>: ' . ($getJson['game'] == false ? '✖' : '✔') . '<br>';
echo '<strong>Group</strong>: ' . ($getJson['group'] == false ? '✖' : '✔') . '<br>';
echo '<strong>Section / SubID</strong>: ' . $getJson['section'] . ' / ' . $getJson['subid'];
}
?>
</body>
</html>