X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search.php;h=55dc5cae61b509b4a694783bcdee8e52f06bf408;hb=10455998ff36ac23c25799914656fd4f13c14b6f;hp=d89d118b5f4043f2c6d6b76dd571b0472a526a7f;hpb=ef8703220ec8e7573417b08881f636082e4b8d58;p=squirrelmail.git diff --git a/src/addrbook_search.php b/src/addrbook_search.php index d89d118b..55dc5cae 100644 --- a/src/addrbook_search.php +++ b/src/addrbook_search.php @@ -100,7 +100,7 @@ function bcc_address($addr) { print "\n"; - while(list($key, $row) = each($res)) { + while(list($undef, $row) = each($res)) { printf("". "To | ". "Cc | ". @@ -125,16 +125,21 @@ function bcc_address($addr) { /* ================= End of functions ================= */ session_start(); - - if(!isset($logged_in)) { - echo _("You must login first."); - exit; - } - if(!isset($username) || !isset($key)) { - echo _("You need a valid user and password to access this page!"); + + if (!isset($i18n_php)) + include("../functions/i18n.php"); + + if(!isset($logged_in) || !isset($username) || !isset($key)) { + include ("../themes/default_theme.php"); + include ("../functions/display_messages.php"); + printf('', + $color[8], $color[4], $color[7], $color[7], $color[7]); + plain_error_message(_("You need a valid user and password to access this page!") + . "
" + . _("Click here to log back in.") . ".", $color); + echo ""; exit; } - if (!isset($config_php)) include("../config/config.php"); if (!isset($array_php)) @@ -190,7 +195,7 @@ function bcc_address($addr) { printf("