예제 #1
0
파일: forum.php 프로젝트: tilitala/nForum
 /**
  *
  * @param string $name
  * @static
  * @access public
  * @throws AttException
  */
 public static function delAttach($name)
 {
     $ret = bbs_upload_del_file($name);
     if ($ret != 0) {
         throw new AttException(ECode::kbs2code($ret));
     }
 }
예제 #2
0
파일: article.php 프로젝트: tilitala/nForum
 public function delAttach($num)
 {
     $ret = bbs_attachment_del($this->_board->NAME, $this->ID, $num);
     if (!is_array($ret)) {
         throw new ArchiveAttException(ECode::kbs2code($ret));
     }
     return $ret;
 }