added a bunch more hooks
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 3 Aug 2000 15:53:53 +0000 (15:53 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 3 Aug 2000 15:53:53 +0000 (15:53 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@673 7612ce4b-ef26-0410-bec9-ea0150e637f0

doc/plugin.txt
src/help.php
src/login.php
src/read_body.php
src/right_main.php
src/search.php

index 99e5998d4cd4a783657f0a70e8b75fbbca88ee5a..0a5183a3d23acc159e0e8565a5ec4331e26ceb78 100644 (file)
@@ -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
   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
 -------
 
 Options
 -------
 
index aa0647fabb594b0f96e77c072a17f0e0f9d60398..e7632938a75062ce0b96fff6dbddd447c05c18ff 100644 (file)
@@ -91,6 +91,7 @@
    <center><b><?php echo _("Help") ?></b></center>
 </td></tr></table>
 
    <center><b><?php echo _("Help") ?></b></center>
 </td></tr></table>
 
+<? do_hook("help_top") ?>
 
 <table width=90% cellpadding=0 cellspacing=10 border=0 align=center><tr><td>
 <?php
 
 <table width=90% cellpadding=0 cellspacing=10 border=0 align=center><tr><td>
 <?php
       if (!$chapter) {
          echo "<table cellpadding=0 cellspacing=0 border=0 align=center><tr><td>\n";
          echo "<b><center>" . _("Table of Contents") . "</center></b><br>";
       if (!$chapter) {
          echo "<table cellpadding=0 cellspacing=0 border=0 align=center><tr><td>\n";
          echo "<b><center>" . _("Table of Contents") . "</center></b><br>";
+         do_hook("help_chapter");
          echo "<ol>\n";
          for ($i=0; $i < count($helpdir); $i++) {
             $doc = file("../help/$user_language/$helpdir[$i]");
          echo "<ol>\n";
          for ($i=0; $i < count($helpdir); $i++) {
             $doc = file("../help/$user_language/$helpdir[$i]");
          echo "<br><center><a href=\"#pagetop\">" . _("Top") . "</a></center>";
       }
    }
          echo "<br><center><a href=\"#pagetop\">" . _("Top") . "</a></center>";
       }
    }
+   do_hook("help_bottom"); 
 ?>
 <tr><td bgcolor="<?php echo $color[0] ?>">&nbsp;</td></tr></table>
 <td></tr></table>
 ?>
 <tr><td bgcolor="<?php echo $color[0] ?>">&nbsp;</td></tr></table>
 <td></tr></table>
index 4b1e47c69d2e0b47aac83446096a3dd0accb5984..22b739ad85a5558820ed5b9db691544ee6d5dd8f 100644 (file)
    echo "</TABLE>\n";
    echo "<input type=hidden name=just_logged_in value=1>\n";
    echo "</FORM>\n";
    echo "</TABLE>\n";
    echo "<input type=hidden name=just_logged_in value=1>\n";
    echo "</FORM>\n";
+   do_hook("login_bottom");
 ?>
 </BODY>
 </HTML>
 ?>
 </BODY>
 </HTML>
index 740dc714703a220f99c7ba1ee5ea4b6db87c20aa..b1041c612bedf52249a4588f307e42d0f50d3e22 100644 (file)
    $from_name = decodeHeader(htmlspecialchars($message->header->from));
    $subject = decodeHeader(htmlspecialchars(stripslashes($message->header->subject)));
 
    $from_name = decodeHeader(htmlspecialchars($message->header->from));
    $subject = decodeHeader(htmlspecialchars(stripslashes($message->header->subject)));
 
+   do_hook("read_body_top");
    echo "<BR>";
    echo "<TABLE COLS=1 CELLSPACING=0 WIDTH=100% BORDER=0 ALIGN=CENTER CELLPADDING=0>\n";
    echo "   <TR><TD BGCOLOR=\"$color[9]\" WIDTH=100%>";
    echo "<BR>";
    echo "<TABLE COLS=1 CELLSPACING=0 WIDTH=100% BORDER=0 ALIGN=CENTER CELLPADDING=0>\n";
    echo "   <TR><TD BGCOLOR=\"$color[9]\" WIDTH=100%>";
    echo "   <TR><TD BGCOLOR=\"$color[9]\">&nbsp;</TD></TR>";
    echo "</TABLE>\n";
 
    echo "   <TR><TD BGCOLOR=\"$color[9]\">&nbsp;</TD></TR>";
    echo "</TABLE>\n";
 
+   do_hook("read_body_bottom");
    sqimap_logout($imapConnection);
 ?>
    sqimap_logout($imapConnection);
 ?>
index 636ff5b11001da5cf2be233dc467bdf2ffe0a7f4..8db65bc666fbaeef84aa1047d794ae6c086ef9c9 100644 (file)
@@ -74,6 +74,8 @@
    sqimap_mailbox_select($imapConnection, $mailbox);
    displayPageHeader($color, $mailbox);
 
    sqimap_mailbox_select($imapConnection, $mailbox);
    displayPageHeader($color, $mailbox);
 
+   do_hook("right_main_after_header");
+   
    if ($just_logged_in == 1 && strlen(trim($motd)) > 0) {
       echo "<center><br>";
       echo "<table width=70% cellpadding=0 cellspacing=0 border=0><tr><td bgcolor=\"$color[9]\">";
    if ($just_logged_in == 1 && strlen(trim($motd)) > 0) {
       echo "<center><br>";
       echo "<table width=70% cellpadding=0 cellspacing=0 border=0><tr><td bgcolor=\"$color[9]\">";
       session_register("numMessages");
    }
 
       session_register("numMessages");
    }
 
+   do_hook("right_main_bottom");
    // close the connection
    sqimap_logout ($imapConnection);
 ?>
    // close the connection
    sqimap_logout ($imapConnection);
 ?>
index 2fb69f6da38091833ad80ad12e354b3b9381d01f..de730d096deb3a7f7bbff3d35b934ae8a65da7e3 100644 (file)
@@ -28,6 +28,7 @@
    displayPageHeader($color, $mailbox);
    $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 
    displayPageHeader($color, $mailbox);
    $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 
+   do_hook("search_before_form");
    echo "<br>
       <table width=95% align=center cellpadding=2 cellspacing=0 border=0>
       <tr><td bgcolor=\"$color[0]\">
    echo "<br>
       <table width=95% align=center cellpadding=2 cellspacing=0 border=0>
       <tr><td bgcolor=\"$color[0]\">
    echo "   </TABLE>\n"; 
    echo "</FORM>";
    echo "</td></tr></table>";
    echo "   </TABLE>\n"; 
    echo "</FORM>";
    echo "</td></tr></table>";
+   do_hook("search_after_form");
    if ($where && $what) {   
       sqimap_mailbox_select($imapConnection, $mailbox);
       sqimap_search($imapConnection, $where, $what, $mailbox, $color);
    }
    if ($where && $what) {   
       sqimap_mailbox_select($imapConnection, $mailbox);
       sqimap_search($imapConnection, $where, $what, $mailbox, $color);
    }
+   do_hook("search_bottom");
    sqimap_logout ($imapConnection);
 ?>
 </body></html>
    sqimap_logout ($imapConnection);
 ?>
 </body></html>