[sork] Patch to respect config/menu.php.
John Dalbec
jpdalbec at ysu.edu
Mon Nov 24 08:43:49 PST 2003
This patch requires menu.php in all the Sork main pages, so that if the
administrator creates a config/menu.php file, it will be respected. It also
modifies accounts/lib/base.php to prevent a fatal error loading the page.
John
-------------- next part --------------
--- /var/www/html/horde-RELENG/accounts/lib/base.php Mon Jan 20 01:38:04 2003
+++ accounts/lib/base.php Mon Nov 24 11:16:40 2003
@@ -45,6 +45,7 @@
// Browser detection library
require_once HORDE_BASE . '/lib/Browser.php';
+$browser = new Browser();
// Don't allow access unless there is a Horde login
if (!Auth::getAuth()) {
--- /var/www/html/horde-RELENG/accounts/main.php Sun Jan 19 01:53:16 2003
+++ accounts/main.php Mon Nov 24 11:01:58 2003
@@ -24,6 +24,7 @@
}
include $registry->getTemplatePath() . '/common-header.inc';
+require $registry->getFileRoot() . '/menu.php';
require $registry->getFileRoot() . '/status.php';
include $registry->getTemplatePath() . '/main.inc';
include ACCOUNTS_BASE . '/templates/common-footer.inc';
--- /var/www/html/horde-RELENG/forwards/main.php Mon Jan 20 00:30:42 2003
+++ forwards/main.php Mon Nov 24 11:02:20 2003
@@ -91,6 +91,7 @@
include_once $registry->getTemplatePath('horde') . '/javascript/open_help_win.js';
require $registry->getTemplatePath() . '/common-header.inc';
+ require $registry->getFileRoot() . '/menu.php';
require $registry->getFileRoot() . '/status.php';
require $registry->getTemplatePath() . '/main/javascript.inc';
require $registry->getTemplatePath() . '/main/main.inc';
--- /var/www/html/horde-RELENG/passwd/main.php Fri Feb 14 10:41:31 2003
+++ passwd/main.php Mon Nov 24 11:02:29 2003
@@ -235,6 +244,7 @@
require $registry->getTemplatePath() . '/common-header.inc';
require_once $registry->getTemplatePath('horde') . '/javascript/open_help_win.js';
require $registry->getTemplatePath() . '/main/javascript.inc';
+require $registry->getFileRoot() . '/menu.php';
require $registry->getFileRoot() . '/status.php';
require $registry->getTemplatePath() . '/main/main.inc';
require PASSWD_BASE . '/templates/common-footer.inc';
--- /var/www/html/horde-RELENG/vacation/main.php Mon Mar 31 10:04:41 2003
+++ vacation/main.php Mon Nov 24 11:02:56 2003
@@ -101,6 +101,7 @@
include $registry->getTemplatePath() . '/common-header.inc';
include_once $registry->getTemplatePath('horde') . '/javascript/open_help_win.js';
+ require $registry->getFileRoot() . '/menu.php';
require $registry->getFileRoot() . '/status.php';
require $registry->getTemplatePath() . '/main/javascript.inc';
include $registry->getTemplatePath() . '/main/main.inc';
More information about the sork
mailing list