Skip to content
Browse files

Merge branch 'master' of github.com:vichan-devel/Tinyboard

  • Loading branch information...
2 parents 0ab8890 + 30d2f3a commit a93f168c79a0c8137a6d9032d42e598469b4b072 @czaks czaks committed
Showing with 8 additions and 1 deletion.
  1. +1 −1  LICENSE.md
  2. +3 −0  inc/config.php
  3. +4 −0 post.php
View
2  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
View
3  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
View
4 post.php
@@ -16,6 +16,10 @@ function strip_array($var) {
$_POST = strip_array($_POST);
}
+if (!$_POST['mod'] && $config['board_locked']) {
+ error("Board is locked");
+}
+
if (isset($_POST['delete'])) {
// Delete

0 comments on commit a93f168

Please sign in to comment.
Something went wrong with that request. Please try again.