From df4162cbfaa145df9848b7868d6930a587fcb84a Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 19 Mar 2006 11:44:34 +0000 Subject: [PATCH] explained extra loaded libraries 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 | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/addressbook.php b/src/addressbook.php index 50b16a92..d460f637 100644 --- a/src/addressbook.php +++ b/src/addressbook.php @@ -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 '' . "\n"; abook_create_form($form_url,'addaddr',_("Add to address book"),_("Add address"),$defdata); echo "\n"; -/* Add hook for anything that wants on the bottom */ +/* Hook for extra address book blocks */ echo "\n"; do_hook('addressbook_bottom'); echo "\n\n"; -- 2.25.1