explained extra loaded libraries
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 19 Mar 2006 11:44:34 +0000 (11:44 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 19 Mar 2006 11:44:34 +0000 (11:44 +0000)
removed extraction of otp, key, username, delimiter and base_uri vars

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10996 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/addressbook.php

index 50b16a9229865842540c6ddc9bc152add5dce65b..d460f6379acb59f01e7b0314601b8f9fcf79ec2c 100644 (file)
@@ -20,17 +20,14 @@ define('SM_PATH','../');
 
 /** SquirrelMail required files. */
 include_once(SM_PATH . 'include/validate.php');
-require_once(SM_PATH . 'functions/display_messages.php');
-require_once(SM_PATH . 'functions/addressbook.php');
-require_once(SM_PATH . 'functions/forms.php');
+/* plain_error_message() */
+include_once(SM_PATH . 'functions/display_messages.php');
+/* address book functions */
+include_once(SM_PATH . 'functions/addressbook.php');
+/* form functions */
+include_once(SM_PATH . 'functions/forms.php');
 
 /** lets get the global vars we may need */
-sqgetGlobalVar('key',       $key,           SQ_COOKIE);
-
-sqgetGlobalVar('username',  $username,      SQ_SESSION);
-sqgetGlobalVar('onetimepad',$onetimepad,    SQ_SESSION);
-sqgetGlobalVar('base_uri',  $base_uri,      SQ_SESSION);
-sqgetGlobalVar('delimiter', $delimiter,     SQ_SESSION);
 
 /* From the address form */
 sqgetGlobalVar('addaddr',   $addaddr,   SQ_POST);
@@ -390,7 +387,7 @@ echo '<a name="AddAddress"></a>' . "\n";
 abook_create_form($form_url,'addaddr',_("Add to address book"),_("Add address"),$defdata);
 echo "</form>\n";
 
-/* Add hook for anything that wants on the bottom */
+/* Hook for extra address book blocks */
 echo "<!-- start of addressbook_bottom hook-->\n";
 do_hook('addressbook_bottom');
 echo "\n<!-- end of addressbook_bottom hook-->\n";