-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.php
58 lines (53 loc) · 1.99 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
<?php
#######################################
## --------------------------------- ##
## CraftedWeb Generation 1 ##
## Author: Anthony (Aka. CraftedDev) ##
## --------------------------------- ##
#######################################
require('includes/loader.php'); //Load all php scripts
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<!-- ATTENTION COPY-WHORES. THE TEMPLATE, HTML, CSS, JAVASCRIPT AND ALL ITS CODING BELONGS TO CRAFTEDWEB
YOU ARE NOT ALLOWED TO DISTRIBUTE ANYTHING WITHOUT APPROVAL FROM THE CREATOR. ILLEGAL DISTRIBUTION WILL RESULT IN LAW SUIT-->
<head>
<?php require('includes/template_loader.php'); ?>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<title>
<?php
echo $website_title .' - ';
while ($page_title = current($GLOBALS['core_pages']))
{
if ($page_title == $_GET['p'].'.php')
{
echo key($GLOBALS['core_pages']);
$foundPT = true;
}
next($GLOBALS['core_pages']);
}
if(!isset($foundPT))
echo ucfirst($_GET['p']);
?>
</title>
<?php
$content = new Page('styles/'.$template['path'].'/template.html');
$content->loadCustoms(); //Load custom modules
$content->replace_tags(array('content' => 'modules/content.php')); //Main content
$content->replace_tags(array('menu' => 'modules/menu.php'));
$content->replace_tags(array('login' => 'modules/login.php'));
$content->replace_tags(array('account' => 'modules/account.php'));
$content->replace_tags(array('serverstatus' => 'modules/server_status.php'));
$content->replace_tags(array('slideshow' => 'modules/slideshow.php'));
$content->replace_tags(array('footer' => 'modules/footer.php'));
$content->replace_tags(array('loadjava' => 'includes/javascript_loader.php'));
$content->replace_tags(array('social' => 'modules/social.php'));
$content->replace_tags(array('alert' => 'modules/alert.php'));
?>
</head>
<body>
<?php
$content->output();
?>
</body>
</html>