mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
263fdedd2a
places that were including the footer.inc.php to use the function. Re-arrange phpgw.inc.php to include optional classes after reading the DB config misc bugfixes.
59 lines
2.4 KiB
PHP
Executable File
59 lines
2.4 KiB
PHP
Executable File
<?php
|
|
/**************************************************************************\
|
|
* phpGroupWare - preferences *
|
|
* http://www.phpgroupware.org *
|
|
* Written by Joseph Engo <jengo@phpgroupware.org> *
|
|
* -------------------------------------------- *
|
|
* This program is free software; you can redistribute it and/or modify it *
|
|
* under the terms of the GNU General Public License as published by the *
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
* option) any later version. *
|
|
\**************************************************************************/
|
|
|
|
/* $Id$ */
|
|
|
|
//$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
|
|
|
$phpgw_info["flags"]["currentapp"] = "preferences";
|
|
include("../header.inc.php");
|
|
if ($phpgw_info["user"]["apps"]["anonymous"]) {
|
|
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/"));
|
|
exit;
|
|
}
|
|
|
|
// This func called by the includes to dump a row header
|
|
function section_start($name="",$icon="") {
|
|
global $phpgw,$phpgw_info;
|
|
//echo "<TABLE WIDTH=\"75%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\" BGCOLOR=\"".$phpgw_info["theme"]["navbar_bg"]."\">\n";
|
|
echo "<TABLE WIDTH=\"75%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">\n";
|
|
//echo "<TR BGCOLOR=\"".$phpgw_info["theme"]["navbar_bg"]."\">";
|
|
echo "<TR>";
|
|
if ($icon != "") {
|
|
echo "<TD WIDTH='5%'><img src='".$icon."' ALT='[Icon]' align='middle'></TD>";
|
|
echo "<TD><fontsize='+2'>".lang($name)."</font></TD>";
|
|
} else {
|
|
echo "<TD colspan='2'><font size='+2'>$name</font></TD>";
|
|
}
|
|
echo "</TR>\n";
|
|
echo "<TR><TD colspan='2'>\n";
|
|
}
|
|
function section_end() {
|
|
echo "</TD></TR></TABLE>\n\n";
|
|
}
|
|
|
|
// The account stuff that should be at the top of the list
|
|
$appname = "preferences";
|
|
$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/preferences.inc.php";
|
|
if (file_exists($f)) {
|
|
echo "<p>\n";
|
|
include($f);
|
|
}
|
|
}
|
|
$phpgw->common->phpgw_footer();
|
|
?>
|