%%member%%
2002-11-08 10:02

%%prequery%%
$this->statuswhere= " AND (obj.status='posted' OR (obj.sitememberid='$sitemember->id' AND obj.status='new')) ";
$this->statusfolder= " AND folder.status='posted' ";
if ($this->publicwhere=="") $this->publicwhere= " AND obj.public LIKE '%' ";
if ($this->publicfolder=="") $this->publicfolder= " AND folder.public LIKE '%' ";
if ($this->insertstatus=="") $this->insertstatus= "new";
if ($this->insertpublic=="") $this->insertpublic= "1";
if ($this->insertrank=="") $this->insertrank= "100";
$this->updatestatus= "posted";
$this->updatepublic= "";
$this->updaterank= "";
if ($this->orderby!= "") {
	// do nothing
	}
elseif ($getvars[orderby]!="") {
if ($getvars[direction]!="") $direction= strtoupper(addslashes($getvars[direction]));
	$orderby= strtoupper(addslashes($getvars[orderby]));
	$this->orderby= "ORDER BY obj.$orderby $direction";
	}
else $this->orderby= "ORDER BY obj.id ASC";
if ($getvars[limit]!="") {
	$offset= strtoupper(addslashes($getvars[offset]));
	$limit= strtoupper(addslashes($getvars[limit]));
	if ($offset!="") $this->limit= "LIMIT $offset, $limit ";
	else $this->limit= "LIMIT $limit ";
	}
else $this->limit= "LIMIT 30 ";

%%addons%%
$this->canAddChild=1;
$this->canCreate=1;
$this->canSave[document]=0;
$this->canSave[image]=0;
$this->canSave[audio]=0;
$this->canSave[video]=0;
$this->canSave[comment]=1;
$this->canSave[sitemember]=1;
$this->canSave[member]=1;
$this->canSave[event]=1;

%%end of policy%%
