aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-10-05 13:10:54 +0000
committerz0rglub <z0rglub@piwigo.org>2003-10-05 13:10:54 +0000
commit458b548ef6bc1d41745785b44b1e1e5e57863ec7 (patch)
tree58161cb51631f71a6e377444e7f8b91c044be6f1
parent7e441d191eddbf0a7c4cf1d9fa4af3328fa93350 (diff)
Display a message to update the database after validating uploaded pictures
git-svn-id: http://piwigo.org/svn/trunk@177 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/waiting.php8
-rw-r--r--language/english.php1
-rw-r--r--language/francais.php3
-rw-r--r--template/default/admin/waiting.vtp3
4 files changed, 14 insertions, 1 deletions
diff --git a/admin/waiting.php b/admin/waiting.php
index 7b38a387c..9a5e79481 100644
--- a/admin/waiting.php
+++ b/admin/waiting.php
@@ -68,8 +68,14 @@ if ( isset( $_POST['submit'] ) )
//----------------------------------------------------- template initialization
$sub = $vtp->Open( '../template/'.$user['template'].'/admin/waiting.vtp' );
$tpl = array( 'category','date','author','thumbnail','file','delete',
- 'submit' );
+ 'submit','waiting_update' );
templatize_array( $tpl, 'lang', $sub );
+//-------------------------------------------------------- confirmation message
+if ( isset( $_POST['submit'] ) )
+{
+ $vtp->addSession( $sub, 'confirmation' );
+ $vtp->closeSession( $sub, 'confirmation' );
+}
//---------------------------------------------------------------- form display
$cat_names = array();
$query = 'SELECT id,storage_category_id,file,username,mail_address';
diff --git a/language/english.php b/language/english.php
index 4ec41f196..6e71aeeb7 100644
--- a/language/english.php
+++ b/language/english.php
@@ -590,5 +590,6 @@ Once this file deleted , follow this instructions :
$lang['help_infos'][2] = 'If you have any question, do not hesitate to take a look at the forum or ask a question there. The <a href="'.$conf['forum_url'].'" style="text-decoration:underline">forum</a> (message board) is available on the presentation site of PhpWebGallery.';
$lang['step1_err_copy'] = 'Copy the text between hyphens and paste it into the file "include/mysql.inc.php"(Warning : mysql.inc.php must only contain what is in blue, no line return or space character)';
$lang['permuser_only_private'] = 'Only private categories are shown';
+ $lang['waiting_update'] = 'Validated pictures will be displayed only once pictures database updated';
}
?>
diff --git a/language/francais.php b/language/francais.php
index dfdd7473c..9c0a4423b 100644
--- a/language/francais.php
+++ b/language/francais.php
@@ -309,6 +309,9 @@ if ( $isadmin )
$lang['title_waiting'] = 'Images en attente de validation';
$lang['menu_waiting'] = 'En attente';
+// start version 1.3
+ $lang['waiting_update'] = 'Les images validées ne seront visibles qu\'après mise à jour de la base d\'images.';
+// end version 1.3
$lang['default_message'] = 'Zone d\'administration de PhpWebGallery';
diff --git a/template/default/admin/waiting.vtp b/template/default/admin/waiting.vtp
index 4242a776b..b04ab2cff 100644
--- a/template/default/admin/waiting.vtp
+++ b/template/default/admin/waiting.vtp
@@ -1,4 +1,7 @@
<form action="{#action}" method="post">
+ <!--VTP_confirmation-->
+ <div class="info">{#waiting_update}</div>
+ <!--/VTP_confirmation-->
<table style="width:100%;">
<tr>
<th style="width:20%;">{#category}</th>