summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-11-14 12:46:22 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-11-14 12:46:22 +1100
commit1ca037732fff95610bd37061db792f9de2a627b5 (patch)
treea5d4610b870f2d4c80c267cb9bb340729cd67b67 /install.php
parentc13ce6a35c87e9367f19fcb948b3bf4f97014fe7 (diff)
License change
Diffstat (limited to 'install.php')
-rw-r--r--install.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/install.php b/install.php
index 6cd5f1fc..b14d8903 100644
--- a/install.php
+++ b/install.php
@@ -1,6 +1,6 @@
<?php
// Installation/upgrade file
- define('VERSION', 'v0.9.4-dev-2');
+ define('VERSION', 'v0.9.4-dev-3');
require 'inc/functions.php';
require 'inc/display.php';
@@ -133,6 +133,17 @@
foreach($boards as &$board) {
query(sprintf("ALTER TABLE `posts_%s` ADD `sage` INT( 1 ) NOT NULL AFTER `locked`", $board['uri'])) or error(db_error());
}
+ case 'v0.9.4-dev-2':
+ if(!isset($_GET['confirm'])) {
+ $page['title'] = 'License Change';
+ $page['body'] = '<p style="text-align:center">You are upgrading to a version which uses an amended license. The licenses included with Tinyboard distributions prior to this version (v0.9.4-dev-2) are still valid for those versions, but no longer apply to this and newer versions.</p>' .
+ '<textarea style="width:700px;height:370px;margin:auto;display:block;background:white;color:black" disabled>' . htmlentities(file_get_contents('LICENSE.md')) . '</textarea>
+ <p style="text-align:center">
+ <a href="?confirm=1">I have read and understood the agreement. Proceed to upgrading.</a>
+ </p>';
+ break;
+ }
+
case false:
// Update version number
file_write($config['has_installed'], VERSION);