%%comment-delete-anonymous-html%%
$Date: 2003/02/06 20:41:32 $

%%preprocess%%
$this->getBaseUrl();
$this->getRuntimeVars();
$this->updateStatus= "deleted";
$this->applyPolicy();
berror("this->update= $this->update | sitemember->role= $sitemember->role | this->p_sessionid= $this->p_sessionid | session->id= $session->id",1);
if ( $this->update || $this->editor ) {
	switch (true) {
		case ($this->status=="deleted") :
			$this->status= "posted";
			break;
		
		case ($this->status!="deleted") : 
			$this->status= "deleted";
			break;
		}
	berror("New status is $this->status.",1);
	$this->updateObject();
	}
else {
	berror("Sorry, you do not have permission to delete this comment. $this->policyReport.",0);
	exit;
	}

%%header%%

%%css%%

%%template%%
Deleted $this->objtype:$this->id ($this->title).<br>
<a href="$this->idUrl?method=view$session->cgi">Continue</a>...

%%listrow%%

%%nullobject%%

%%footer%%

%%postprocess%%
$parent= $this->getParent();
$parent->getRuntimeVars();
if (!$GLOBALS['debug']) {
	header("Location: $parent->baseUrl?method=view$session->cgi");
	print "Redirecting to $parent->baseUrl now.";
	}
else print "Redirecting to $parent->baseUrl now.";

%%end of context%%
