$start_topics_selected = ""; } echo "\t<TR align=\"center\" class=\"topic_title6\">\n\t\t<TD>{$grow['1']}</TD>\n\t\t<TD><input name=\"show_forum_" . $grow[0] . "\" type=\"checkbox\" value=\"1\"" . $show_forum_selected . "></TD>\n\t\t<TD><input name=\"read_topics_" . $grow[0] . "\" type=\"checkbox\" value=\"1\"" . $read_topics_selected . "></TD>\n\t\t<TD><input name=\"reply_topics_" . $grow[0] . "\" type=\"checkbox\" value=\"1\"" . $reply_topics_selected . "></TD>\n\t\t<TD><input name=\"start_topics_" . $grow[0] . "\" type=\"checkbox\" value=\"1\"" . $start_topics_selected . "></TD>\n\t</TR>\n"; } echo "</TABLE>\n"; } echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\">\n\t<TR class=\"topic_title5\">\n\t\t<TD width=\"100%\" align=\"center\">\n\t\t\t<input type=\"submit\" name=\"Submit\" value=\"Edit�this�forum\" class=\"textinput\">\n\t\t\t<input type=\"reset\" name=\"Reset\" value=\"Restore\" class=\"textinput\">\n\t\t</TD>\n\t</TR>\n</TABLE>\n\t\t</TD>\n\t</TR>\n\t</form>\n</TABLE>\n"; clmain_body(); } else { if ($GET_code == "dropcategory" && $GET_c) { $category_name = get_categoryname($GET_c); opmain_body("Delete Category"); echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\">\n\t<TBODY>\n\t<form action=\"index.php?act=forum_manage&manage=dropcategory\" method=\"post\" enctype=\"multipart/form-data\" name=\"Category_Form\">\n\t<input type=\"hidden\" name=\"c\" value=\"{$GET_c}\">\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD height=\"27\" colspan=\"2\"><div class=\"title_face\">{$category_name}</div></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"30%\"><div class=\"title_face4\"><B>Category to remove:</B></div></TD>\n\t\t\t<TD width=\"70%\"><B>{$category_name}</B></TD>\n\t\t</TR>\n\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t<TD width=\"100%\" colspan=\"2\" align=\"center\">\n\t\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"Delete�this�category\" class=\"textinput\">\n\t\t\t\t</TD>\n\t\t</TR>\n\t</form>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } else { if ($GET_code == "dropforum" && $GET_f) { $category_name = get_categoryname(check_category($GET_f)); $forum_name = get_forumname($GET_f); opmain_body("Delete Forum"); echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\">\n\t<TBODY>\n\t<form action=\"index.php?act=forum_manage&manage=dropforum\" method=\"post\" enctype=\"multipart/form-data\" name=\"Forum_Form\">\n\t<input type=\"hidden\" name=\"f\" value=\"{$GET_f}\">\n\t\t<TR class=\"topic_title5\">\n\t\t\t<TD height=\"27\" colspan=\"2\"><div class=\"title_face\">{$category_name} -> {$forum_name}</div></TD>\n\t\t</TR>\n\t\t<TR class=\"topic_title6\">\n\t\t\t<TD width=\"30%\"><div class=\"title_face4\"><B>Forum to remove:</B></div></TD>\n\t\t\t<TD width=\"70%\"><B>{$forum_name}</B></TD>\n\t\t</TR>\n\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t<TD width=\"100%\" colspan=\"2\" align=\"center\">\n\t\t\t\t\t<input type=\"submit\" name=\"Submit\" value=\"Delete�this�forum\" class=\"textinput\">\n\t\t\t\t</TD>\n\t\t</TR>\n\t</form>\n\t</TBODY>\n</TABLE>\n"; clmain_body(); } } } } } } } } else { redir("index.php?act=idx", "{$lang['No_privilege']}", 3); }
$GET_st = 0; } $GET_st = (int) $GET_st; $page = get_page($GET_st, $CONFIG_per_page); $query = "SELECT COUNT(*) FROM {$CONFIG_sql_cpdbname}.board_reply WHERE topic_id =\"" . mysql_res($GET_showtopic) . "\""; $sql->result = $sql->execute_query($query, 'showtopic.php'); $sql->total_query++; $total = $sql->result(); $query = "SELECT reply_id,reply_user_id,reply_emo,reply_date,reply_edit_date,reply_message,reply_ip,reply_edit_name,reply_upload\n\tFROM {$CONFIG_sql_cpdbname}.board_reply\n\tWHERE topic_id =\"" . mysql_res($GET_showtopic) . "\" ORDER by reply_id ASC LIMIT " . mysql_res($GET_st) . "," . mysql_res($CONFIG_per_page) . ""; $sql->result = $sql->execute_query($query, 'showtopic.php'); $sql->total_query++; $topic_name = $row["topic_name"]; $topic_description = $row["topic_description"]; $topic_closed = $row["closed_mode"]; $topic_pin = $row["pinned_mode"]; $category_name = get_categoryname($category_id); $forum_name = get_forumname($forum_id); if ($sql->count_rows($sql->result2)) { $sql->execute_query("UPDATE {$CONFIG_sql_cpdbname}.board_topic SET topic_reading=topic_reading+1 WHERE topic_id=\"" . mysql_res($GET_showtopic) . "\" ", 'showtopic.php', 0); if (!empty($topic_description)) { $topic_description = ", {$topic_description}"; } echo "\n<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TBODY>\n\t\t<TR>\n\t\t\t<TD colspan=\"2\">\n\t\t\t\t<B><a href=\"index.php?act=forum\">" . $CONFIG_forum_name . "</a> -> <a href=\"#\" onclick=\"return false;\">{$category_name}</a> -> <a href=\"index.php?showforum={$forum_id}\">{$forum_name}</a></B><BR><BR>\n\t\t\t</TD>\n\t\t</TR>\n\t\t<TR>\n\t\t\t<TD>\n"; get_selectpage($total, $CONFIG_per_page, $page, "index.php?showtopic={$GET_showtopic}"); echo "\t\t\t</TD>\n\t\t\t<TD align=\"right\">\n"; if ($topic_closed == '1' && checkprivilege_action($CP[login_id], g_post_closed_topics)) { $t_reply = "<a href=\"index.php?act=post&code=01&f={$forum_id}&t={$GET_showtopic}\"><img src =\"theme/{$STORED['THEME']}/images/webboard/t_closed.gif\" border=\"0\" alt=\"Closed Topic\"></a>"; } else { if ($topic_closed == '1') { $t_reply = "<img src =\"theme/{$STORED['THEME']}/images/webboard/t_closed.gif\" border=\"0\" alt=\"Closed Topic\">"; } else {