~ubuntu-branches/ubuntu/hardy/squirrelmail/hardy-updates

« back to all changes in this revision

Viewing changes to functions/display_messages.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst, Jeroen van Wolffelaar, Thijs Kinkhorst
  • Date: 2005-08-15 21:06:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050815210600-qxvat452exjqg64j
Tags: 2:1.4.5-2
[ Jeroen van Wolffelaar ]
* Restore squirrelmail-configure manpage, accidently dropped in -1
* Use debhelper compat level 4

[ Thijs Kinkhorst ]
* Drop obsolete symlink for attachment dir.
* Do not ship upstream README, which contains hardly any information
  relevant to Debian. Extend README.Debian a bit. Thanks W. Borgert.
* Add years to copyright statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 * This contains all messages, including information, error, and just
10
10
 * about any other message you can think of.
11
11
 *
12
 
 * @version $Id: display_messages.php,v 1.57.2.13 2004/12/27 15:03:43 kink Exp $
 
12
 * @version $Id: display_messages.php,v 1.57.2.16 2005/03/21 22:18:32 kink Exp $
13
13
 * @package squirrelmail
14
14
 */
15
15
 
57
57
 
58
58
function logout_error( $errString, $errTitle = '' ) {
59
59
    global $frame_top, $org_logo, $org_name, $org_logo_width, $org_logo_height,
60
 
           $hide_sm_attributions, $version, $squirrelmail_language;
 
60
           $hide_sm_attributions, $version, $squirrelmail_language, $color;
61
61
 
62
62
    $base_uri = sqm_baseuri();
63
63
 
79
79
        $frame_top = '_top';
80
80
    }
81
81
 
82
 
    // Since $color never is set, this is always true
83
82
    if ( !isset( $color ) ) {
84
83
        $color = array();
85
84
        $color[0]  = '#dcdcdc';  /* light gray    TitleBar               */
108
107
    }
109
108
    echo ( $hide_sm_attributions ? '' :
110
109
            '<small>' . sprintf (_("SquirrelMail version %s"), $version) . '<br />'.
111
 
            _("By the SquirrelMail Development Team") . "<br /></small>\n" ).
 
110
            _("By the SquirrelMail Project Team") . "<br /></small>\n" ).
112
111
         '<table cellspacing="1" cellpadding="0" bgcolor="'.$color[1].'" width="70%">'.
113
112
         '<tr><td>'.
114
113
         '<table width="100%" border="0" bgcolor="'.$color[4].'" align="center">'.
164
163
         '</td></tr></table></td></tr></table>';
165
164
}
166
165
 
 
166
/**
 
167
 * Adds message that informs about non fatal error that can happen while saving preferences
 
168
 * @param string $message error message
 
169
 * @since 1.5.1 and 1.4.5
 
170
 */
 
171
function error_option_save($message) {
 
172
    global $optpage_save_error;
 
173
 
 
174
    if (! is_array($optpage_save_error) )
 
175
        $optpage_save_error=array();
 
176
 
 
177
    $optpage_save_error=array_merge($optpage_save_error,array($message));
 
178
}
167
179
// vim: et ts=4
168
 
?>
 
 
b'\\ No newline at end of file'
 
180
?>