[geeklog-cvs] geeklog: Display "successfully saved" in the static pages plugin...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Fri Oct 3 11:20:44 EDT 2008


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/c1e86eb7ad40
changeset: 6413:c1e86eb7ad40
user:      Dirk Haun <dirk at haun-online.de>
date:      Fri Oct 03 17:20:23 2008 +0200
description:
Display "successfully saved" in the static pages plugin (bug #0000644)

diffstat:

46 files changed, 178 insertions(+), 35 deletions(-)
plugins/staticpages/functions.inc                          |   31 ++++++------
plugins/staticpages/language/chinese_simplified_utf-8.php  |    3 +
plugins/staticpages/language/chinese_traditional_utf-8.php |    3 +
plugins/staticpages/language/czech.php                     |    3 +
plugins/staticpages/language/czech_utf-8.php               |    3 +
plugins/staticpages/language/danish.php                    |    3 +
plugins/staticpages/language/danish_utf-8.php              |    3 +
plugins/staticpages/language/dutch.php                     |    3 +
plugins/staticpages/language/dutch_utf-8.php               |    3 +
plugins/staticpages/language/english.php                   |    2 
plugins/staticpages/language/english_utf-8.php             |    2 
plugins/staticpages/language/estonian.php                  |   11 ++--
plugins/staticpages/language/estonian_utf-8.php            |   11 ++--
plugins/staticpages/language/farsi_utf-8.php               |    3 +
plugins/staticpages/language/french_canada.php             |    3 +
plugins/staticpages/language/french_canada_utf-8.php       |    3 +
plugins/staticpages/language/german.php                    |    3 +
plugins/staticpages/language/german_formal.php             |    3 +
plugins/staticpages/language/german_formal_utf-8.php       |    3 +
plugins/staticpages/language/german_utf-8.php              |    3 +
plugins/staticpages/language/hebrew_utf-8.php              |    3 +
plugins/staticpages/language/italian.php                   |    3 +
plugins/staticpages/language/italian_utf-8.php             |    3 +
plugins/staticpages/language/japanese_utf-8.php            |   17 +++---
plugins/staticpages/language/korean.php                    |    3 +
plugins/staticpages/language/korean_utf-8.php              |    3 +
plugins/staticpages/language/polish.php                    |    3 +
plugins/staticpages/language/polish_utf-8.php              |    3 +
plugins/staticpages/language/portuguese_brazil.php         |    3 +
plugins/staticpages/language/portuguese_brazil_utf-8.php   |    3 +
plugins/staticpages/language/slovenian.php                 |    3 +
plugins/staticpages/language/slovenian_utf-8.php           |    3 +
plugins/staticpages/language/spanish.php                   |    3 +
plugins/staticpages/language/spanish_utf-8.php             |    3 +
plugins/staticpages/language/swedish.php                   |    3 +
plugins/staticpages/language/swedish_utf-8.php             |    3 +
plugins/staticpages/language/turkish.php                   |    3 +
plugins/staticpages/language/turkish_utf-8.php             |    3 +
plugins/staticpages/language/ukrainian.php                 |    3 +
plugins/staticpages/language/ukrainian_koi8-u.php          |    3 +
plugins/staticpages/language/ukrainian_utf-8.php           |    3 +
plugins/staticpages/services.inc.php                       |    5 +
public_html/admin/plugins/staticpages/index.php            |    8 ++-
public_html/docs/history                                   |    5 +
public_html/staticpages/index.php                          |   10 +++
system/lib-plugins.php                                     |    6 +-

diffs (truncated from 754 to 300 lines):

diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/functions.inc	Fri Oct 03 17:20:23 2008 +0200
@@ -260,14 +260,15 @@
 /**
 * Prepare static page for display.
 *
-* @param    string  $page       static page id
-* @param    array   $A          static page data
-* @param    string  comment_order sorting of comments
-* @param    string  comment_mode
-* @return   string              HTML for the static page
+* @param    string  $page           static page id
+* @param    array   $A              static page data
+* @param    string  $comment_order  sorting of comments
+* @param    string  $comment_mode   comment mode (nested, flat, etc.)
+* @param    int     $msg            optional message number
+* @return   string                  HTML for the static page
 *
 */
-function SP_displayPage ($page, $A, $comment_order = 'ASC', $comment_mode ='nested')
+function SP_displayPage ($page, $A, $comment_order = 'ASC', $comment_mode = 'nested', $msg = 0)
 {
     global $_CONF, $_TABLES, $_USER,
            $LANG01, $LANG11, $LANG_STATIC, $_IMAGE_TYPE, $_SP_CONF;
@@ -280,6 +281,9 @@
         if ($A['sp_format'] <> 'blankpage') {
             $retval .= COM_siteHeader ('none');
         }
+    }
+    if ($msg > 0) {
+        $retval .= COM_showMessage($msg, 'staticpages');
     }
     if (($A['sp_inblock'] == 1) && ($A['sp_format'] != 'blankpage')) {
         $retval .= COM_startBlock (stripslashes ($A['sp_title']), $A['sp_help'],
@@ -436,14 +440,15 @@
 /**
 * Prepare static page for display
 *
-* @param    string  $page       static page id
-* @param    string  $mode       type of display to return ('', 'print', 'autotag'
-* @param    string  comment_order sorting of comments
-* @param    string  comment_mode
-* @return   string              HTML for the static page
+* @param    string  $page           static page id
+* @param    string  $mode           type of display to return ('', 'print', 'autotag'
+* @param    string  $comment_order  sorting of comments
+* @param    string  $comment_mode   comment mode (nested, flat, etc.)
+* @param    int     $msg            optional message number
+* @return   string                  HTML for the static page
 *
 */
-function SP_returnStaticpage($page='', $mode='', $comment_order = 'ASC', $comment_mode ='nested')
+function SP_returnStaticpage($page='', $mode='', $comment_order = 'ASC', $comment_mode = 'nested', $msg = 0)
 {
     global $_CONF, $_TABLES, $LANG_ACCESS, $LANG_STATIC, $LANG_LOGIN;
 
@@ -462,7 +467,7 @@
         } else if ($mode =='autotag') {
             $retval = SP_render_content(stripslashes($retval['sp_content']), $retval['sp_php']);
         } else {
-            $retval = SP_displayPage($page, $retval, $comment_order, $comment_mode);
+            $retval = SP_displayPage($page, $retval, $comment_order, $comment_mode, $msg);
         }
 
         // increment hit counter for page
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/chinese_simplified_utf-8.php
--- a/plugins/staticpages/language/chinese_simplified_utf-8.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/chinese_simplified_utf-8.php	Fri Oct 03 17:20:23 2008 +0200
@@ -113,6 +113,9 @@
     'submit' => '提交'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/chinese_traditional_utf-8.php
--- a/plugins/staticpages/language/chinese_traditional_utf-8.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/chinese_traditional_utf-8.php	Fri Oct 03 17:20:23 2008 +0200
@@ -113,6 +113,9 @@
     'submit' => '提交'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/czech.php
--- a/plugins/staticpages/language/czech.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/czech.php	Fri Oct 03 17:20:23 2008 +0200
@@ -110,6 +110,9 @@
     'submit' => 'Submit'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/czech_utf-8.php
--- a/plugins/staticpages/language/czech_utf-8.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/czech_utf-8.php	Fri Oct 03 17:20:23 2008 +0200
@@ -110,6 +110,9 @@
     'submit' => 'Submit'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/danish.php
--- a/plugins/staticpages/language/danish.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/danish.php	Fri Oct 03 17:20:23 2008 +0200
@@ -111,6 +111,9 @@
     'submit' => 'Submit'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/danish_utf-8.php
--- a/plugins/staticpages/language/danish_utf-8.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/danish_utf-8.php	Fri Oct 03 17:20:23 2008 +0200
@@ -111,6 +111,9 @@
     'submit' => 'Submit'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/dutch.php
--- a/plugins/staticpages/language/dutch.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/dutch.php	Fri Oct 03 17:20:23 2008 +0200
@@ -112,6 +112,9 @@
     'submit' => 'Submit'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/dutch_utf-8.php
--- a/plugins/staticpages/language/dutch_utf-8.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/dutch_utf-8.php	Fri Oct 03 17:20:23 2008 +0200
@@ -112,6 +112,9 @@
     'submit' => 'Submit'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/english.php
--- a/plugins/staticpages/language/english.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/english.php	Fri Oct 03 17:20:23 2008 +0200
@@ -111,6 +111,8 @@
     'submit' => 'Submit'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
 
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/english_utf-8.php
--- a/plugins/staticpages/language/english_utf-8.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/english_utf-8.php	Fri Oct 03 17:20:23 2008 +0200
@@ -111,6 +111,8 @@
     'submit' => 'Submit'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
 
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/estonian.php
--- a/plugins/staticpages/language/estonian.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/estonian.php	Fri Oct 03 17:20:23 2008 +0200
@@ -112,6 +112,9 @@
     'submit' => 'Sisesta'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugina uuendamine pole toetatud.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];
@@ -152,8 +155,8 @@
     1 => array('Jah' => true, 'Ei' => false),
     2 => array('Aeg' => 'date', 'Lehe ID' => 'id', 'Tiitel' => 'title'),
     3 => array('Aeg' => 'date', 'Lehe ID' => 'id', 'Tiitel' => 'title', 'Silt' => 'label'),
-        9 => array('Suuna edasi lehele' => 'item', 'Näita loetelu' => 'list', 'Näita avalehte' => 'home', 'Näita admini lehten' => 'admin'),
-12 => array('Pole ligipääsu' => 0, 'Ainult loetav' => 2, 'Loetav ja muudetav' => 3)
-    );
+    9 => array('Suuna edasi lehele' => 'item', 'Näita loetelu' => 'list', 'Näita avalehte' => 'home', 'Näita admini lehten' => 'admin'),
+    12 => array('Pole ligipääsu' => 0, 'Ainult loetav' => 2, 'Loetav ja muudetav' => 3)
+);
 
