aboutsummaryrefslogtreecommitdiffstats
path: root/admin/admin.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-10-12 14:54:06 +0000
committerz0rglub <z0rglub@piwigo.org>2003-10-12 14:54:06 +0000
commitf9d7b25c235b26d05ff29d509badd0b6fbb7faa3 (patch)
tree3b47df692e38c5ecd105278f31895d2a8f35c1b0 /admin/admin.php
parent6dfbb99e4ff8b085d9c2dbd4c68923612218076d (diff)
Display a message of warning if file admin/install.php is still present
after install. git-svn-id: http://piwigo.org/svn/trunk@202 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/admin.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/admin/admin.php b/admin/admin.php
index b803af918..66608a74d 100644
--- a/admin/admin.php
+++ b/admin/admin.php
@@ -23,9 +23,15 @@ include_once( './include/isadmin.inc.php' );
$vtp = new VTemplate;
$handle = $vtp->Open( '../template/'.$user['template'].'/admin/admin.vtp' );
// language
-$tpl = array( 'menu_title', 'title_default', 'charset' );
+$tpl = array( 'menu_title','title_default','charset','install_warning' );
templatize_array( $tpl, 'lang', $handle );
$vtp->setGlobalVar( $handle, 'user_template', $user['template'] );
+//-------------------------------------------------- install.php still exists ?
+if ( is_file( './install.php' ) )
+{
+ $vtp->addSession( $handle, 'install_warning' );
+ $vtp->closeSession( $handle, 'install_warning' );
+}
//--------------------------------------- validating page and creation of title
$page_valide = false;
$title = '';