Feature Issue ID 0000460:

Add advanced features on administration menu

git-svn-id: http://piwigo.org/svn/trunk@1656 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub
2006-12-14 21:37:51 +00:00
parent f7960e7e72
commit c012c22df6
10 changed files with 158 additions and 39 deletions
+1
View File
@@ -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',
+77
View File
@@ -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');
?>
+2
View File
@@ -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';
?>
@@ -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>
@@ -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>
+2
View File
@@ -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';
?>
@@ -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>
@@ -12,14 +12,14 @@ base de donn
<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'
(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>
+30 -29
View File
@@ -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>
+12
View File
@@ -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>