-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
47 lines (44 loc) · 973 Bytes
/
index.php
File metadata and controls
47 lines (44 loc) · 973 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
39
40
41
42
43
44
45
46
47
<?php
include("core/core.php");
//What do we need to do?
$page = "API";
if (isHomepage()) {$page = "home";}
if (isEmbedPage()) {$page = "embed";}
if ($page == "API") {
moduleAPI($db);
} else {
?>
<html>
<head>
<title>audioBLAST! API</title>
<link rel="stylesheet" href="https://audioblast.org/ab-api.css">
</head>
<body>
<div id="title">
<a href="/"><img src="https://cdn.audioblast.org/audioblast_flash.png" class="audioblast-flash" /></a>
<?php
switch($page) {
case "home":
print("<h1>audioBLAST! API</h1>");
break;
case "embed":
print("<h1>Embed API</h1>");
break;
}
?>
</div>
<?php
switch($page) {
case "home":
print(modulesHTML(loadModules()));
break;
case "embed":
embedPage();
break;
}
?>
</body>
</html>
<?php
}
$db->close();