%%writer%%
2002-09-17 20:11:00

%%prequery%%
  if ($this->statuswhere=="") $this->statuswhere= "AND (obj.status='posted' OR obj.status='new' OR (obj.sitememberid='$sitemember->id' AND obj.status!='deleted') ) "; 
  if ($this->publicwhere=="") { 
      $this->publicwhere= " AND obj.public LIKE '%' "; 
      }  
  if ($this->insertstatus=="") $this->insertstatus= "posted";
  if ($this->insertpublic=="") $this->insertpublic= "1";
  if ($this->insertrank=="") $this->insertrank= "100";
  $this->updatestatus= "";
  $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->canSave[all]=1; 
$this->canSavenew[all]=1; 

%%end of policy%%
