[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] CVS: squirrelmail/src options.php,1.132,1.133
From:       Tomas Kuliavas <tokul () users ! sourceforge ! net>
Date:       2004-07-31 12:35:46
Message-ID: E1Bqt5W-00040B-SP () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/squirrelmail/squirrelmail/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15126/src

Modified Files:
	options.php 
Log Message:
Adding size limit to signature. Max size is the same as db BLOB size.


Index: options.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/src/options.php,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -w -r1.132 -r1.133
--- options.php	5 May 2004 21:23:00 -0000	1.132
+++ options.php	31 Jul 2004 12:35:44 -0000	1.133
@@ -210,6 +210,8 @@
 /*** Next, process anything that needs to be processed. ***/
 /***********************************************************/
 
+$optpage_save_error=array();
+
 if ( isset( $optpage_data ) ) {
     switch ($optmode) {
         case SMOPT_MODE_SUBMIT:
@@ -289,8 +291,19 @@
         if (!isset($frame_top)) {
             $frame_top = '_top';
         }
+
+        if (isset($optpage_save_error) && $optpage_save_error!=array()) {
+            echo "<font color=\"$color[2]\"><b>" . _("Error(s) happened while saving \
your options") . "</b></font><br />\n"; +            echo "<ul>\n";
+            foreach ($optpage_save_error as $error_message) {
+                echo '<li><small>' . $error_message . "</small></li>\n";
+            }
+            echo "</ul>\n";
+            echo '<b>' . _("Some of your preference changes are not applied.") . \
"</b><br />\n"; +        } else {
         /* Display a message indicating a successful save. */
         echo '<b>' . _("Successfully Saved Options") . ": $optpage_name</b><br>\n";
+        }
 
         /* If $max_refresh != SMOPT_REFRESH_NONE, provide a refresh link. */
         if ( !isset( $max_refresh ) ) {



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
--
squirrelmail-cvs mailing list
List Address: squirrelmail-cvs@lists.sourceforge.net
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
http://squirrelmail.org/cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic