-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
32 lines (30 loc) · 1.14 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
<?php
require_once("../../includes/sessions.php");
require_once("../../includes/db_connect.php");
require_once("../../includes/functions.php");
include("../../includes/layouts/public_page_header.php");
find_default_page();
?>
<div id="main">
<div id="navigation">
<br />
<a href="/cms/index.php">« Home</a>
<br />
<?php echo public_navigation($current_subject,$current_page); ?>
</div>
<div id="page">
<?php
if ($current_page && $current_page["visible"] == 1) {
$str_page_name = htmlentities(ucwords($current_page["page_name"]));
$str_page_content = htmlentities($current_page["content"]);
echo "<h2 style=\"text-align:center;\">".$str_page_name."</h2>";
echo "<table align=\"center\" width=90%> <tr> <td> <span style=\"text-align:center; color:#4CCCFF;\">".nl2br($str_page_content)."</span> </td> </tr> </table>";
} else {
echo "<h2 style=\"text-align:center;\">Welcome!!!</h2>";
echo "<br />";
echo "<img style=\"display: block; margin-left: auto; margin-right: auto;\" src='/cms/images/welcome.jpg' height= 80%/>";
}
?>
</div>
</div>
<?php include("../../includes/layouts/page_footer.php");?>