From fb0bcfdbbcbd1bfb5e8183c4b48b0ef184d21dbb Mon Sep 17 00:00:00 2001 From: kink Date: Fri, 20 Jul 2007 17:13:05 +0000 Subject: [PATCH] drop some unneeded globals / variables git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12564 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/filters/filters.php | 4 ++-- plugins/info/functions.php | 2 +- plugins/listcommands/functions.php | 3 +-- plugins/sent_subfolders/setup.php | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/filters/filters.php b/plugins/filters/filters.php index 170a97de..dc53c9ab 100644 --- a/plugins/filters/filters.php +++ b/plugins/filters/filters.php @@ -210,7 +210,7 @@ function start_filters($hook_args) { $spamfilters = load_spam_filters(); $AllowSpamFilters = false; - foreach($spamfilters as $filterskey=>$value) { + foreach($spamfilters as $value) { if ($value['enabled'] == SMPREF_ON) { $AllowSpamFilters = true; break; @@ -429,7 +429,7 @@ function spam_filters($imap_stream) { $run = false; - foreach ($filters as $Key => $Value) { + foreach ($filters as $Value) { if ($Value['enabled']) { $run = true; break; diff --git a/plugins/info/functions.php b/plugins/info/functions.php index e48276b6..4b7df25c 100644 --- a/plugins/info/functions.php +++ b/plugins/info/functions.php @@ -50,7 +50,7 @@ function imap_test($imap_stream, $string) { * @access private */ function print_response($response) { - foreach($response as $index=>$value) { + foreach($response as $value) { if (is_array($value)) { print_response($value); } diff --git a/plugins/listcommands/functions.php b/plugins/listcommands/functions.php index 66a4f99b..f2e6b8d2 100644 --- a/plugins/listcommands/functions.php +++ b/plugins/listcommands/functions.php @@ -42,7 +42,6 @@ function get_non_rfc_lists() { */ function plugin_listcommands_optpage_register_block_do() { - global $optpage_blocks, $listcommands_allow_non_rfc_list_management; // only allow management of non-RFC lists if admin deems necessary @@ -64,7 +63,7 @@ function plugin_listcommands_optpage_register_block_do() * internal function that builds mailing list links */ function plugin_listcommands_menu_do() { - global $passed_id, $passed_ent_id, $color, $mailbox, $message, + global $passed_id, $passed_ent_id, $mailbox, $message, $startMessage, $oTemplate, $listcommands_allow_non_rfc_list_management; @include_once(SM_PATH . 'plugins/listcommands/config.php'); diff --git a/plugins/sent_subfolders/setup.php b/plugins/sent_subfolders/setup.php index 5ea8f172..201d34b0 100644 --- a/plugins/sent_subfolders/setup.php +++ b/plugins/sent_subfolders/setup.php @@ -190,7 +190,7 @@ function save_option_sent_subfolders_setting($option) { function sent_subfolders_update_sentfolder() { global $sent_folder, $username; global $sent_subfolders_base, $sent_subfolders_setting; - global $data_dir, $imapServerAddress, $imapPort, $color; + global $data_dir, $imapServerAddress, $imapPort; global $use_sent_subfolders, $move_to_sent; sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); -- 2.25.1