From eaacc88183222375ee7d07b5f811ba6bf7cbc34e Mon Sep 17 00:00:00 2001 From: nikrou Date: Fri, 4 Dec 2009 18:59:05 +0000 Subject: Feature 1255 : migration script git-svn-id: http://piwigo.org/svn/trunk@4423 68402e56-0260-453c-a942-63ccdbb3a9ee --- install/db/84-database.php | 77 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 install/db/84-database.php (limited to 'install') diff --git a/install/db/84-database.php b/install/db/84-database.php new file mode 100644 index 000000000..9543d9db0 --- /dev/null +++ b/install/db/84-database.php @@ -0,0 +1,77 @@ +'; + +@umask(0111); +// writing the configuration file +if ( !($fp = @fopen( $config_file, 'w' ))) +{ + $html_content = htmlentities( $file_content, ENT_QUOTES, 'utf-8' ); + $html_content = nl2br( $html_content ); + $error_copy = l10n('step1_err_copy'); + $error_copy .= '
--------------------------------------------------------------------
'; + $error_copy .= '' . $html_content . ''; + $error_copy .= '
--------------------------------------------------------------------
'; +} +@fputs($fp, $file_content, strlen($file_content)); +@fclose($fp); + +if (isset($error_copy)) +{ + array_push($page['errors'], $error_copy); +} + +echo +"\n" +. $upgrade_description +."\n" +; +?> -- cgit v1.2.3