mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
switched to a new distributed pref and admin which allow add-on apps to have their settings put into the main screens
This commit is contained in:
parent
c7fb5e5d6e
commit
4d69ecc229
48
admin/inc/admin.inc.php
Normal file
48
admin/inc/admin.inc.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
{
|
||||
// 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
|
||||
$img = "/" . $appname . "/images/" . $appname .".gif";
|
||||
if (file_exists($phpgw_info["server"]["server_root"].$img)) {
|
||||
$img = $phpgw_info["server"]["webserver_url"].$img;
|
||||
} else {
|
||||
$img = "/" . $appname . "/images/navbar.gif";
|
||||
if (file_exists($phpgw_info["server"]["server_root"].$img)) {
|
||||
$img=$phpgw_info["server"]["webserver_url"].$img;
|
||||
} else {
|
||||
$img = "";
|
||||
}
|
||||
}
|
||||
|
||||
// Show the header for the section
|
||||
section_start("Administration",$img);
|
||||
|
||||
|
||||
// actual items in this section
|
||||
echo "<a href='" . $phpgw->link("accounts.php") . "'>";
|
||||
echo lang("User accounts")."</a><br>\n";
|
||||
|
||||
echo "<a href='" . $phpgw->link("groups.php") . "'>";
|
||||
echo lang("User groups")."</a><br>\n";
|
||||
|
||||
echo "<p>\n";
|
||||
|
||||
echo "<a href='" . $phpgw->link("applications.php") . "'>";
|
||||
echo lang("Applications")."</a><br>\n";
|
||||
|
||||
echo "<p>\n";
|
||||
|
||||
echo "<a href='" . $phpgw->link("currentusers.php") . "'>";
|
||||
echo lang("View sessions")."</a><br>\n";
|
||||
|
||||
echo "<a href='" . $phpgw->link("accesslog.php") . "'>";
|
||||
echo lang("View Access Log")."</a><br>\n";
|
||||
|
||||
section_end();
|
||||
}
|
||||
?>
|
@ -43,17 +43,16 @@
|
||||
|
||||
// The account stuff that should be at the top of the list
|
||||
$appname = "preferences";
|
||||
$f = $phpgw_info["server"]["server_root"] . "/" . $appname . "/inc/prefrences.inc.php";
|
||||
$f = $phpgw_info["server"]["server_root"] . "/" . $appname . "/inc/preferences.inc.php";
|
||||
if (file_exists($f)) {
|
||||
include($f);
|
||||
}
|
||||
while (list(,$appname) = each($phpgw_info["user"]["app_perms"])) {
|
||||
$f = $phpgw_info["server"]["server_root"] . "/" . $appname . "/inc/prefrences.inc.php";
|
||||
$f = $phpgw_info["server"]["server_root"] . "/" . $appname . "/inc/preferences.inc.php";
|
||||
if (file_exists($f)) {
|
||||
echo "<p>\n";
|
||||
include($f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
||||
?>
|
Loading…
Reference in New Issue
Block a user