From 06ad27a2ea5e8cef7e172f2d39a5c43b06dd2410 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Thu, 3 Aug 2000 15:53:53 +0000 Subject: [PATCH] added a bunch more hooks git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@673 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- doc/plugin.txt | 15 +++++++++++++-- src/help.php | 3 +++ src/login.php | 1 + src/read_body.php | 2 ++ src/right_main.php | 3 +++ src/search.php | 3 +++ 6 files changed, 25 insertions(+), 2 deletions(-) diff --git a/doc/plugin.txt b/doc/plugin.txt index 99e5998d..0a5183a3 100644 --- a/doc/plugin.txt +++ b/doc/plugin.txt @@ -89,8 +89,19 @@ List of hooks loading_prefs src/load_prefs.php mailbox_index_before functions/mailbox_display.php mailbox_index_after functions/mailbox_display.php - - + right_main_after_header src/right_main.php + right_main_bottom src/right_main.php + login_top src/login.php + login_bottom src/login.php + read_body_top src/read_body.php + read_body_bottom src/read_body.php + search_before_form src/search.php + search_after_form src/search.php + search_bottom src/search.php + help_top src/help.php + help_bottom src/help.php + help_chapter src/help.php + Options ------- diff --git a/src/help.php b/src/help.php index aa0647fa..e7632938 100644 --- a/src/help.php +++ b/src/help.php @@ -91,6 +91,7 @@
+
\n"; echo "
" . _("Table of Contents") . "

"; + do_hook("help_chapter"); echo "
    \n"; for ($i=0; $i < count($helpdir); $i++) { $doc = file("../help/$user_language/$helpdir[$i]"); @@ -186,6 +188,7 @@ echo "
    " . _("Top") . "
    "; } } + do_hook("help_bottom"); ?>
 
diff --git a/src/login.php b/src/login.php index 4b1e47c6..22b739ad 100644 --- a/src/login.php +++ b/src/login.php @@ -100,6 +100,7 @@ echo "\n"; echo "\n"; echo "\n"; + do_hook("login_bottom"); ?> diff --git a/src/read_body.php b/src/read_body.php index 740dc714..b1041c61 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -217,6 +217,7 @@ $from_name = decodeHeader(htmlspecialchars($message->header->from)); $subject = decodeHeader(htmlspecialchars(stripslashes($message->header->subject))); + do_hook("read_body_top"); echo "
"; echo "\n"; echo " "; echo "
"; @@ -341,5 +342,6 @@ echo "
 
\n"; + do_hook("read_body_bottom"); sqimap_logout($imapConnection); ?> diff --git a/src/right_main.php b/src/right_main.php index 636ff5b1..8db65bc6 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -74,6 +74,8 @@ sqimap_mailbox_select($imapConnection, $mailbox); displayPageHeader($color, $mailbox); + do_hook("right_main_after_header"); + if ($just_logged_in == 1 && strlen(trim($motd)) > 0) { echo "

"; echo "
"; @@ -113,6 +115,7 @@ session_register("numMessages"); } + do_hook("right_main_bottom"); // close the connection sqimap_logout ($imapConnection); ?> diff --git a/src/search.php b/src/search.php index 2fb69f6d..de730d09 100644 --- a/src/search.php +++ b/src/search.php @@ -28,6 +28,7 @@ displayPageHeader($color, $mailbox); $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); + do_hook("search_before_form"); echo "
@@ -91,10 +92,12 @@ echo "
\n"; echo ""; echo "
"; + do_hook("search_after_form"); if ($where && $what) { sqimap_mailbox_select($imapConnection, $mailbox); sqimap_search($imapConnection, $where, $what, $mailbox, $color); } + do_hook("search_bottom"); sqimap_logout ($imapConnection); ?> -- 2.25.1