Location: PHPKode > projects > Absolut Engine > absolut-engine-33870/admin/modules/discussions/modify.php
<?
define(TEMPDIR,"../../");
@include(TEMPDIR."coreclass.php");
@include("coreclass.php");
$ae=new CDiscussions();
$ae->EngineInitialize();
$ae->RequestVariables(1);
$ae->UserVerifySession();
$ae->UserVerifyLevel(2);

if ($ae->command==1) // deletes the comment(s) in discussion
   {
   $ae->UserVerifyLevel(2);
   for ($temp=0;$temp<count($ae->commentID);$temp++)
       {
       $tempID=$ae->commentID[$temp];
       $ae->DBQuery("DELETE FROM ".$ae->tablediscussions[0]." WHERE ID='".$tempID."'");
       }
   }

header("location: http://".$ae->server."/".$ae->path."admin/modules/discussions/managerdiscussion.php?username=".$ae->username."&session=".$ae->session."&articlediscID=".$ae->articlediscID);
?>
Return current item: Absolut Engine