Location: PHPKode > projects > Absolut Engine > absolut-engine-33870/admin/modules/discussions/guestmodify.php
<?
$tempdirmod="modules/discussions/";
require(TEMPDIR.$tempdirmod."coreclass.php");
$aepublic=new CDiscussions();
$aepublic->PublicInitialize();
$aepublic->RequestVariables(1);

if ($aepublic->command=="discussions1") // adds comment to the article
   {
   $adate=date("Y-m-d");
   $atime=date("H:i:s");
   $aepublic->DBQuery("INSERT INTO ".$aepublic->tablediscussions[0]." VALUES (NULL,'".$aepublic->articleID."','".$aepublic->name."','".$aepublic->email."','".$aepublic->url."','".$aepublic->comment."','$adate','$atime')");
   header("location: http://".$aepublic->server."/".$aepublic->path."showarticle.php?articleID=".$aepublic->articleID);
   exit;
   }
?>
Return current item: Absolut Engine