-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
48 lines (45 loc) · 1.37 KB
/
index.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
<?php include("includes/init.php"); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php print("audioBlast: ".$current_page.($in_dev?" (DEV)":"")); ?></title>
<link rel="stylesheet" href="ab-api.css">
<link rel="stylesheet" href="https://cdn.audioblast.org/tabulator/dist/css/tabulator.min.css">
<script src="https://cdn.audioblast.org/tabulator/dist/js/tabulator.min.js"></script>
<script src="ab-tabulator.js"></script>
</head>
<body>
<div id="title" role="banner">
<a href="/">
<img src="https://cdn.audioblast.org/audioblast_flash.png"
alt="audioBlast flash logo"
class="audioblast-flash" /></a>
<h1>audioBlast Browser<?php print($in_dev?" (DEV)":"")?></h1>
<div id="menu">
<?php
if ($current_page == "home") {
include("includes/welcome.php");
?>
</div></div>
<?php
include("includes/home.php");
} else {
print("<ul class='ulhoriz' role='navigation'>");
$types = json_decode(
file_get_contents("http://api.audioblast.org/standalone/modules/list_modules/?category=data&output=nakedJSON"));
foreach ($types as $type) {
print("<li><a href='/?page=".$type->name."'>".$type->hname."</a></li>");
}
?>
</ul>
<div id="data-table" role="main">
</div>
<script>
generateTabulator("#data-table", "<?php print($current_page); ?>");
</script>
</div></div>
<?php
}
?>
</body>
</html>