added support for sage in index, config, style4
parent
0b736c61a9
commit
d93f2e1574
|
@ -17,6 +17,8 @@ $settings = array(
|
|||
"title" => 'Endboard rules', // title shown when the overboard is displayed
|
||||
"enable_logging" => TRUE, // set to FALSE to disable all logs of endboard. This will provide stricter privacy, however, it will also
|
||||
// disable the features: max_post_*, bot_block, portal, max_requests_* and fail2ban.
|
||||
"enable_sage" => TRUE, // show the option to not bump a thread
|
||||
"auto_sage" => 20, // don't bump threads after x replies. Set to zero to disable.
|
||||
"enable_portal" => TRUE, // show a portal page to first time visitors that they have to click away
|
||||
"enable_portal_mobile" => TRUE, // show a portal page to first time visitors that they have to click away, for the mobile site
|
||||
"enable_portal_tor" => TRUE, // require the portal from tor users as well. On tor this will offer less protection, obviously.
|
||||
|
|
|
@ -163,6 +163,24 @@ a:active {
|
|||
color: purple;
|
||||
text-decoration: underline;
|
||||
}
|
||||
input[type=checkbox] {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
|
||||
padding:5px 15px;
|
||||
font-size: 2px;
|
||||
background-color: black;
|
||||
accent-color: black;
|
||||
color:#11bbcc;
|
||||
border:0 none;
|
||||
cursor:pointer;
|
||||
-webkit-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
input[type="checkbox"]:checked {
|
||||
background-color: #11bbcc;
|
||||
}
|
||||
input[type=submit] {
|
||||
padding:5px 15px;
|
||||
background-color:black;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This is the endboard software, version beta 0.71
|
||||
* This is the endboard software, version beta 0.72
|
||||
* It is a forced anonymous textboard without timestamps, written for the
|
||||
* use in the darknets.
|
||||
*
|
||||
|
@ -1766,7 +1766,9 @@ function make_post($db, $sub, $settings, $text, $org_id)
|
|||
$statement->bindParam(1, $text);
|
||||
$statement->execute();
|
||||
|
||||
if ( ($org_id != $post_id) && ($settings['enable_bumping'] == TRUE) ){
|
||||
if ( ($org_id != $post_id) &&
|
||||
($settings['enable_bumping'] == TRUE) &&
|
||||
(!isset($_POST['sage'])) ){
|
||||
bump_message($db, $org_id, $sub);
|
||||
}
|
||||
|
||||
|
@ -3020,19 +3022,24 @@ function show_post_form($db, $msg, $sub, $settings, $org_id, $css, $quote, $ip)
|
|||
. "name='post_token' value='$token'>$math_one "
|
||||
. "$math_type $math_two <input type='text' "
|
||||
. "required name='math_answer' maxlength=32 "
|
||||
. "placeholder='Answer'>"
|
||||
. "<input type='submit' value='Post this'><br></td>";
|
||||
. "placeholder='Answer'>";
|
||||
} else {
|
||||
$hash = hash('sha512', $token);
|
||||
|
||||
$html_string .= "<input type='hidden' name='post_token' "
|
||||
. "value='$token'><tr><td>"
|
||||
. "<input type='submit' value='Post this'><br></td>";
|
||||
. "value='$token'><tr><td>";
|
||||
}
|
||||
|
||||
if ($settings['enable_sage']) {
|
||||
$html_string .= "<input type='checkbox' value='sage' name='sage'"
|
||||
. "id='sage'><label for='sage'>sage</label>";
|
||||
}
|
||||
|
||||
$html_string .= "<input type='submit' value='Post this'><br></td>";
|
||||
$html_string .= '</table></form></div><hr>';
|
||||
|
||||
$statement = $db->prepare("INSERT OR IGNORE INTO captchas(hash, unix_timestamp)
|
||||
$statement = $db->prepare("INSERT OR IGNORE
|
||||
INTO captchas(hash, unix_timestamp)
|
||||
VALUES ('$hash', '$current')");
|
||||
$statement->execute();
|
||||
|
||||
|
|
Loading…
Reference in New Issue