aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-12-14 21:37:51 +0000
committerrub <rub@piwigo.org>2006-12-14 21:37:51 +0000
commitc012c22df671dce2f5d29adfda6063baf5401a8f (patch)
tree2dc969c92c0074d715a0fd363c3931efea7485a8
parentf7960e7e72ca913e1e67844dec6ff0d40de46d1b (diff)
Feature Issue ID 0000460:
Add advanced features on administration menu git-svn-id: http://piwigo.org/svn/trunk@1656 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin.php1
-rw-r--r--admin/advanced_feature.php77
-rw-r--r--language/en_UK.iso-8859-1/admin.lang.php2
-rw-r--r--language/en_UK.iso-8859-1/help/advanced_feature.html12
-rw-r--r--language/en_UK.iso-8859-1/help/maintenance.html10
-rw-r--r--language/fr_FR.iso-8859-1/admin.lang.php2
-rw-r--r--language/fr_FR.iso-8859-1/help/advanced_feature.html12
-rw-r--r--language/fr_FR.iso-8859-1/help/maintenance.html10
-rw-r--r--template/yoga/admin.tpl59
-rw-r--r--template/yoga/admin/advanced_feature.tpl12
10 files changed, 158 insertions, 39 deletions
diff --git a/admin.php b/admin.php
index a727189c7..283b4c332 100644
--- a/admin.php
+++ b/admin.php
@@ -81,6 +81,7 @@ $template->assign_vars(
'U_SITES'=> $link_start.'remote_site',
'U_MAINTENANCE'=> $link_start.'maintenance',
'U_NOTIFICATION_BY_MAIL'=> $link_start.'notification_by_mail',
+ 'U_ADVANCED_FEATURE'=> $link_start.'advanced_feature',
'U_CONFIG_GENERAL'=> $conf_link.'general',
'U_CONFIG_COMMENTS'=> $conf_link.'comments',
'U_CONFIG_DISPLAY'=> $conf_link.'default',
diff --git a/admin/advanced_feature.php b/admin/advanced_feature.php
new file mode 100644
index 000000000..8b0d58aaa
--- /dev/null
+++ b/admin/advanced_feature.php
@@ -0,0 +1,77 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | PhpWebGallery - a PHP based picture gallery |
+// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
+// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
+// +-----------------------------------------------------------------------+
+// | branch : BSF (Best So Far)
+// | file : $RCSfile$
+// | last update : $Date: 2006-04-21 23:16:37 +0200 (ven., 21 avr. 2006) $
+// | last modifier : $Author: nikrou $
+// | revision : $Revision: 1250 $
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify |
+// | it under the terms of the GNU General Public License as published by |
+// | the Free Software Foundation |
+// | |
+// | This program is distributed in the hope that it will be useful, but |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
+// | General Public License for more details. |
+// | |
+// | You should have received a copy of the GNU General Public License |
+// | along with this program; if not, write to the Free Software |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA. |
+// +-----------------------------------------------------------------------+
+
+if (!defined('PHPWG_ROOT_PATH'))
+{
+ die ("Hacking attempt!");
+}
+
+// +-----------------------------------------------------------------------+
+// | Check Access and exit when user status is not ok |
+// +-----------------------------------------------------------------------+
+check_status(ACCESS_ADMINISTRATOR);
+
+// +-----------------------------------------------------------------------+
+// | actions |
+// +-----------------------------------------------------------------------+
+
+/*$action = (isset($_GET['action']) and !is_adviser()) ? $_GET['action'] : '';
+
+switch ($action)
+{
+ case '???' :
+ {
+ break;
+ }
+ default :
+ {
+ break;
+ }
+}*/
+
+// +-----------------------------------------------------------------------+
+// | template init |
+// +-----------------------------------------------------------------------+
+
+$template->set_filenames(array('advanced_feature'=>'admin/advanced_feature.tpl'));
+
+$start_url = PHPWG_ROOT_PATH.'admin.php?page=advanced_feature&amp;action=';
+
+$template->assign_vars(
+ array(
+// 'U_ADV_????' => $start_url.'???',
+ 'U_ADV_ELEMENT_NOT_LINKED' => PHPWG_ROOT_PATH.'admin.php?page=element_set&cat=not_linked',
+ 'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=advanced_feature'
+ )
+ );
+
+// +-----------------------------------------------------------------------+
+// | sending html code |
+// +-----------------------------------------------------------------------+
+
+$template->assign_var_from_handle('ADMIN_CONTENT', 'advanced_feature');
+?> \ No newline at end of file
diff --git a/language/en_UK.iso-8859-1/admin.lang.php b/language/en_UK.iso-8859-1/admin.lang.php
index 55c99117b..4650eccee 100644
--- a/language/en_UK.iso-8859-1/admin.lang.php
+++ b/language/en_UK.iso-8859-1/admin.lang.php
@@ -494,4 +494,6 @@ $lang['w_day'] = 'Day';
$lang['waiting'] = 'Waiting';
$lang['is_default_group'] = 'default';
$lang['toggle_is_default_group'] = 'Toggle \'default group\' property';
+$lang['Advanced_features'] = 'Advanced features';
+$lang['Elements_not_linked'] = 'Not linked elements';
?> \ No newline at end of file
diff --git a/language/en_UK.iso-8859-1/help/advanced_feature.html b/language/en_UK.iso-8859-1/help/advanced_feature.html
new file mode 100644
index 000000000..75f400f32
--- /dev/null
+++ b/language/en_UK.iso-8859-1/help/advanced_feature.html
@@ -0,0 +1,12 @@
+<h2>Advanced features</h2>
+
+<p>List special functionnalties for expert PWG administrator.</p>
+
+<ul>
+
+ <li>
+ <strong>Not linked elements:</strong>
+ Display images witch are not associaed with an virtual catgory
+ </li>
+
+</ul>
diff --git a/language/en_UK.iso-8859-1/help/maintenance.html b/language/en_UK.iso-8859-1/help/maintenance.html
index 1bc3978b3..80f4b7f48 100644
--- a/language/en_UK.iso-8859-1/help/maintenance.html
+++ b/language/en_UK.iso-8859-1/help/maintenance.html
@@ -11,13 +11,13 @@ information from database make you save disk space.</p>
<ul>
- <li><strong>Update categories informations</strong>. For each category,
+ <li><strong>Update categories informations:</strong> For each category,
informations to update or control are the following : list of parent
categories, number of pictures, date of the last picture, position among
brother categories, position among all categories. This action also checks
the coherence of representative picture.</li>
- <li><strong>Update images informations</strong>. For each picture,
+ <li><strong>Update images informations:</strong> For each picture,
informations to update are : full path to file, average
rate. <em>Warning</em>: do not get confuse with metadata informations
which can be synchronized from <span class="pwgScreen">Administration,
@@ -25,17 +25,17 @@ information from database make you save disk space.</p>
single picture (through <span class="pwgScreen">Picture</span> for
example).</li>
- <li><strong>Purge history</strong>. Delete all lines from
+ <li><strong>Purge history:</strong> Delete all lines from
<code>history</code> table. Screen <span class="pwgScreen">Administration,
General, History</span> shows no informations anymore on past
history. <em>Warning</em>: all data will be lost and there is no way to
get informations back.</li>
- <li><strong>Purge sessions</strong>. Delete expired user sessions.</li>
+ <li><strong>Purge sessions:</strong> Delete expired user sessions.</li>
<li><strong>Purge never used notification feeds</strong></li>
- <li><strong>Repair and optimize database</strong>
+ <li><strong>Repair and optimize database:</strong>
For each table, re-odrer, repair and optimize operations are done.
</li>
diff --git a/language/fr_FR.iso-8859-1/admin.lang.php b/language/fr_FR.iso-8859-1/admin.lang.php
index 30a02c841..4465c6c9e 100644
--- a/language/fr_FR.iso-8859-1/admin.lang.php
+++ b/language/fr_FR.iso-8859-1/admin.lang.php
@@ -494,4 +494,6 @@ $lang['w_day'] = 'Jour';
$lang['waiting'] = 'En attente';
$lang['is_default_group'] = 'par défaut';
$lang['toggle_is_default_group'] = 'Inverser la propriété \'groupe par défaut\'';
+$lang['Advanced_features'] = 'Fonctions avancées';
+$lang['Elements_not_linked'] = 'Eléments non liés';
?> \ No newline at end of file
diff --git a/language/fr_FR.iso-8859-1/help/advanced_feature.html b/language/fr_FR.iso-8859-1/help/advanced_feature.html
new file mode 100644
index 000000000..221e6f074
--- /dev/null
+++ b/language/fr_FR.iso-8859-1/help/advanced_feature.html
@@ -0,0 +1,12 @@
+<h2>Fonctions avancées</h2>
+
+<p>Liste des fonctionnalités spéciales pour les administrateurs experts de PWG.</p>
+
+<ul>
+
+ <li>
+ <strong>Eléments non liés:</strong>
+ Affiche les images qui ne sont pas associées à une catégorie virtuelle
+ </li>
+
+</ul>
diff --git a/language/fr_FR.iso-8859-1/help/maintenance.html b/language/fr_FR.iso-8859-1/help/maintenance.html
index 7691e739d..db50952c2 100644
--- a/language/fr_FR.iso-8859-1/help/maintenance.html
+++ b/language/fr_FR.iso-8859-1/help/maintenance.html
@@ -12,14 +12,14 @@ base de données libère de l'espace disque.</p>
<ul>
- <li><strong>Mettre à jour les informations des catégories</strong>. Pour
+ <li><strong>Mettre à jour les informations des catégories:</strong> Pour
chaque catégorie, les informations à controller et/ou mettre à jour sont les
suivantes: liste des catégories mères, nombre d'éléments, date du dernier
élément, position parmi les catégories soeur, position dans l'arbre complet
des catégories. Cette action vérifie également la cohérence des
représentants.</li>
- <li><strong>Mettre à jour les informations des images</strong>. Pour
+ <li><strong>Mettre à jour les informations des images:</strong> Pour
chaque image, les informations à mettre à jour sont: chemin complet vers le
fichier, note moyenne. <em>Attention</em>: ne pas confondre avec les
méta-données qui sont synchronisées sur l'écran <span
@@ -28,18 +28,18 @@ l'écran <span class="pwgScreen">Modifier les informations d'une image</span>
(accessible depuis la page de visualisation d'une image <span
class="pwgScreen">picture.php</span>).</li>
- <li><strong>Purger l'historique</strong>. Supprime toutes les lignes de
+ <li><strong>Purger l'historique:</strong> Supprime toutes les lignes de
la table <code>history</code>. L'écran <span
class="pwgScreen">Administration, Général, Historique</span> ne montre alors
plus aucune information sur le passé. <em>Attention</em>: toutes les données
seront perdues et il n'existe aucun moyen de les récupérer.</li>
- <li><strong>Purger les sessions</strong>. Supprimer les sessions
+ <li><strong>Purger les sessions:</strong> Supprimer les sessions
expirées..</li>
<li><strong>Purger les flux de notification jamais utilisés</strong></li>
- <li><strong>Réparer et optimiser la base de données</strong>
+ <li><strong>Réparer et optimiser la base de données:</strong>
Pour chaque tables de la base de données PhpWegGallery, les opérations de ré-ordonnancement, de réparation et d'optimisation sont effectuées.
</li>
diff --git a/template/yoga/admin.tpl b/template/yoga/admin.tpl
index 03c1f993b..7f1c46ea7 100644
--- a/template/yoga/admin.tpl
+++ b/template/yoga/admin.tpl
@@ -4,7 +4,7 @@
<dt>{lang:links}</dt>
<dd>
<ul>
- <li><a href="{U_RETURN}">{lang:home}</a></li>
+ <li><a href="{U_RETURN}">{lang:home}</a></li>
<li><a href="{U_ADMIN}" title="{L_ADMIN_HINT}">{L_ADMIN}</a></li>
</ul>
</dd>
@@ -13,13 +13,14 @@
<dt>{lang:general}</dt>
<dd>
<ul>
- <li><a href="{U_FAQ}">{lang:instructions}</a></li>
- <li><a href="{U_SITE_MANAGER}">{lang:Site manager}</a></li>
- <li><a href="{U_HISTORY}">{lang:history}</a></li>
- <li><a href="{U_CAT_UPDATE}">{lang:update}</a></li>
- <li><a href="{U_MAINTENANCE}">{lang:Maintenance}</a></li>
- <li><a href="{U_NOTIFICATION_BY_MAIL}">{lang:nbm_item_notification}</a></li>
- <li><a href="{U_PLUGINS}">{lang:Plugins}</a></li>
+ <li><a href="{U_FAQ}">{lang:instructions}</a></li>
+ <li><a href="{U_SITE_MANAGER}">{lang:Site manager}</a></li>
+ <li><a href="{U_HISTORY}">{lang:history}</a></li>
+ <li><a href="{U_CAT_UPDATE}">{lang:update}</a></li>
+ <li><a href="{U_MAINTENANCE}">{lang:Maintenance}</a></li>
+ <li><a href="{U_NOTIFICATION_BY_MAIL}">{lang:nbm_item_notification}</a></li>
+ <li><a href="{U_PLUGINS}">{lang:Plugins}</a></li>
+ <li><a href="{U_ADVANCED_FEATURE}">{lang:Advanced_features}</a></li>
</ul>
</dd>
</dl>
@@ -27,9 +28,9 @@
<dt>{lang:config}</dt>
<dd>
<ul>
- <li><a href="{U_CONFIG_GENERAL}">{lang:general}</a></li>
- <li><a href="{U_CONFIG_COMMENTS}">{lang:comments}</a></li>
- <li><a href="{U_CONFIG_DISPLAY}">{lang:conf_default}</a></li>
+ <li><a href="{U_CONFIG_GENERAL}">{lang:general}</a></li>
+ <li><a href="{U_CONFIG_COMMENTS}">{lang:comments}</a></li>
+ <li><a href="{U_CONFIG_DISPLAY}">{lang:conf_default}</a></li>
</ul>
</dd>
</dl>
@@ -37,15 +38,15 @@
<dt>{lang:Categories}</dt>
<dd>
<ul>
- <li><a href="{U_CATEGORIES}">{lang:manage}</a></li>
- <li><a href="{U_MOVE}">{lang:Move}</a></li>
- <li><a href="{U_CAT_UPLOAD}">{lang:upload}</a></li>
- <li><a href="{U_CAT_COMMENTS}">{lang:comments}</a></li>
- <li><a href="{U_CAT_VISIBLE}">{lang:lock}</a></li>
- <li><a href="{U_CAT_STATUS}">{lang:cat_security}</a></li>
- <!-- BEGIN representative -->
- <li><a href="{representative.URL}">{lang:Representative}</a></li>
- <!-- END representative -->
+ <li><a href="{U_CATEGORIES}">{lang:manage}</a></li>
+ <li><a href="{U_MOVE}">{lang:Move}</a></li>
+ <li><a href="{U_CAT_UPLOAD}">{lang:upload}</a></li>
+ <li><a href="{U_CAT_COMMENTS}">{lang:comments}</a></li>
+ <li><a href="{U_CAT_VISIBLE}">{lang:lock}</a></li>
+ <li><a href="{U_CAT_STATUS}">{lang:cat_security}</a></li>
+ <!-- BEGIN representative -->
+ <li><a href="{representative.URL}">{lang:Representative}</a></li>
+ <!-- END representative -->
</ul>
</dd>
</dl>
@@ -53,12 +54,12 @@
<dt>{lang:pictures}</dt>
<dd>
<ul>
- <li><a href="{U_WAITING}">{lang:waiting}</a></li>
- <li><a href="{U_THUMBNAILS}">{lang:thumbnails}</a></li>
- <li><a href="{U_COMMENTS}">{lang:comments}</a></li>
- <li><a href="{U_RATING}">{lang:Rating}</a></li>
- <li><a href="{U_CADDIE}">{lang:Caddie}</a></li>
- <li><a href="{U_TAGS}">{lang:Tags}</a></li>
+ <li><a href="{U_WAITING}">{lang:waiting}</a></li>
+ <li><a href="{U_THUMBNAILS}">{lang:thumbnails}</a></li>
+ <li><a href="{U_COMMENTS}">{lang:comments}</a></li>
+ <li><a href="{U_RATING}">{lang:Rating}</a></li>
+ <li><a href="{U_CADDIE}">{lang:Caddie}</a></li>
+ <li><a href="{U_TAGS}">{lang:Tags}</a></li>
</ul>
</dd>
</dl>
@@ -66,8 +67,8 @@
<dt>{lang:identification}</dt>
<dd>
<ul>
- <li><a href="{U_USERS}">{lang:users}</a></li>
- <li><a href="{U_GROUPS}">{lang:groups}</a></li>
+ <li><a href="{U_USERS}">{lang:users}</a></li>
+ <li><a href="{U_GROUPS}">{lang:groups}</a></li>
</ul>
</dd>
</dl>
@@ -77,7 +78,7 @@
<ul>
<!-- BEGIN plugin_menu -->
<!-- BEGIN menu_item -->
- <li><a href="{plugin_menu.menu_item.URL}">{plugin_menu.menu_item.NAME}</a></li>
+ <li><a href="{plugin_menu.menu_item.URL}">{plugin_menu.menu_item.NAME}</a></li>
<!-- END menu_item -->
<!-- END plugin_menu -->
</ul>
diff --git a/template/yoga/admin/advanced_feature.tpl b/template/yoga/admin/advanced_feature.tpl
new file mode 100644
index 000000000..13a2d62ce
--- /dev/null
+++ b/template/yoga/admin/advanced_feature.tpl
@@ -0,0 +1,12 @@
+<!-- $Id: advanced_feature.tpl 1111 2006-03-28 21:05:12Z rub $ -->
+<div class="titrePage">
+ <ul class="categoryActions">
+ <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
+ </ul>
+ <h2>{lang:Advanced_features}</h2>
+</div>
+
+<ul>
+<!-- <li><a href="{U_ADV_????}" {TAG_INPUT_ENABLED}>{lang:update categories informations}</a></li>-->
+ <li><a href="{U_ADV_ELEMENT_NOT_LINKED}" {TAG_INPUT_ENABLED}>{lang:Elements_not_linked}</a></li>
+</ul>