0) { echo "Blocked"; mysql_close($connection); exit; } } function fillcategory($table_name,$categoryId,$connection) { $category_option = ""; $query = "select category_id,category_name from cafe_category where table_name='".$table_name."'"; $result = mysql_query($query, $connection); while($row = mysql_fetch_array($result)) { if($row['category_id'] == $categoryId) { $category_option .= "\n"; } else { $category_option .= "\n"; } } return $category_option; } if ( isset ($key) ) { $query = "select parent,subject,userName,useraddress,password,body,category_id from maya_forum where cle = $key"; $result = mysql_query($query, $connection); $row = mysql_fetch_array($result); $body = stripslashes($row['body']); $subject = stripslashes($row['subject']); $userName = $row['userName']; $userAddress = $row['useraddress']; $categoryId = $row['category_id']; $parent = empty($row['parent']) ? 'true' : 'false'; if ( $act == "R" ) { $quote_text = "\n".$userName." wrote:\n".$body; $quote_text = str_replace("\n", "\n>", $quote_text); $quote_text = str_replace('"', "''", $quote_text); $heading = "Reply to ".$userName; $userName = ""; $userAddress = ""; } else { $quote_text = ""; } if ( $act == "E" ) { $heading = "Edit your message"; $edit_text = $body; } else { $edit_text = ""; } } ?>
List | Post | Search | |