From 1d22950cf6391f1037be9cd35288b36d62ea6fe5 Mon Sep 17 00:00:00 2001
From: rvelices
Date: Tue, 14 Mar 2006 23:52:47 +0000
Subject: [PATCH] fix: help button was not working in the site manager
fix: incorrect session deletion in maintenance.php
git-svn-id: http://piwigo.org/svn/trunk@1080 68402e56-0260-453c-a942-63ccdbb3a9ee
---
admin/maintenance.php | 9 ++-------
admin/site_manager.php | 1 +
language/en_UK.iso-8859-1/help/remote_site.html | 12 ++++++------
language/fr_FR.iso-8859-1/help/remote_site.html | 10 +++++-----
4 files changed, 14 insertions(+), 18 deletions(-)
diff --git a/admin/maintenance.php b/admin/maintenance.php
index dcda4f401..0a5c3cd22 100644
--- a/admin/maintenance.php
+++ b/admin/maintenance.php
@@ -71,12 +71,7 @@ DELETE
}
case 'sessions' :
{
- $query = '
-DELETE
- FROM '.SESSIONS_TABLE.'
- WHERE expiration < NOW()
-;';
- pwg_query($query);
+ pwg_session_gc();
break;
}
case 'feeds' :
@@ -113,7 +108,7 @@ $template->assign_vars(
'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=maintenance',
)
);
-
+
// +-----------------------------------------------------------------------+
// | sending html code |
// +-----------------------------------------------------------------------+
diff --git a/admin/site_manager.php b/admin/site_manager.php
index c12ecdc50..b1cfff58e 100644
--- a/admin/site_manager.php
+++ b/admin/site_manager.php
@@ -201,6 +201,7 @@ SELECT galleries_url
}
$template->assign_vars( array(
+ 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=remote_site',
'F_ACTION' => PHPWG_ROOT_PATH.'admin.php'
.get_query_string_diff( array('action','site') )
) );
diff --git a/language/en_UK.iso-8859-1/help/remote_site.html b/language/en_UK.iso-8859-1/help/remote_site.html
index 38cd8f370..5cb8b5081 100644
--- a/language/en_UK.iso-8859-1/help/remote_site.html
+++ b/language/en_UK.iso-8859-1/help/remote_site.html
@@ -1,4 +1,4 @@
-Remote site
+Remote sites
PhpWebGallery offers the possibility to use several servers to store the
images which will compose your gallery. It can be useful if your gallery is
@@ -18,8 +18,8 @@ be shown.
this website) by ftp. For the example, let's say that you can access http://example.com/galleries/create_listing_file.php.
- go to administration panel, General, Remote
- sites. Ask to create a new site, for example go to administration panel, General, Site
+ manager. Ask to create a new site, for example http://example.com/galleries.
a new remote site is registered. You can perform 4 actions :
@@ -29,7 +29,7 @@ be shown.
generate listing : launches a distant request to
generate a distant file listing
- update : reads the distant synchronize : reads the distant listing.xml file and synchronizes with
database informations.
@@ -43,9 +43,9 @@ be shown.
-You can do all this by hand by generating yourself the You can do all this by hand by generating yourself the listing.xml file, moving it from your distant server
to you local PhpWebGallery root directory and opening the remote site
management screen : PhpWebGallery will propose you to use the found
-listing.xml file.
+listing.xml file.-->
diff --git a/language/fr_FR.iso-8859-1/help/remote_site.html b/language/fr_FR.iso-8859-1/help/remote_site.html
index 8ee1fed10..fe83b7e6f 100644
--- a/language/fr_FR.iso-8859-1/help/remote_site.html
+++ b/language/fr_FR.iso-8859-1/help/remote_site.html
@@ -20,8 +20,8 @@ cat
ce site) par FTP. Par exemple, disons que vous pouvez accéder à http://exemple.com/galleries/create_listing_file.php.
- Se rendre sur Administration, Général, Sites
-distant. Demander à créer un nouveau site, par exemple Se rendre sur Administration, Général,
+Gestionnaire des sites. Demander à créer un nouveau site, par exemple http://exemple.com/galleries.
@@ -33,7 +33,7 @@ class="filename">http://exemple.com/galleries.
générer la liste : lance une requête distant pour
générer le fichier de listing distant
- mettre à jour : lit le fichier distant synchroniser : lit le fichier distant listing.xml et synchronise avec la base de données
locale
@@ -49,8 +49,8 @@ qui y sont associ
-Vous pouvez également effectuer ces opérations manuellement en éditant
+