-?>
+?>
\ No newline at end of file
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/estonian_utf-8.php
--- a/plugins/staticpages/language/estonian_utf-8.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/estonian_utf-8.php	Fri Oct 03 17:20:23 2008 +0200
@@ -112,6 +112,9 @@
     'submit' => 'Sisesta'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugina uuendamine pole toetatud.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];
@@ -152,8 +155,8 @@
     1 => array('Jah' => true, 'Ei' => false),
     2 => array('Aeg' => 'date', 'Lehe ID' => 'id', 'Tiitel' => 'title'),
     3 => array('Aeg' => 'date', 'Lehe ID' => 'id', 'Tiitel' => 'title', 'Silt' => 'label'),
-        9 => array('Suuna edasi lehele' => 'item', 'Näita loetelu' => 'list', 'Näita avalehte' => 'home', 'Näita admini lehten' => 'admin'),
-12 => array('Pole ligipääsu' => 0, 'Ainult loetav' => 2, 'Loetav ja muudetav' => 3)
-    );
+    9 => array('Suuna edasi lehele' => 'item', 'Näita loetelu' => 'list', 'Näita avalehte' => 'home', 'Näita admini lehten' => 'admin'),
+    12 => array('Pole ligipääsu' => 0, 'Ainult loetav' => 2, 'Loetav ja muudetav' => 3)
+);
 
