%%anonymous%%
2002-11-07 10:08

%%prequery%%
$this->statuswhere= " AND obj.status='posted' ";
$this->statusfolder= " AND folder.status='posted' ";
$this->publicwhere= " AND obj.public=1 ";
$this->publicfolder= " AND folder.public=1 ";
$this->insertstatus= "new";
$this->insertpublic= "0";
$this->insertrank= "100";
$this->updatestatus= "new";
$this->updatepublic= "0";
$this->updaterank= "0";
if ($this->orderby!= "") {
	// do nothing
	}
elseif ($getvars[orderby]!="") {
if ($getvars[direction]!="") $direct= 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->canSavenew[member]=1;
$this->canSavenew[sitemember]=1;
$this->canSavenew[comment]=1;
$this->canSave[comment]=1;

%%end of policy%%
