-
Notifications
You must be signed in to change notification settings - Fork 4
/
wc3admin.php
53 lines (47 loc) · 1.34 KB
/
wc3admin.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
<?php
session_start();
include "wc3.php";
Admin::load()->authenticate();
Admin::load()->init();
$adminLinks = Core::load()->parseConfig('admin_links');
if(!is_array($adminLinks)) $adminLinks = array();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WCDDL</title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<?php echo Core::load()->templateVar('admin_head'); ?>
</head>
<body>
<div id="wrap">
<div id="top"></div>
<div id="content">
<div class="header">
<h1><a href="/">WCDDL</a></h1>
<h2>WCDDL Admin</h2>
</div>
<div class="breadcrumbs">
<a href="/">DDL Home</a> ·
<?php
foreach($adminLinks as $adminLink) {
echo '<a class="admin_nav" href="' . $adminLink[0] . '">' . $adminLink[1] . '</a> · ';
}
?>
</div>
<div class="middle" style="float:none; width:100%;">
<h2>Welcome Admin!</h2>
<?php
Admin::load()->handleContent();
?>
</div>
<div id="clear"></div>
</div>
<div id="bottom"></div>
</div>
<div id="footer">
Copyright © 2009 YourSite - Powered by <a href="http://warezcoders.com/">WCDDL</a>
</div>
</body>
</html>