Absolut Engine PHP Cross Reference Web Portal Systems

Source: /showarticle.php - 64 lines - 2240 bytes - Summary - Text - Print

   1  <?
   2  define('TEMPDIR','admin/');
   3  require(TEMPDIR."coreclass.php");
   4  $aepublic=new CArticles();
   5  $aepublic->PublicInitialize();
   6  $aepublic->RequestVariables();
   7  $aepublic->GetArchive(1,0,0,0,0,$aepublic->articleID);
   8  $aepublic->DBGetRow();
   9  $aepublic->GetArticle();
  10  $aepublic->UpdateArticleStats($aepublic->GetArticleID());
  11  // $aepublic->ReplaceImageTags(0); // Set to 1 if you want to replace image tags in text

  12  // $aepublic->ReplaceFileTags(0); // Set to 1 if you want to replace file tags in text

  13  echo '<h1>';
  14  $aepublic->GetArticleTitle();
  15  echo '</h1>';
  16  $aepublic->GetArticleAuthor();
  17  $aepublic->GetAuthorName();
  18  echo ' | ';
  19  $aepublic->GetArticleDate();
  20  echo ' | ';
  21  $aepublic->GetArticleTime();
  22  echo ' | Views: ';
  23  $aepublic->GetArticleStats($aepublic->GetArticleID());
  24  echo '<br />';
  25  $aepublic->GetArticleText();
  26  echo '<br />';
  27  echo '<p>';
  28  echo 'Published in sections: ';
  29  $aepublic->GetArticleSections($aepublic->GetArticleID());
  30  while ($aepublic->DBGetRow())
  31        {
  32        $aepublic->GetSectionName();
  33        echo ' :: ';
  34        }
  35  echo '</p>';
  36  $aepublic->GetArticleImageSet($aepublic->imagesetID);
  37  while ($aepublic->DBGetRow())
  38        {
  39        echo '<img src="',$aepublic->pathimages,$aepublic->GetImageName(),'" alt="',$aepublic->GetImageDescription(),'"><br />';
  40        }
  41  $aepublic->GetArticleFileSet($aepublic->filesetID);
  42  while ($aepublic->DBGetRow())
  43        {
  44        echo '<a href="',$aepublic->pathfiles,$aepublic->GetFileName(),'">',$aepublic->GetFileName(),'</a><br />';
  45        }
  46  $aepublic->GetRelatedArchive($aepublic->GetArticleID());
  47  $i=0;
  48  while ($aepublic->DBGetRow())
  49        {
  50        //$syndicated=$aepublic->TestSyndication();

  51        //if ($aepublic->topsectionID AND !$syndicated) continue;

  52        $i++;
  53        if ($i==1) echo '<br />Related articles:<br />';
  54        $aepublic->GetArticle();
  55        if ($aepublic->cleanurls)
  56           {
  57           if ($aepublic->filename) echo '<a href="',$aepublic->GetArticleFilename(),'">';
  58           else echo '<a href="showarticle.php?articleID=',$aepublic->GetArticleID(),'">';
  59           }
  60        else echo '<a href="showarticle.php?articleID=',$aepublic->GetArticleID(),'">';
  61        $aepublic->GetArticleTitle();
  62        echo '</a><br />';
  63        }
  64  ?>

title

Description

title

Description

title

Description

title

title

Body