Added hook at the bottom named addressbook_bottom for import plugin.
[squirrelmail.git] / src / addressbook.php
index c98549bfc26368def2189d93239cedbef1155927..d8c7d4537788852051b90f45d3646155b5666801 100644 (file)
@@ -2,6 +2,9 @@
    /**
     **  addressbook.php
     **
+    **  Copyright (c) 1999-2000 The SquirrelMail development team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.
+    **
     **  Manage personal address book.
     **
     **/
 
 
    // Display the "new address" form
-   printf("<FORM ACTION=\"%s\" METHOD=\"POST\">\n", $PHP_SELF);
+   printf("<FORM ACTION=\"%s\" NAME=f_add METHOD=\"POST\">\n", $PHP_SELF);
    print "<TABLE WIDTH=100% COLS=1 ALIGN=CENTER>\n";
    print "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER>\n<STRONG>";
    printf(_("Add to %s"), $abook->localbackendname);
    address_form("addaddr", _("Add address"), $defdata);
    print "</FORM>";
 
+   // Add hook for anything that wants on the bottom
+   do_hook("addressbook_bottom");
 ?>
-<!-- ----------------- csv import form --------------------- -->
-  
-<FORM ENCTYPE="multipart/form-data" ACTION="addressbook_csvimport.php" METHOD=POST>
-<INPUT TYPE="hidden" NAME="max_file_size" value="5000">
-Import CSV File: <INPUT NAME="smusercsv" TYPE="file">
-<INPUT TYPE="submit" VALUE="Import CSV File">
-</FORM>
 
 </BODY></HTML>