From d8301964b192c97e04fab81c80d90b2a19c49dc0 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Fri, 20 May 2011 17:19:27 +1000 Subject: better writing, file locking --- install.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install.php') diff --git a/install.php b/install.php index c6a89da3..74482a08 100644 --- a/install.php +++ b/install.php @@ -66,7 +66,7 @@ } // Update version number - file_put_contents($config['has_installed'], VERSION); + file_write($config['has_installed'], VERSION); $page['title'] = 'Upgraded'; $page['body'] = '

Successfully upgraded from ' . $version . ' to ' . VERSION . '.

'; @@ -401,7 +401,7 @@ if(!empty($sql_errors)) { $page['body'] .= '

SQL errors

SQL errors were encountered when trying to install the database. This may be the result of using a database which is already occupied with a Tinyboard installation; if so, you can probably ignore this.

The errors encountered were:

Ignore errors and complete installation.

'; } else { - file_put_contents($config['has_installed'], VERSION); + file_write($config['has_installed'], VERSION); if(!@unlink(__FILE__)) { $page['body'] .= '

Delete install.php!

I couldn\'t remove install.php. You will have to remove it manually.

'; } @@ -412,7 +412,7 @@ $page['title'] = 'Installation complete'; $page['body'] = '

Thank you for using Tinyboard. Please remember to report any bugs you discover.

'; - file_put_contents($config['has_installed'], VERSION); + file_write($config['has_installed'], VERSION); if(!@unlink(__FILE__)) { $page['body'] .= '

Delete install.php!

I couldn\'t remove install.php. You will have to remove it manually.

'; } -- cgit v1.3