forked from leftypol/leftypol
commit
56b29f799a
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
4
post.php
4
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue