Location: PHPKode > projects > Absolut Engine > absolut-engine-33870/showdiscussion.php
<?
/* Uncomment following two lines when called directly (not from showarticle.php):
define(TEMPDIR,'admin/');
require(TEMPDIR."coreclass.php");
*/
require(TEMPDIR."modules/discussions/coreclass.php");
$aepublic=new CDiscussions();
$aepublic->PublicInitialize();
$aepublic->RequestVariables();
echo 'aaa';
echo '<hr><p>';
echo '<a href="addcomment.php?articleID=',$aepublic->GetArticleID(),'">Add comment to the article...</a>';
echo '</p>';
$aepublic->GetDiscussion();
while ($aepublic->DBGetRow())
{
echo '<p><strong>';
if ($aepublic->GetDiscussionEmail()) echo '<a href="mailto:',$aepublic->GetDiscussionEmail(),'">';
$aepublic->GetDiscussionName();
if ($aepublic->GetDiscussionEmail()) echo '</a>';
if ($aepublic->GetDiscussionEmail()) echo ' (',$aepublic->GetDiscussionEmail(),')';
echo '</strong> ';
if ($aepublic->GetDiscussionURL()) echo ' | www: <a href="',$aepublic->GetDiscussionURL(),'">',$aepublic->GetDiscussionURL(),'</a> |';
echo ' wrote on ';
$aepublic->GetDiscussionDate();
echo ' at ';
$aepublic->GetDiscussionTime();
echo ':<br>';
$aepublic->GetDiscussionComment();
echo '</p>';
}
?>
Return current item: Absolut Engine