From: philippe_mingo Date: Wed, 12 Dec 2001 08:53:36 +0000 (+0000) Subject: Sintax fix X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=ec5b189b09d56af26254737c16eb61c26449ac29 Sintax fix git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1850 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/display_messages.php b/functions/display_messages.php index 62d31e3a..c599c93d 100644 --- a/functions/display_messages.php +++ b/functions/display_messages.php @@ -12,98 +12,84 @@ * $Id$ */ -/*****************************************************************/ -/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!! ***/ -/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION. ***/ -/*** + Base level indent should begin at left margin, as ***/ -/*** the first line of the function definition below. ***/ -/*** + All identation should consist of four space blocks ***/ -/*** + Tab characters are evil. ***/ -/*** + all comments should use "slash-star ... star-slash" ***/ -/*** style -- no pound characters, no slash-slash style ***/ -/*** + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD ***/ -/*** ALWAYS USE { AND } CHARACTERS!!! ***/ -/*** + Please use ' instead of ", when possible. Note " ***/ -/*** should always be used in _( ) function calls. ***/ -/*** Thank you for your help making the SM code more readable. ***/ -/*****************************************************************/ +function error_username_password_incorrect() { -function error_username_password_incorrect($color) { echo '
'. - "". - ''. - "'. + '
". - '
ERROR
'. - '
'. - '

' . _("Unknown user or password incorrect.") . - '
' . - _("Click here to try again") . - '.
'. - '
'. + ''. + ''. + '' . + ''. '
' . _("ERROR") . '
'. + '

' . _("Unknown user or password incorrect.") . + '
' . + _("Click here to try again") . + '.
'. + '
'. ''; +} +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 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-2000."), $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 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 '
'; - } -?> +function plain_error_message($message, $color) { + echo '
'; + echo ""; + echo ' '; + echo " '; + echo '
"; + echo "
" . _("ERROR") . '
'; + echo '
'; + echo "

$message"; + echo '
'; + echo '
'; +} + +?> \ No newline at end of file