-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathindex.php
73 lines (66 loc) · 2.81 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
66
67
68
69
70
71
72
73
<?php
# ___ __ _ _ __ __ _
# / __\ __ __ _ / _| |_ ___ __| / / /\ \ \___| |__
# / / | '__/ _` | |_| __/ _ \/ _` \ \/ \/ / _ \ '_ \
#/ /__| | | (_| | _| || __/ (_| |\ /\ / __/ |_) |
#\____/_| \__,_|_| \__\___|\__,_| \/ \/ \___|_.__/
#
# -[ Created by ©Nomsoft
# `-[ Original core by Anthony (Aka. CraftedDev)
#
# -CraftedWeb Generation II-
# __ __ _
# /\ \ \___ _ __ ___ ___ ___ / _| |_
# / \/ / _ \| '_ ` _ \/ __|/ _ \| |_| __|
# / /\ / (_) | | | | | \__ \ (_) | _| |_
# \_\ \/ \___/|_| |_| |_|___/\___/|_| \__| - www.Nomsoftware.com -
# The policy of Nomsoftware states: Releasing our software
# or any other files are protected. You cannot re-release
# anywhere unless you were given permission.
# © Nomsoftware 'Nomsoft' 2011-2012. All rights reserved.
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>