-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ajax.php
35 lines (35 loc) · 1.33 KB
/
index.ajax.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
<div>
<div id="html-title">
<?php echo htmlspecialchars($title) ?></div>
<div id="html-head">
<?php head_theme();
if (function_exists("printHead")) printHead();
if (file_exists("css/content/$fn.css")) echo "<link class='page-specific-css' rel='stylesheet' href='/css/content/$fn.css' />";
if (isset($includes)) {
foreach ($includes as $val) {
if (substr($val, -4, 4) == ".css") echo "<link class='page-specific-css' rel='stylesheet' href='$val' />";
}
}
?>
<style type="text/css">
<?php
if ($me['n_level'] == 0) echo ".login-only{display:none}";
echo $is_morning ? ".morning{display:block}" : ".morning{display:none}";
echo $is_afternoon ? ".afternoon{display:block}" : ".afternoon{display:none}";
echo $is_night ? ".night{display:block;}" : ".night{display:none}";
?>
</style>
</div>
<div id="upper-header-menu">
<?php include "src/header/upper-header.php"; ?></div>
<div id="below-header-menu">
<?php include "src/header/below-header.php"; ?></div>
<script id="onload-scripts" type="text/text">
<?php
if (isset($_scripts)) echo $_scripts;
if (isset($overriden)) echo "debug.info(" . json_encode($overriden) . ");";
if (isset($_POST['error_occured']))
echo "checkAjaxReturnedData(JSON.parse(\"" . str_replace("</", "<\" + \"/", addslashes($_POST['error_occured'])) . "\"));";
?>
</script>
</div>