diff --git a/opt/show_tools.php b/opt/show_tools.php index b2974b5..5c5ba26 100644 --- a/opt/show_tools.php +++ b/opt/show_tools.php @@ -150,7 +150,9 @@ function show_post_form($db, $msg, $sub, $settings, $org_id, $css, $quote, $ip) . "" . ""; - if ( (!$org_id) && $sub == 'main') { + if ( (!$org_id) && + ($sub == 'main') && + ($settings['enable_sub_creation'] == TRUE) ) { $html_string .= ""; @@ -454,10 +455,12 @@ function show_subs_count($db, $css, $settings) } // Show the existing subs to a user, without the count -function show_subs_no_count($db, $css) +function show_subs_no_count($db, $css, $settings) { + $title = $settings['hover_title_overboard']; - $html_string = "

overboard"; + $html_string = "

overboard"; $statement = $db->prepare("SELECT DISTINCT sub FROM threads @@ -469,7 +472,9 @@ function show_subs_no_count($db, $css) while ($row = $result->fetchArray(SQLITE3_NUM)) { $sub = "{$row[0]}"; if ( ($sub != '') ) { - $html_string .= " | $sub"; + $title = get_first_post_text($db, $sub, $settings); + $html_string .= " | $sub"; +// $html_string .= " | $sub"; } } diff --git a/srv/index.php b/srv/index.php index 7310755..5e79654 100644 --- a/srv/index.php +++ b/srv/index.php @@ -554,7 +554,7 @@ switch($mode) { } show_landing_page($css); - show_subs_no_count($db, $css); + show_subs_no_count($db, $css, $settings); lay_trap($settings); print_footer_landing($db, $settings); quit($db, "");

"; } @@ -233,7 +235,6 @@ function show_post_form($db, $msg, $sub, $settings, $org_id, $css, $quote, $ip) if ($settings['enable_timestamps']) { $html_string .= "timestamp"; - //. "id='timestamp'>"; } $html_string .= "