blob: 35879040eeac25a787977aedc23101b9ad252693 (
plain)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
<?php
// $Id$
include_once "includes/common.inc";
function status($message) {
if ($message) {
return "<b>Status:</b> $message<hr />\n";
}
}
function admin_page($mod) {
global $user;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?php echo variable_get("site_name", "drupal") . " " . t("administration pages"); ?></title>
</head>
<style>
body { font-family: helvetica, arial; font-size: 12pt; }
h1 { font-family: helvetica, arial; font-size: 18pt; font-weight: bold; color: #660000; }
h2 { font-family: helvetica, arial; font-size: 18pt; font-weight: bold; color: #000066; }
h3 { font-family: helvetica, arial; font-size: 14pt; font-weight: bold; color: #006600; }
th { font-family: helvetica, arial; font-size: 12pt; text-align: center; vertical-align: top; background-color: #CCCCCC; color: #995555; }
td { font-family: helvetica, arial; font-size: 12pt; }
#header { float: top; margin: 0; padding: 0; border-bottom: 1px solid #ccc; }
#tree { float: left; width: 230px; border-right: 1px solid #ccc; z-index: 1; overflow: hidden; }
#main { margin-left: 240px; padding: 20px 20px 20px 20px; z-index: 2; }
#menu { padding-bottom: 18px; text-align: right; }
#help { padding-bottom: 18px; }
</style>
<body bgcolor="#FFFFFF" link="#005599" vlink="#004499" alink="#FF0000">
<?php
module_invoke_all("link", "admin");
/*
** Header:
*/
print "<div id=\"header\">";
print "<a href=\"index.php\"><img align=\"right\" src=\"misc/druplicon-small.gif\" tag=\"Druplicon - Drupal logo\" /></a>";
if ($path = menu_path()) {
print "<h2>". la(t("Administration")) ." > $path</h2>";
}
else {
print "<h2>". t("Administration") ."</h2>";
}
print "</div>";
/*
** Menu:
*/
print "<div id=\"tree\">";
print menu_tree();
print "</div>";
/*
** Body:
*/
print "<div id=\"main\">";
if ($menu = menu_menu()) {
print "<div id=\"menu\">$menu</div>";
}
if ($help = menu_help()) {
print "<div id=\"help\">$help</div>";
}
module_invoke($mod, "admin");
print "</div>";
db_query("DELETE FROM menu");
?>
</body>
</html>
<?php
}
if (user_access("access administration pages")) {
page_header();
admin_page($mod);
page_footer();
}
else {
print message_access();
}
?>
|