Modifications linked to the move of admin.php to the root directory of PhpWebGallery

git-svn-id: http://piwigo.org/svn/trunk@228 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2003-11-03 21:35:24 +00:00
parent 5fdc7ea1e5
commit 860a39302e
8 changed files with 19 additions and 28 deletions
+6 -6
View File
@@ -22,12 +22,12 @@ include_once( './admin/include/isadmin.inc.php' );
function insert_local_category( $cat_id )
{
global $conf, $page, $user, $lang;
$site_id = 1;
// 0. retrieving informations on the category to display
$cat_directory = '../galleries';
$cat_directory = './galleries';
if ( is_numeric( $cat_id ) )
{
$cat_directory.= '/'.get_local_dir( $cat_id );
@@ -64,7 +64,7 @@ function insert_local_category( $cat_id )
while ( $row = mysql_fetch_array( $result ) )
{
// retrieving the directory
$rep = '../galleries/'.get_local_dir( $row['id'] );
$rep = './galleries/'.get_local_dir( $row['id'] );
// is the directory present ?
if ( !is_dir( $rep ) ) delete_category( $row['id'] );
}
@@ -588,7 +588,7 @@ if ( !isset( $_GET['update'] )
$vtp->setVar( $sub, 'introduction.all:url', $url );
$vtp->closeSession( $sub, 'introduction' );
}
//------------------------------------------------- local update : ../galleries
//-------------------------------------------------- local update : ./galleries
else
{
$count_new = 0;