opentable($locale['c102']); if (iMEMBER && (isset($_GET['c_action']) && $_GET['c_action'] == "edit") && (isset($_GET['comment_id']) && isnum($_GET['comment_id']))) { $eresult = dbquery( "SELECT tcm.*,user_name FROM ".DB_COMMENTS." tcm LEFT JOIN ".DB_USERS." tcu ON tcm.comment_name=tcu.user_id WHERE comment_id='".$_GET['comment_id']."' AND comment_item_id='".$cid."' AND comment_type='".$ctype."'" ); if (dbrows($eresult)) { $edata = dbarray($eresult); if ((iADMIN && checkrights("C")) || (iMEMBER && $edata['comment_name'] == $userdata['user_id'] && isset($edata['user_name']))) { $clink .= "&c_action=edit&comment_id=".$edata['comment_id']; $comment_message = $edata['comment_message']; } } else { $comment_message = ""; } } else { $comment_message = ""; } if (iMEMBER || $settings['guestposts'] == "1") { require_once INCLUDES."bbcode_include.php"; echo "\n"; echo "
\n"; } else { echo $locale['c105']."\n"; } closetable();