From c115717da0b8ac05870957b8b24009e3864eac75 Mon Sep 17 00:00:00 2001 From: seek3r Date: Fri, 15 Dec 2000 21:56:09 +0000 Subject: [PATCH] converting to the new hooks system --- ...eferences.inc.php => hook_preferences.inc.php} | 0 admin/inc/{admin.inc.php => hook_admin.inc.php} | 0 ...eferences.inc.php => hook_preferences.inc.php} | 0 ...eferences.inc.php => hook_preferences.inc.php} | 3 ++- preferences/index.php | 15 ++------------- 5 files changed, 4 insertions(+), 14 deletions(-) rename addressbook/inc/{preferences.inc.php => hook_preferences.inc.php} (100%) rename admin/inc/{admin.inc.php => hook_admin.inc.php} (100%) rename calendar/inc/{preferences.inc.php => hook_preferences.inc.php} (100%) rename preferences/inc/{preferences.inc.php => hook_preferences.inc.php} (91%) diff --git a/addressbook/inc/preferences.inc.php b/addressbook/inc/hook_preferences.inc.php similarity index 100% rename from addressbook/inc/preferences.inc.php rename to addressbook/inc/hook_preferences.inc.php diff --git a/admin/inc/admin.inc.php b/admin/inc/hook_admin.inc.php similarity index 100% rename from admin/inc/admin.inc.php rename to admin/inc/hook_admin.inc.php diff --git a/calendar/inc/preferences.inc.php b/calendar/inc/hook_preferences.inc.php similarity index 100% rename from calendar/inc/preferences.inc.php rename to calendar/inc/hook_preferences.inc.php diff --git a/preferences/inc/preferences.inc.php b/preferences/inc/hook_preferences.inc.php similarity index 91% rename from preferences/inc/preferences.inc.php rename to preferences/inc/hook_preferences.inc.php index dabf9de779..f07e67ce4d 100644 --- a/preferences/inc/preferences.inc.php +++ b/preferences/inc/hook_preferences.inc.php @@ -1,5 +1,6 @@ \n"; $img = "/" . $appname . "/images/" . $appname .".gif"; if (file_exists($phpgw_info["server"]["server_root"].$img)) { $img = $phpgw_info["server"]["webserver_url"].$img; @@ -15,7 +16,7 @@ // Actual content - echo "
link("changepassword.php") . "\">" + echo "link("changepassword.php") . "\">" . lang("change your password") . ""; echo "
link("changetheme.php") . "\">" . lang("select different theme") . ""; diff --git a/preferences/index.php b/preferences/index.php index e73bf31762..c49fadf3ec 100755 --- a/preferences/index.php +++ b/preferences/index.php @@ -37,18 +37,7 @@ echo "\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 "

\n"; - include($f); - } - } + $phpgw->common->hook(); + $phpgw->common->phpgw_footer(); ?>