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
This commit is contained in:
z0rglub
2003-10-12 14:54:06 +00:00
parent 6dfbb99e4f
commit f9d7b25c23
3 changed files with 9 additions and 1 deletions
+7 -1
View File
@@ -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 = '';