2000-09-23 07:31:51 +02:00
|
|
|
<?php
|
|
|
|
{
|
2001-03-09 00:32:22 +01:00
|
|
|
|
|
|
|
/*
|
2000-09-23 07:31:51 +02:00
|
|
|
// This block of code is included by the main Administration page
|
|
|
|
// it points to the user, application and other global config
|
|
|
|
// pages.
|
|
|
|
// $appname is defined in the included file, (=="admin" for this file)
|
|
|
|
// $phpgw and $phpgwinfo are also in scope
|
|
|
|
|
|
|
|
// Find the icon to display
|
2000-12-19 19:14:22 +01:00
|
|
|
echo "<p>\n";
|
|
|
|
$imgfile = $phpgw->common->get_image_dir("admin")."/" . $appname .".gif";
|
|
|
|
if (file_exists($imgfile)) {
|
|
|
|
$imgpath = $phpgw->common->get_image_path("admin")."/" . $appname .".gif";
|
2000-09-23 07:31:51 +02:00
|
|
|
} else {
|
2000-12-19 19:14:22 +01:00
|
|
|
$imgfile = $phpgw->common->get_image_dir("admin")."/navbar.gif";
|
|
|
|
if (file_exists($imgfile)) {
|
|
|
|
$imgpath = $phpgw->common->get_image_path("admin")."/navbar.gif";
|
2000-09-23 07:31:51 +02:00
|
|
|
} else {
|
2000-12-19 19:14:22 +01:00
|
|
|
$imgpath = "";
|
2000-09-23 07:31:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Show the header for the section
|
2000-12-19 19:14:22 +01:00
|
|
|
section_start("Administration",$imgpath);
|
2001-03-09 00:32:22 +01:00
|
|
|
*/
|
2000-09-23 07:31:51 +02:00
|
|
|
|
2001-03-09 00:32:22 +01:00
|
|
|
echo "<p>\n";
|
|
|
|
$imgfile = $phpgw->common->get_image_dir($appname) . '/' . $appname . '.gif';
|
|
|
|
if (file_exists($imgfile))
|
|
|
|
{
|
|
|
|
$imgpath = $phpgw->common->get_image_path($appname) . '/' . $appname . '.gif';
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$imgfile = $phpgw->common->get_image_dir($appname) . '/navbar.gif';
|
|
|
|
if (file_exists($imgfile))
|
|
|
|
{
|
|
|
|
$imgpath = $phpgw->common->get_image_path($appname) . '/navbar.gif';
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$imgpath = '';
|
|
|
|
}
|
|
|
|
}
|
2000-09-23 07:31:51 +02:00
|
|
|
|
2001-03-09 00:32:22 +01:00
|
|
|
section_start(ucfirst($appname),$imgpath);
|
2000-09-23 07:31:51 +02:00
|
|
|
|
2001-03-09 00:32:22 +01:00
|
|
|
// actual items in this section
|
|
|
|
echo '<a href="' . $phpgw->link('/admin/accounts.php') . '">' . lang('User accounts')."</a><br>\n";
|
|
|
|
echo '<a href="' . $phpgw->link('/admin/groups.php') . '">' . lang('User groups')."</a><br>\n";
|
|
|
|
echo "<p>\n";
|
2000-11-24 05:45:09 +01:00
|
|
|
|
2001-03-09 00:32:22 +01:00
|
|
|
echo '<a href="' . $phpgw->link('/admin/applications.php') . '">' . lang('Applications')."</a><br>\n";
|
|
|
|
echo "<p>\n";
|
2000-11-24 05:45:09 +01:00
|
|
|
|
2001-03-25 04:55:25 +02:00
|
|
|
echo '<a href="' . $phpgw->link('/admin/categories.php') . '">' . lang('Global Categories')."</a><br>\n";
|
2001-03-25 03:07:28 +02:00
|
|
|
echo "<p>\n";
|
|
|
|
|
2001-03-09 00:32:22 +01:00
|
|
|
echo '<a href="' . $phpgw->link('/admin/mainscreen_message.php') . '">' . lang('Change main screen message') . "</a><br>\n";
|
|
|
|
echo "<p>\n";
|
2000-09-23 07:31:51 +02:00
|
|
|
|
2001-03-09 00:32:22 +01:00
|
|
|
echo '<a href="' . $phpgw->link('/admin/currentusers.php') . '">' . lang('View sessions') . "</a><br>\n";
|
|
|
|
echo '<a href="' . $phpgw->link('/admin/accesslog.php') . '">' . lang('View Access Log') . "</a><br>\n";
|
2000-09-23 07:31:51 +02:00
|
|
|
|
2001-03-09 00:32:22 +01:00
|
|
|
section_end();
|
2000-09-23 07:31:51 +02:00
|
|
|
}
|
2001-03-25 03:07:28 +02:00
|
|
|
?>
|