2001-03-10 11:07:52 +00:00
|
|
|
<?php
|
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-02-18 15:14:56 +00:00
|
|
|
// validate user access:
|
|
|
|
if (!user_access($user)) exit();
|
2000-09-26 07:34:33 +00:00
|
|
|
|
2001-04-02 15:54:37 +00:00
|
|
|
function status($message) {
|
|
|
|
if ($message) return "<B>Status:</B> $message<HR>\n";
|
|
|
|
}
|
|
|
|
|
2001-01-26 13:38:46 +00:00
|
|
|
function admin_page($mod) {
|
2001-05-05 13:57:29 +00:00
|
|
|
global $menu, $user;
|
2000-12-23 15:13:34 +00:00
|
|
|
|
2001-05-05 13:57:29 +00:00
|
|
|
function module($name) {
|
|
|
|
global $menu, $user;
|
|
|
|
if (function_exists($name. "_admin") && user_access($user, $name)) $output .= "<A HREF=\"admin.php?mod=$name\">$name</A> | ";
|
2000-12-23 15:13:34 +00:00
|
|
|
$menu .= $output;
|
2000-09-04 16:14:46 +00:00
|
|
|
}
|
2000-12-23 15:13:34 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<HTML>
|
2001-04-06 14:14:16 +00:00
|
|
|
<HEAD><TITLE><?php echo variable_get(site_name, "drupal"); ?> administration</TITLE></HEAD>
|
2000-12-23 15:13:34 +00:00
|
|
|
<STYLE>
|
|
|
|
body { font-family: helvetica, arial; }
|
2000-12-29 11:00:56 +00:00
|
|
|
h1 { font-size: 18pt; font-weight: bold; color: #990000; }
|
|
|
|
h2 { font-family: helvetica, arial; font-size: 18pt; font-weight: bold; }
|
2000-12-23 15:13:34 +00:00
|
|
|
h3 { font-family: helvetica, arial; font-size: 14pt; font-weight: bold; }
|
2001-02-23 17:53:51 +00:00
|
|
|
th { font-family: helvetica, arial; text-align: center; vertical-align: top; background-color: #CCCCCC; color: #995555; }
|
2001-01-26 14:41:44 +00:00
|
|
|
td { font-family: helvetica, arial; }
|
2000-12-23 15:13:34 +00:00
|
|
|
</STYLE>
|
|
|
|
<BODY BGCOLOR="#FFFFFF" LINK="#005599" VLINK="#004499" ALINK="#FF0000">
|
2001-01-07 19:21:28 +00:00
|
|
|
<H1>Administration</H1>
|
2001-05-05 13:57:29 +00:00
|
|
|
<?php module_iterate("module"); ?>
|
2001-03-26 09:13:59 +00:00
|
|
|
<HR><?php echo $menu; ?><A HREF="index.php">home</A><HR>
|
2001-05-05 13:57:29 +00:00
|
|
|
<?php if (user_access($user, $mod)) module_invoke($mod, "admin"); ?>
|
2000-12-29 11:00:56 +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-03-31 14:58:37 +00:00
|
|
|
user_rehash();
|
2000-12-23 15:13:34 +00:00
|
|
|
admin_page($mod);
|
2000-09-04 16:14:46 +00:00
|
|
|
|
2001-03-03 15:31:51 +00:00
|
|
|
?>
|