%%comment-duplicate-writer-html%%
2002-12-27 22:18

%%preprocess%%
$this->id= "";

// set flavor and name
$this->flavor= "Frame";
// generate a unique name
$this->name= date("Ymd").".".substr(uniqid(""),-4);
berror("Comment Name is $this->name, a new comment on $this->parentobjtype #$this->parentid.",1);

$this->insertObject();
berror("Inserted new comment ($this->id) on $this->parentobjtype #$this->parentid.",1);

%%header%%

%%css%%

%%template%%

%%listrow%%

%%nullobject%%
<img src='/bicons/warning.png' alt='Warning' align=absmiddle> Sorry, that frame is not available for duplicating.

%%footer%%

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

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

%%end of context%%
