summaryrefslogtreecommitdiff
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
parentc13ce6a35c87e9367f19fcb948b3bf4f97014fe7 (diff)
License change
-rw-r--r--LICENSE.md8
-rw-r--r--install.php13
2 files changed, 17 insertions, 4 deletions
diff --git a/LICENSE.md b/LICENSE.md
index 2c79e0e9..1c0cf3d3 100644
--- a/LICENSE.md
+++ b/LICENSE.md
@@ -8,8 +8,10 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
-All copyright notices and this permission notice shall be included in
-all copies or substantial portions of the Software.
+All copyright notices and permission notices (including this file) shall be
+included and remain unedited in all copies or substantial portions of the
+Software. This explicitly includes but is not limited to the Tinyboard copyright
+notices found in the footers of some template files.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
@@ -17,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE. \ No newline at end of file
+THE SOFTWARE.
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);