X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fimap_general.php;h=5d59f0c9f6a63c7704a089f95438b8e990ceec04;hp=714946a2bee6d0a919764788cd51e557a0e834bf;hb=b86f98e4d616f433403a56bfee1baab637c977bc;hpb=abc4a428dc4e0be2e302132072c16f29f8aca234
diff --git a/functions/imap_general.php b/functions/imap_general.php
index 714946a2..5d59f0c9 100755
--- a/functions/imap_general.php
+++ b/functions/imap_general.php
@@ -13,9 +13,8 @@
*/
/** Includes.. */
-require_once(SM_PATH . 'functions/page_header.php');
-require_once(SM_PATH . 'functions/auth.php');
-include_once(SM_PATH . 'functions/rfc822address.php');
+
+require_once(SM_PATH . 'functions/rfc822address.php');
/**
@@ -64,11 +63,10 @@ function sqimap_run_command_list ($imap_stream, $query, $handle_errors, &$respon
} else {
global $squirrelmail_language, $color;
set_up_language($squirrelmail_language);
- require_once(SM_PATH . 'functions/display_messages.php');
$string = "\n" .
_("ERROR: No available IMAP stream.") .
"\n";
- error_box($string,$color);
+ error_box($string);
return false;
}
}
@@ -115,11 +113,10 @@ function sqimap_run_command ($imap_stream, $query, $handle_errors, &$response,
} else {
global $squirrelmail_language, $color;
set_up_language($squirrelmail_language);
- require_once(SM_PATH . 'functions/display_messages.php');
$string = "\n" .
_("ERROR: No available IMAP stream.") .
"\n";
- error_box($string,$color);
+ error_box($string);
return false;
}
}
@@ -317,9 +314,8 @@ function sqimap_fread($imap_stream,$iSize,$filter=false,
*/
function sqimap_read_data_list($imap_stream, $tag, $handle_errors,
&$response, &$message, $query = '') {
- global $color, $squirrelmail_language;
+ global $color, $oTemplate, $squirrelmail_language;
set_up_language($squirrelmail_language);
- require_once(SM_PATH . 'functions/display_messages.php');
$string = "\n" .
_("ERROR: Bad function call.") .
"
\n" .
@@ -330,8 +326,8 @@ function sqimap_read_data_list($imap_stream, $tag, $handle_errors,
'sqimap_run_command or sqimap_run_command_list instead
'.
'The following query was issued:
'.
htmlspecialchars($query) . '
' . "
\n";
- error_box($string,$color);
- echo '