diff --git a/install.php b/install.php index 70efbe80..a1ca2100 100644 --- a/install.php +++ b/install.php @@ -506,12 +506,12 @@ if (file_exists($config['has_installed'])) { 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'])) { + if (!isset($_GET['confirm2'])) { $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. + I have read and understood the agreement. Proceed to upgrading.

'; file_write($config['has_installed'], '4.4.97'); @@ -522,6 +522,18 @@ if (file_exists($config['has_installed'])) { if (!$twig) load_twig(); $twig->clearCacheFiles(); case '4.4.98': + if (!isset($_GET['confirm3'])) { + $page['title'] = 'Breaking change'; + $page['body'] = '

You are upgrading to the 5.0 branch of vichan. Please back up your database, because the process is irreversible. At the current time, if you want a very stable vichan experience, please use the 4.5 branch. This warning will be lifted as soon as we all agree that 5.0 branch is stable enough

' . +

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

'; + + file_write($config['has_installed'], '4.4.98'); + + break; + } + foreach ($boards as &$board) { query(sprintf('ALTER TABLE ``posts_%s`` ADD `files` text DEFAULT NULL AFTER `bump`;', $board['uri'])) or error(db_error()); query(sprintf('ALTER TABLE ``posts_%s`` ADD `num_files` int(11) DEFAULT 0 AFTER `files`;', $board['uri'])) or error(db_error());