-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprices.php
39 lines (39 loc) · 1.64 KB
/
prices.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
<?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/prices.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 $i => $v) {
echo '<strong>Power ID</strong>: ' . $i . '<br>';
echo '<strong>Power name</strong>: ' . $v['name'] . '<br>';
echo '<strong>Sub description</strong>: ' . $v['subdesc'] . '<br>';
echo '<strong>Description</strong>: ' . core::wikiSanatize($v['desc']) . '<br>';
echo '<strong>Price</strong>: ' . $v['price'] . '<br>';
echo '<strong>Status</strong>: ' . $v['pStatus'] . '<br>';
/* Note: ✔ == Yes, ✖ == No */
echo '<strong>Allpowers</strong>: ' . ($v['allpowers'] == false ? '✖' : '✔') . '<br>';
echo '<strong>Epic</strong>: ' . ($v['epic'] == false ? '✖' : '✔') . '<br>';
echo '<strong>Game</strong>: ' . ($v['game'] == false ? '✖' : '✔') . '<br>';
echo '<strong>Group</strong>: ' . ($v['group'] == false ? '✖' : '✔') . '<br>';
echo '<strong>New power</strong>: ' . ($v['newpower'] == false ? '✖' : '✔') . '<br>';
if($i != 1) { // will add if the power id isn't 1
echo '<br><br>';
}
}
}
?>
</body>
</html>