-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscenes.php
47 lines (37 loc) · 1.03 KB
/
scenes.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
<?php
/**
* Created by PhpStorm.
* User: jkanter
* Date: 2/18/17
* Time: 1:51 PM
*/
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
include_once $_SERVER['DOCUMENT_ROOT']."/objects/scene.php";
$get_scenes = "";
foreach (scandir($_SERVER['DOCUMENT_ROOT'].scene::$FILE_DIRECTORY) as $filename) {
if ($filename != '.' && $filename != '..') {
$get_scenes .= "get_scene('" . $filename . "');\r\n";
}
}
$other_js = <<< OJ
<script src="/js/actions.js"></script>
<script src="/js/scene.js"></script>
OJ;
include $_SERVER['DOCUMENT_ROOT']."/views/head.php";
?>
<script>
var docload = function() {
console.log("Document Loaded");
<?php echo $get_scenes;?>
};
</script>
<div id="scene-container" >
<div>
<button class="btn btn-warning" role="button" id="new-scene-button">New Scene</button>
</div>
<div id="scene-accordion" role="tablist" aria-multiselectable="true">
</div>
</div>
<?php include $_SERVER['DOCUMENT_ROOT']."/views/foot.php"; ?>