From 7b086a8035ee92e3afe42857f6877522c13f2c76 Mon Sep 17 00:00:00 2001 From: gustavf Date: Wed, 28 Jun 2000 13:07:00 +0000 Subject: [PATCH] Added basic framework for plugin support. Very little code so far. Two hooks in page_header. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@566 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/page_header.php | 8 +++++++ functions/plugin.php | 46 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 functions/plugin.php diff --git a/functions/page_header.php b/functions/page_header.php index 663c369f..1af6a86f 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -14,6 +14,8 @@ include ("../functions/prefs.php"); if (!isset($i18n_php)) include ("../functions/i18n.php"); + if (!isset($plugin_php)) + include ("../functions/plugin.php"); // Check to see if gettext is installed if (function_exists("_")) { @@ -48,6 +50,9 @@ $theme_css); echo "\n"; } + + do_hook ("generic_header"); + echo "$title"; echo "\n\n"; } @@ -80,6 +85,9 @@ echo " " . _("Folders") . "  \n"; echo " " . _("Options") . "  \n"; echo " " . _("Help") . "  "; + + do_hook("menuline"); + echo " \n"; echo " SquirrelMail\n"; echo " \n"; diff --git a/functions/plugin.php b/functions/plugin.php new file mode 100644 index 00000000..c1c4cf2a --- /dev/null +++ b/functions/plugin.php @@ -0,0 +1,46 @@ + -- 2.25.1