added config option (show menu), fixed bug in show_post_history
parent
54398c5043
commit
ab834813b0
|
@ -34,6 +34,7 @@ $settings = array(
|
|||
"enable_sub_main" => TRUE, // enable users to create subs by posting in main
|
||||
"enable_sub_navigation" => TRUE, // enable users to create subs by posting in main
|
||||
"enable_b32_bot" => TRUE, // enable a bot looking for b32 links and translating them to hostnames
|
||||
"enable_menu" => TRUE, // show a menu on overboard and subs
|
||||
"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
|
||||
|
@ -131,7 +132,8 @@ function show_landing_page($css){
|
|||
echo "|<a href=/css=flowers>Flowers</a>|"
|
||||
. "<a href=/css=flowersmono>Flowers with mono font</a>|"
|
||||
. "<a href=/css=trip>Trip</a>|<a href=/css=flicker>Flicker</a>"
|
||||
. "|<a href=/css=unstyled>Unstyled</a>";
|
||||
. "|<a href=/css=unstyled>Unstyled</a>"
|
||||
. "|<a href=/css=simple>Simple</a>";
|
||||
echo "<br><br>Mobile <a href=/mob/s/overboard>site</a>.";
|
||||
echo "<br><br><br>This board uses no javascript, cookies, webbugs or"
|
||||
. " any other invasive stuff.</div><br><br>";
|
||||
|
|
10
opt/show.php
10
opt/show.php
|
@ -360,7 +360,7 @@ function show_post_form($db, $msg, $sub, $settings, $org_id, $css, $quote, $ip)
|
|||
}
|
||||
|
||||
// Shows all versions of a specific post
|
||||
function show_post_history($db, $sub, $post_id, $settings)
|
||||
function show_post_history($db, $sub, $post_id, $settings, $css)
|
||||
{
|
||||
$html_string = '<div class=\'postcontainer\'>';
|
||||
|
||||
|
@ -392,7 +392,8 @@ function show_post_history($db, $sub, $post_id, $settings)
|
|||
$post_id = "{$row[0]}";
|
||||
$org_id = "{$row[1]}";
|
||||
$post_text = "{$row[3]}";
|
||||
$post_text = break_text(bbcode_to_html($post_text, $settings, $sub));
|
||||
$post_text = break_text(bbcode_to_html($post_text, $settings,
|
||||
$sub, $css));
|
||||
$id_text = make_id_text($post_id);
|
||||
$timestamp = "{$row[4]}";
|
||||
$name = "{$row[5]}";
|
||||
|
@ -686,6 +687,11 @@ function show_subs_count($db, $css, $settings)
|
|||
|
||||
function show_subs_navigation($db, $css, $settings)
|
||||
{
|
||||
|
||||
if ( $settings['enable_menu'] ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$out = '';
|
||||
|
||||
if ( (!empty($settings['no_overboard'])) ) {
|
||||
|
|
|
@ -440,7 +440,7 @@ switch($mode) {
|
|||
if (empty($_POST['edit_text'])) {
|
||||
print_top_header($db, "Edit post $sub/$post_id");
|
||||
show_edit_form($db, $sub, $post_id, $visitor_ip, $css, $settings);
|
||||
show_post_history($db, $sub, $post_id, $settings);
|
||||
show_post_history($db, $sub, $post_id, $settings, $css);
|
||||
} else {
|
||||
make_edit($db, $sub, $_POST['post_id'], $visitor_ip, $settings);
|
||||
answer_redirect($sub, $css, '', $settings);
|
||||
|
|
Loading…
Reference in New Issue