-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
65 lines (57 loc) · 1.24 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
include_once("top.php");
if(isset($_SESSION['modulator'])){
$modulator = $_SESSION['modulator'];
}else{
$modulator = '';
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?=$title?></title>
<link href="images/favicon.png" rel="icon" type="image/x-png" />
<style type="text/css">
<?php
include("css/dynamic_style.php");
?>
</style>
<?php
if($loggedIn){
foreach($config['private_javascript'] as $js_file){
?>
<script src="<?=$js_file?>"></script>
<?php
}
}else{
foreach($config['public_javascript'] as $js_file){
?>
<script type="text/javascript" src="<?=$js_file?>" charset="utf-8"></script>
<?php
}
}
?>
</head>
<body>
<?php
if(!$loggedIn){
$myPublisher = new Publisher($myModel);
$myPublisher->render();
}else{
?>
<div id="command_line">
<input id="modulator" title="modulator alters where chat messages go" value="<?=$modulator?>"><input id="chatmsg">
<div id="aspect_sets">
<?php
$aspsets_doc = new Document($aspsets);
$aspsets_doc->outputAndEval();
?>
</div>
</div>
<div id="all_aspects"></div>
<?php
}
?>
</body>
</html>