%%comment-delete-member-html%%
2002-07-21 17:17

%%preprocess%%
$this->getBaseUrl();

if ($sitemember->id==$this->sitememberid) {
	switch (true) {
		case ($this->status=="deleted") : 
			$this->status= "hidden";
			break;
		
		case ($this->status!="deleted") : 
			$this->status= "deleted";
			break;
		}
	$this->updateObject();
	}
else {
	berror("Sorry, you may not delete someone else's comment.",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%%
if (!$GLOBALS['debug']) {
	header("Location: $this->idUrl?method=view$session->cgi");
	print "Redirecting to $this->idUrl now.";
	}
 
%%end of context%%
