Location: PHPKode > projects > Absolut Engine > absolut-engine-33870/showarticle.php
<?
define(TEMPDIR,'admin/');
require(TEMPDIR."coreclass.php");
$aepublic=new CArticles();
$aepublic->PublicInitialize();
$aepublic->RequestVariables();
$date=$aepublic->DateConversion($date,1);
$aepublic->GetArchive(1,0,0,0,0,$aepublic->articleID);
$aepublic->DBGetRow();
$aepublic->GetArticle();
$aepublic->UpdateArticleStats();
$aepublic->ReplaceImageTags(0); // Set to 1 if you want to replace image tags in text
$aepublic->ReplaceFileTags(0); // Set to 1 if you want to replace file tags in text
echo '<h1>';
$aepublic->GetArticleTitle();
echo '</h1>';
$aepublic->GetArticleAuthor();
echo ' | ';
$aepublic->GetArticleDate();
echo ' | ';
$aepublic->GetArticleTime();
echo ' | Views: ';
$aepublic->GetArticleStats();
echo ' | ';
$aepublic->GetArticleSection();
echo '<p>';
$aepublic->GetArticleBeginning();
echo '</p><p>';
$aepublic->GetArticleText();
echo '</p><p>';
$aepublic->GetArticleImages('',' ');
echo '</p><p>';
$aepublic->GetArticleFiles('<br><strong>','</strong>');
$aepublic->GetRelatedArchive($aepublic->articleID);
$related=0;
while ($aepublic->DBAccess())
{
$related++;
if ($related==1) echo '</p><p>Related articles:<br>';
$aepublic->GetRelatedArticle();
if ($aepublic->cleanurls)
   {
   if ($aepublic->filename) echo '<a href="',$aepublic->GetArticleFilename(),'">';
   else echo '<a href="showarticle.php?articleID=',$aepublic->GetArticleID(),'">';
   }
else echo '<a href="showarticle.php?articleID=',$aepublic->GetArticleID(),'">';
$aepublic->GetArticleTitle();
echo '</a><br>';
}
echo '</p>';
require('showdiscussion.php');
?>
Return current item: Absolut Engine