X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fimap_general.php;h=8d6d27ee218abf35964e7e5f28e610fc48636466;hb=42b5e8aad02786059e83d41acfb77133ef3b73f3;hp=958e835d17f214daece6f07ae2285889911c72f0;hpb=c4de9863a2cd0e8da286a7d8fa5bf407e3a4d12f;p=squirrelmail.git
diff --git a/functions/imap_general.php b/functions/imap_general.php
index 958e835d..8d6d27ee 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 '