diff --git a/install.php b/install.php index ec3186bf..49c7a907 100644 --- a/install.php +++ b/install.php @@ -1,7 +1,7 @@ vichan-devel-4.4.97'); +define('VERSION', '4.4.98'); require 'inc/functions.php'; @@ -505,6 +505,20 @@ if (file_exists($config['has_installed'])) { case 'v0.9.6-dev-22 + vichan-devel-4.4.94': case 'v0.9.6-dev-22 + vichan-devel-4.4.95': case 'v0.9.6-dev-22 + vichan-devel-4.4.96': + case 'v0.9.6-dev-22 + vichan-devel-4.4.97': + case '4.4.97': + if (!isset($_GET['confirm'])) { + $page['title'] = 'License Change'; + $page['body'] = '

You are upgrading to a version which uses an amended license. The licenses included with vichan distributions prior to this version (4.4.98) are still valid for those versions, but no longer apply to this and newer versions.

' . + ' +

+ I have read and understood the agreement. Proceed to upgrading. +

'; + + file_write($config['has_installed'], '4.4.97'); + + break; + } case false: // Update version number file_write($config['has_installed'], VERSION); @@ -514,11 +528,11 @@ if (file_exists($config['has_installed'])) { break; default: $page['title'] = 'Unknown version'; - $page['body'] = '

Tinyboard was unable to determine what version is currently installed.

'; + $page['body'] = '

vichan was unable to determine what version is currently installed.

'; break; case VERSION: $page['title'] = 'Already installed'; - $page['body'] = '

It appears that Tinyboard is already installed (' . $version . ') and there is nothing to upgrade! Delete ' . $config['has_installed'] . ' to reinstall.

'; + $page['body'] = '

It appears that vichan is already installed (' . $version . ') and there is nothing to upgrade! Delete ' . $config['has_installed'] . ' to reinstall.

'; break; } @@ -571,17 +585,10 @@ if ($step == 0) { $tests = array( array( 'category' => 'PHP', - 'name' => 'PHP ≥ 5.2.5', - 'result' => PHP_VERSION_ID >= 50205, - 'required' => true, - 'message' => 'Tinyboard requires PHP 5.2.5 or better.', - ), - array( - 'category' => 'PHP', 'name' => 'PHP ≥ 5.3', 'result' => PHP_VERSION_ID >= 50300, - 'required' => false, - 'message' => 'PHP ≥ 5.3, though not required, is recommended to make the most out of Tinyboard configuration files.', + 'required' => true, + 'message' => 'vichan requires PHP 5.3 or better.', ), array( 'category' => 'PHP', @@ -672,21 +679,21 @@ if ($step == 0) { 'name' => getcwd(), 'result' => is_writable('.'), 'required' => true, - 'message' => 'Tinyboard does not have permission to create directories (boards) here. You will need to chmod (or operating system equivalent) appropriately.' + 'message' => 'vichan does not have permission to create directories (boards) here. You will need to chmod (or operating system equivalent) appropriately.' ), array( 'category' => 'File permissions', 'name' => getcwd() . '/templates/cache', 'result' => is_writable('templates') && (!is_dir('templates/cache') || is_writable('templates/cache')), 'required' => true, - 'message' => 'You must give Tinyboard permission to create (and write to) the templates/cache directory or performance will be drastically reduced.' + 'message' => 'You must give vichan permission to create (and write to) the templates/cache directory or performance will be drastically reduced.' ), array( 'category' => 'File permissions', 'name' => getcwd() . '/inc/instance-config.php', 'result' => is_writable('inc/instance-config.php'), 'required' => false, - 'message' => 'Tinyboard does not have permission to make changes to inc/instance-config.php. To complete the installation, you will be asked to manually copy and paste code into the file instead.' + 'message' => 'vichan does not have permission to make changes to inc/instance-config.php. To complete the installation, you will be asked to manually copy and paste code into the file instead.' ), array( 'category' => 'Misc', @@ -698,10 +705,10 @@ if ($step == 0) { ), array( 'category' => 'Misc', - 'name' => 'Tinyboard installed using git', + 'name' => 'vichan installed using git', 'result' => is_dir('.git'), 'required' => false, - 'message' => 'Tinyboard is still beta software and it\'s not going to come out of beta any time soon. As there are often many months between releases yet changes and bug fixes are very frequent, it\'s recommended to use the git repository to maintain your Tinyboard installation. Using git makes upgrading much easier.' + 'message' => 'vichan is still beta software and it\'s not going to come out of beta any time soon. As there are often many months between releases yet changes and bug fixes are very frequent, it\'s recommended to use the git repository to maintain your vichan installation. Using git makes upgrading much easier.' ) ); @@ -809,10 +816,10 @@ if ($step == 0) { } $page['title'] = 'Installation complete'; - $page['body'] = '

Thank you for using Tinyboard. Please remember to report any bugs you discover. How do I edit the config files?

'; + $page['body'] = '

Thank you for using vichan. Please remember to report any bugs you discover. How do I edit the config files?

'; 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.

'; + $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 vichan installation; if so, you can probably ignore this.

The errors encountered were:

Ignore errors and complete installation.

'; } else { $boards = listBoards(); foreach ($boards as &$_board) { @@ -829,7 +836,7 @@ if ($step == 0) { echo Element('page.html', $page); } elseif ($step == 5) { $page['title'] = 'Installation complete'; - $page['body'] = '

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

'; + $page['body'] = '

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

'; $boards = listBoards(); foreach ($boards as &$_board) {