-?>
+?>
\ No newline at end of file
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/farsi_utf-8.php
--- a/plugins/staticpages/language/farsi_utf-8.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/farsi_utf-8.php	Fri Oct 03 17:20:23 2008 +0200
@@ -110,6 +110,9 @@
     'submit' => 'Submit'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/french_canada.php
--- a/plugins/staticpages/language/french_canada.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/french_canada.php	Fri Oct 03 17:20:23 2008 +0200
@@ -112,6 +112,9 @@
     'submit' => 'Submit'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/french_canada_utf-8.php
--- a/plugins/staticpages/language/french_canada_utf-8.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/french_canada_utf-8.php	Fri Oct 03 17:20:23 2008 +0200
@@ -112,6 +112,9 @@
     'submit' => 'Submit'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Your page has been successfully saved.';
+$PLG_staticpages_MESSAGE20 = 'Your page has been successfully deleted.';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];
diff -r 9fc901f37ffe -r c1e86eb7ad40 plugins/staticpages/language/german.php
--- a/plugins/staticpages/language/german.php	Fri Oct 03 15:35:09 2008 +0200
+++ b/plugins/staticpages/language/german.php	Fri Oct 03 17:20:23 2008 +0200
@@ -114,6 +114,9 @@
     'submit' => 'Absenden'
 );
 
+$PLG_staticpages_MESSAGE19 = 'Seite wurde gespeichert.';
+$PLG_staticpages_MESSAGE20 = 'Seite wurde gelöscht';
+
 // Messages for the plugin upgrade
 $PLG_staticpages_MESSAGE3001 = 'Plugin upgrade not supported.';
 $PLG_staticpages_MESSAGE3002 = $LANG32[9];



More information about the geeklog-cvs mailing list