%%document-removeCharacter-writer-scene%%
2002-12-22 11:46

%%preprocess%%
$remove= $_GET[remove];
berror("<b>removeCharacter</b>: going to remove $remove from:$this->body.",1);

$myObjectArray= explode("^^",$this->body);
berror("<b>removeCharacter</b>: unsetting $myObjectArray[$remove]",1);
unset($myObjectArray[$remove]);
$this->body= implode("^^",$myObjectArray);
$this->updateObject();

%%header%%

%%css%%

%%template%%
<table width='90%' border='0' cellspacing='20' cellpadding='5' align='center'>
<tr> <td> <p><b>UPDATED! $this->objtype object id#$this->id ($this->name):</b></p>
<p>$this->propertiesList</p>
<p><a href='$session->refreshURL'>refresh</a> | <a href='$this->baseURL?method=edit$session->cgi'>edit</a> | <a href='$this->baseURL?method=create$session->cgi'>create new</a> | <a href='$this->baseURL?method=addchild$session->cgi'>add child</a> | <a href='#top'>top</a></p>
</td>
</tr>
</table>


%%listrow%%

%%nullobject%%

%%footer%%

%%postprocess%%
// reset policy to normal levels.
$GLOBALS['session']->applyPolicy();
$this->getBaseUrl();

$redirect="Location: $this->baseUrl";
if ($GLOBALS[debug]) {
 print "<b>Updated!</b><br><a href='$this->baseUrl'>Click here to continue.</a>";
 }
else {
 header($redirect); 
 exit;
 }


%%end of context%%
