コード例 #1
0
 function getForums()
 {
     static $result = array();
     if ($result) {
         return $result;
     }
     require_once R_P . 'require/functions.php';
     $forums = getForumCache();
     $result[] = 'È«Õ¾µ÷ÓÃ';
     foreach ($forums as $fid => $forum) {
         if ($forum['type'] == 'category') {
             continue;
         }
         $result[$fid] = $this->_initForumName($forum);
     }
     return $result;
 }
コード例 #2
0
ファイル: invoke.db.php プロジェクト: adi00/wumaproject
 function stripFidByCateid($fids, $cateid)
 {
     global $SCR, $fid;
     $cateid = (int) $cateid;
     if ($SCR == 'cate' && !$cateid) {
         $cateid = $fid;
     }
     if ($cateid) {
         $temp_forum = getForumCache();
         foreach ($fids as $key => $value) {
             if (!isset($temp_forum[$value]) || getCateid($value) != $cateid) {
                 unset($fids[$key]);
             }
         }
     }
     return $fids;
 }
コード例 #3
0
ファイル: common.php プロジェクト: adi00/wumaproject
function getForumName($fid)
{
    $temp_forum = getForumCache();
    if (isset($temp_forum[$fid])) {
        return strip_tags($temp_forum[$fid]['name']);
    }
    return '';
}
コード例 #4
0
ファイル: forums.class.php プロジェクト: sherlockhouse/aliyun
 function getAllForumIds()
 {
     $forums = getForumCache();
     foreach ($forums as $v) {
         $fids[] = $v['fid'];
     }
     return $fids;
 }