/////////////////////////////////////////////////////////////////////////////////// // // // phpBoard -- Copyright (c) 2000 by Nathan Clemons // // nathan@thelinuxcommunity.org // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation; either version 2 of the License, or // // (at your option) any later version. // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // // /////////////////////////////////////////////////////////////////////////////////// require "config_inc.php3"; require $inc_dir . "sql_inc.php3"; require $inc_dir . "lib_inc.php3"; require $inc_dir . $user_lib; if ($thread_name != "") { $thread_name = stripslashes($thread_name); $title = "New Reply to $thread_name"; } else { $title = "New Topic in $category @ $site_name"; } include $inc_dir . "header.php3"; top_bar(); if ($query) { $db_link = SQL_connect(); $statement = "SELECT status FROM articles WHERE id=$query"; $db_result = SQL_query($statement, $db_link); $rows = SQL_get_aff_rows($db_link, $db_result); if ($rows > 0) { $row = SQL_fetch_array($db_result, 0); if (isset_bit($lstatus, $FLAG_LOCKED_THREAD)) { print("
This thread is locked; you may not reply to it.
"); include $inc_dir . "footer.php3"; exit; } } } print("\n"); include $inc_dir . "footer.php3"; ?>