Location: PHPKode > projects > Absolut Engine > absolut-engine-33870/index.php
<?
define(TEMPDIR,"admin/");
require(TEMPDIR."coreclass.php");
$aepublic=new CArticles();
$aepublic->PublicInitialize();
$aepublic->RequestVariables();
$date=$aepublic->DateConversion($date,1);
if (!$aepublic->articlenumber) $aepublic->articlenumber=10;
$aepublic->GetArchive($aepublic->articlenumber,0,$aepublic->sectionID);
while ($aepublic->DBGetRow())
{
$aepublic->GetArticle();
echo '<h1>';
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></h1>';
//$aepublic->GetAuthorPhoto();
$aepublic->GetArticleAuthor();
echo ' | ';
$aepublic->GetArticleDate();
echo ' | ';
$aepublic->GetArticleTime();
echo ' | ';
$aepublic->GetArticleSection();
echo '<p>';
// show first image only if no author's photo has been found:
if (!$this->authorphoto) $aepublic->GetArticleImages("","",1,1);
$aepublic->GetArticleBeginning();
echo '</p>';
}
?>
Return current item: Absolut Engine