X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fdisplay_messages.php;h=3c8e72e6b054e12b7ef7dba14a3ae46a21877857;hb=c85d598082b7051b6272a5e36cb7c02ebd16b535;hp=87dbab9b54c7326111116e124e4b5ac4b61d1c6c;hpb=907165cad70ac37852b5bfbb095c309571a5c035;p=squirrelmail.git diff --git a/functions/display_messages.php b/functions/display_messages.php index 87dbab9b..3c8e72e6 100644 --- a/functions/display_messages.php +++ b/functions/display_messages.php @@ -1,68 +1,95 @@ -"; - echo ""; - echo " "; - echo " "; - echo "
"; - echo "
ERROR
"; - echo "
"; - echo "

Unknown user or password incorrect.
Click here to try again.
"; - echo "
"; - echo ""; - } +/** + * display_messages.php + * + * Copyright (c) 1999-2002 The SquirrelMail Project Team + * Licensed under the GNU GPL. For full terms see the file COPYING. + * + * This contains all messages, including information, error, and just + * about any other message you can think of. + * + * $Id$ + */ + +function error_username_password_incorrect() { - function general_info($motd, $org_logo, $version, $org_name) { - echo "
"; - echo ""; - echo " "; - echo " "; - echo "
"; - echo "
Welcome to $org_name's WebMail system
"; - echo "
"; - echo "
"; - echo "
Running SquirrelMail version $version (c) 1999 by Nathan and Luke Ehresman.
"; - echo "
"; - echo " "; - echo " "; - echo " "; - echo " "; - echo " "; - echo "
"; - if (strlen($org_logo) > 3) - echo " "; - else - echo " $org_name"; - echo "
"; - echo " $motd"; - echo "
"; - echo "
"; - echo ""; - } + echo '
'. + ''. + ''. + ''. + '' . + ''. + '
' . _("ERROR") . '
'. + '

' . _("Unknown user or password incorrect.") . + '
' . + _("Click here to try again") . + '.
'. + '
'. + ''; +} - function messages_deleted_message($mailbox, $sort, $startMessage) { - $urlMailbox = urlencode($mailbox); - echo "
"; - echo ""; - echo " "; - echo " "; - echo "
"; - echo "
Messages Deleted
"; - echo "
"; - echo "

The selected messages were deleted successfully.
\n"; - echo " "; - echo " Click here to return to $mailbox"; - echo " ."; - echo "
"; - echo "
"; - echo ""; +function general_info($motd, $org_logo, $version, $org_name, $color) { + echo '
'; + echo "
"; + echo ''; + echo ' '; + echo " '; + echo '
"; + echo '
'; + printf (_("Welcome to %s's WebMail system"), $org_name); + echo '
'; + echo '
'; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo '
'; + if ( strlen($org_logo) > 3 ) { + echo " "; + } else { + echo " $org_name"; } + echo '
'; + printf (_("Running SquirrelMail version %s (c) 1999-2001."), $version); + echo '

'; + echo '
'; + echo " $motd"; + echo '
'; + echo '
'; + echo '
'; +} + +function error_message($message, $mailbox, $sort, $startMessage, $color) { + $urlMailbox = urlencode($mailbox); + + echo '
'; + echo ""; + echo ' '; + echo " '; + echo '
"; + echo "
" . _("ERROR") . '
'; + echo '
'; + echo "

$message
\n"; + echo '
'; + echo " "; + printf (_("Click here to return to %s"), $mailbox); + echo '.'; + echo '
'; +} + +function plain_error_message($message, $color) { + echo '
'; + echo ""; + echo ' '; + echo " '; + echo '
"; + echo "
" . _("ERROR") . '
'; + echo '
'; + echo "

$message"; + echo '
'; + echo '
'; +} + ?>