2001-03-10 11:07:52 +00:00
|
|
|
<?php
|
2001-10-20 18:57:10 +00:00
|
|
|
// $Id$
|
2000-05-18 19:52:00 +00:00
|
|
|
|
2001-02-04 22:09:38 +00:00
|
|
|
include_once "includes/common.inc";
|
2000-12-30 11:58:14 +00:00
|
|
|
|
2001-04-02 15:54:37 +00:00
|
|
|
function status($message) {
|
2001-10-16 20:13:22 +00:00
|
|
|
if ($message) {
|
2002-05-02 20:28:11 +00:00
|
|
|
return "<b>Status:</b> $message<hr />\n";
|
2001-10-16 20:13:22 +00:00
|
|
|
}
|
2001-04-02 15:54:37 +00:00
|
|
|
}
|
|
|
|
|
2001-01-26 13:38:46 +00:00
|
|
|
function admin_page($mod) {
|
2001-06-29 22:08:57 +00:00
|
|
|
global $user;
|
2000-12-23 15:13:34 +00:00
|
|
|
|
|
|
|
?>
|
2001-07-07 13:07:03 +00:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
|
2001-06-20 20:00:40 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2002-10-29 19:39:19 +00:00
|
|
|
<title><?php echo variable_get("site_name", "drupal") . " " . t("administration pages"); ?></title>
|
2001-06-20 20:00:40 +00:00
|
|
|
</head>
|
|
|
|
<style>
|
2001-08-24 16:25:29 +00:00
|
|
|
body { font-family: helvetica, arial; font-size: 12pt; }
|
2002-08-26 18:22:16 +00:00
|
|
|
h1 { font-family: helvetica, arial; font-size: 18pt; font-weight: bold; color: #660000; }
|
2001-05-20 13:51:40 +00:00
|
|
|
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; }
|
2001-08-24 16:25:29 +00:00
|
|
|
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; }
|
2001-06-20 20:00:40 +00:00
|
|
|
</style>
|
|
|
|
<body bgcolor="#FFFFFF" link="#005599" vlink="#004499" alink="#FF0000">
|
2002-10-29 19:39:19 +00:00
|
|
|
<h1><?php echo t("Administration"); ?></h1>
|
2001-06-20 20:00:40 +00:00
|
|
|
<?php
|
2001-06-29 22:08:57 +00:00
|
|
|
|
2002-10-29 19:39:19 +00:00
|
|
|
$links[] = "<a href=\"index.php\">" . t("home") . "</a>";
|
2001-06-20 20:00:40 +00:00
|
|
|
foreach (module_list() as $name) {
|
2001-10-16 20:13:22 +00:00
|
|
|
if (module_hook($name, "link")) {
|
|
|
|
$links = array_merge($links, module_invoke($name, "link", "admin"));
|
|
|
|
}
|
2001-06-20 20:00:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
print implode(" | ", $links) ."<hr />";
|
|
|
|
|
2001-10-16 20:13:22 +00:00
|
|
|
if ($mod) {
|
|
|
|
module_invoke($mod, "admin");
|
|
|
|
}
|
2001-06-20 20:00:40 +00:00
|
|
|
?>
|
|
|
|
</body>
|
|
|
|
</html>
|
2001-03-10 11:07:52 +00:00
|
|
|
<?php
|
2000-05-18 19:52:00 +00:00
|
|
|
}
|
2000-09-04 16:14:46 +00:00
|
|
|
|
2001-06-29 22:08:57 +00:00
|
|
|
if (user_access("access administration pages")) {
|
2002-05-02 20:28:11 +00:00
|
|
|
page_header();
|
2001-06-20 20:00:40 +00:00
|
|
|
admin_page($mod);
|
2002-04-25 18:44:22 +00:00
|
|
|
page_footer();
|
2001-06-20 20:00:40 +00:00
|
|
|
}
|
2002-04-25 18:44:22 +00:00
|
|
|
else {
|
|
|
|
print message_access();
|
2002-05-02 20:28:11 +00:00
|
|
|
}
|
2002-04-25 18:44:22 +00:00
|
|
|
|
2002-08-26 18:22:16 +00:00
|
|
|
?>
|