diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-10-12 14:54:06 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-10-12 14:54:06 +0000 |
commit | f9d7b25c235b26d05ff29d509badd0b6fbb7faa3 (patch) | |
tree | 3b47df692e38c5ecd105278f31895d2a8f35c1b0 /admin/admin.php | |
parent | 6dfbb99e4ff8b085d9c2dbd4c68923612218076d (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 'admin/admin.php')
-rw-r--r-- | admin/admin.php | 8 |
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 = ''; |