From 014f9734acee30c214ee201c0407c449b0b4044b Mon Sep 17 00:00:00 2001 From: Ben Holden-Crowther Date: Thu, 1 Jan 2015 10:48:28 +0000 Subject: [PATCH 1/3] Updated license date Updated license date to 2015 for new year. --- LICENSE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE.md b/LICENSE.md index 942ac82a..23b680b6 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,5 +1,5 @@ # License of vichan -Copyright (c) 2012-2014 vichan-devel +Copyright (c) 2012-2015 vichan-devel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 2d396c4eb8a96f3b3da0eb0ed00a83f049e9b0ef Mon Sep 17 00:00:00 2001 From: Wesley Date: Sun, 15 Feb 2015 21:16:36 -0500 Subject: [PATCH 2/3] Add E Z board locking feature --- post.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/post.php b/post.php index 45fd021e..d1c963f5 100644 --- a/post.php +++ b/post.php @@ -16,6 +16,10 @@ if (get_magic_quotes_gpc()) { $_POST = strip_array($_POST); } +if (!$_POST['mod'] && $config['board_locked']) { + error("Board is locked"); +} + if (isset($_POST['delete'])) { // Delete From aa0d606651a6dc0de4a9b430d89825245a65b15e Mon Sep 17 00:00:00 2001 From: yeltsew7 Date: Sun, 15 Feb 2015 21:23:26 -0500 Subject: [PATCH 3/3] Add in E Z board locking --- inc/config.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/config.php b/inc/config.php index 016b7f77..edbe7b2a 100644 --- a/inc/config.php +++ b/inc/config.php @@ -286,6 +286,9 @@ // Public and private key pair from https://www.google.com/recaptcha/admin/create $config['recaptcha_public'] = '6LcXTcUSAAAAAKBxyFWIt2SO8jwx4W7wcSMRoN3f'; $config['recaptcha_private'] = '6LcXTcUSAAAAAOGVbVdhmEM1_SyRF4xTKe8jbzf_'; + + // Ability to lock a board for normal users and still allow mods to post. Could also be useful for making an archive board + $config['board_locked'] = false; /* * Custom filters detect certain posts and reject/ban accordingly. They are made up of a condition and an