From 860a39302ead57c596bec64e9d738c5dd69640bd Mon Sep 17 00:00:00 2001 From: z0rglub Date: Mon, 3 Nov 2003 21:35:24 +0000 Subject: 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 --- admin.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'admin.php') diff --git a/admin.php b/admin.php index 29e622c5c..5105d9ea3 100644 --- a/admin.php +++ b/admin.php @@ -18,10 +18,10 @@ ***************************************************************************/ //----------------------------------------------------------- personnal include -include_once( './include/isadmin.inc.php' ); +include_once( './admin/include/isadmin.inc.php' ); //----------------------------------------------------- template initialization $vtp = new VTemplate; -$handle = $vtp->Open( '../template/'.$user['template'].'/admin/admin.vtp' ); +$handle = $vtp->Open( './template/'.$user['template'].'/admin.vtp' ); // language $tpl = array( 'title_default','charset','install_warning' ); templatize_array( $tpl, 'lang', $handle ); @@ -117,9 +117,9 @@ switch ( $_GET['page'] ) { $title.= ' '.$lang['title_thumbnails_2'].' '; // $_GET['dir'] contains : - // ../galleries/vieux_lyon ou - // ../galleries/vieux_lyon/visite ou - // ../galleries/vieux_lyon/visite/truc ... + // ./galleries/vieux_lyon ou + // ./galleries/vieux_lyon/visite ou + // ./galleries/vieux_lyon/visite/truc ... $dir = explode( "/", $_GET['dir'] ); $title.= $dir[2]; for ( $i = 3; $i < sizeof( $dir ) - 1; $i++ ) @@ -237,13 +237,13 @@ $vtp->closeSession( $handle, 'summary' ); // back to thumbnails page $vtp->addSession( $handle, 'summary' ); $vtp->setVar( $handle, 'summary.indent', '| ' ); -$vtp->setVar( $handle, 'summary.link', add_session_id( '../category.php' ) ); +$vtp->setVar( $handle, 'summary.link', add_session_id( './category.php' ) ); $vtp->setVar( $handle, 'summary.name', $lang['menu_back'] ); $vtp->closeSession( $handle, 'summary' ); //------------------------------------------------------------- content display if ( $page_valide ) { - include ( $_GET['page'].'.php' ); + include ( './admin/'.$_GET['page'].'.php' ); } else { -- cgit v1.2.3