示例#1
0
 function _del()
 {
     global $site_owner;
     //		print "$site_owner";
     if ($_SESSION['auser'] != $site_owner && $this->authorid != $_SESSION['aid']) {
         return false;
     }
     if (!$this->id) {
         return false;
     }
     if ($this->count() || $this->dbcount()) {
         $this->_fetchchildren();
         for ($i = 0; $i < $this->numchildren; $i++) {
             $this->children[$i]->_del();
         }
         $this->numchildren = 0;
     }
     discussion::delID($this->id);
 }