%%member%%
roots.encielo.org
2002-08-16 16:41:00

%%prequery%%
$this->statuswhere= " AND (obj.status='posted' OR (obj.sitememberid='$foldermember->sitememberid' AND obj.status='new')) "; 
          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; 
          if ($this->folderid!=11) $this->canCreate=1; 
          $this->canSave[document]=1; 
          $this->canSave[image]=1; 
          $this->canSave[audio]=1; 
          $this->canSave[video]=1; 
          $this->canSave[comment]=1; 
          $this->canSave[sitemember]=1; 
          $this->canSave[member]=1;

%%end of policy%%
