aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-11-03 21:35:24 +0000
committerz0rglub <z0rglub@piwigo.org>2003-11-03 21:35:24 +0000
commit860a39302ead57c596bec64e9d738c5dd69640bd (patch)
treea71089e36e0f9c2a90ff5fc373dc5f07551e5ddb /admin.php
parent5fdc7ea1e582c7378ea8fd8ac3a9a50ec5298970 (diff)
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
Diffstat (limited to '')
-rw-r--r--admin.php14
1 files changed, 7 insertions, 7 deletions
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'].' <span style="color:#006699;">';
// $_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
{