-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_progress.php
More file actions
38 lines (38 loc) · 950 Bytes
/
get_progress.php
File metadata and controls
38 lines (38 loc) · 950 Bytes
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
<?php
include "LFSWorldSDK.php";
$SDK = new LFSWorldSDK("35cP2S05Cvj3z7564aXKyw0Mqf1Hhx7P", true);
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo empty($_GET["host"])
? "Please Input a Host Name"
: "Page for " . urlencode($_GET["host"]); ?></title>
</head>
<body>
<?php if (empty($_GET["host"])): ?>
<form target="_SELF" method="GET">
<label for="host">LFS Host Name:</label><input type="textbox" id="host" name="host" /><br />
<input type="submit" value="Get Info" />
</form>
<?php else:
$prog = $SDK->get_progress($_GET["host"]);
if (empty($prog)): ?>
No Results Found
<?php else: ?>
<table>
<tbody>
<?php foreach ($prog as $key => $val): ?>
<tr>
<th><?php echo $key; ?></th>
<td><?php print_r($val); ?></td>
</tr>
<?php endforeach; ?>
<?php endif;
?>
</tbody>
</table>
<?php endif; ?>
</body>
</html>