userid : 0; $result = mysql_query("INSERT INTO appComments VALUES (null, null, $thread, ". "$appId, $versionId, $userId, '$hostname', '$subject', ". "'$body', 0)"); if (!$result) { errorpage('Internal Database Access Error',mysql_error()); exit; } addmsg("New Comment Posted", "green"); redirect(apidb_fullurl("appview.php?appId=$appId&versionId=$versionId")); } else { apidb_header("Add Comment"); $mesTitle = "Post New Comment"; if($thread) { $result = mysql_query("SELECT subject,body FROM appComments WHERE commentId = $thread"); $ob = mysql_fetch_object($result); if($ob) { $mesTitle = "Replying To ... $ob->subject\n"; echo html_frame_start($ob->subject,500); echo htmlify_urls($ob->body), "

\n"; echo html_frame_end(); } } echo "
\n"; echo html_frame_start($mesTitle,500,"",0); echo '',"\n"; echo "\n"; echo " \n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo "
From:  ". ($current->username ? $current->username : "Anonymous") ."
Subject:  
\n"; echo " \n"; echo " \n"; echo "
\n"; echo html_frame_end(); echo "\n"; echo "\n"; echo "\n"; echo "

 

\n"; apidb_footer(); } ?>