- Remove advises of file removal at the end of install/upgrade.

- Automatic change mysql.inc.php if file is writable, else purpose manual change to user.

git-svn-id: http://piwigo.org/svn/trunk@2863 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
patdenice
2008-11-12 12:40:20 +00:00
parent 1d9821abd1
commit cd9f45fd1d
10 changed files with 43 additions and 48 deletions
+2 -9
View File
@@ -595,15 +595,8 @@ if (!is_writable($config_file))
die('FILE NOT WRITABLE '.$config_file);
}
// Insert define('PHPWG_INSTALLED', true); in mysql.inc.php
$config_file_contents =
substr($config_file_contents, 0, $php_end_tag).'
define(\'PHPWG_INSTALLED\', true);
'.substr($config_file_contents, $php_end_tag);
$fp = @fopen( $config_file, 'w' );
@fputs($fp, $config_file_contents, strlen($config_file_contents));
@fclose($fp);
// changes to write in mysql.inc.php
array_push($mysql_changes, 'define(\'PHPWG_INSTALLED\', true);');
// Send infos
$page['infos'] = array_merge(