mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 09:52:29 +02:00
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:
+7
-1
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user