• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_groupnav函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_groupnav函数的典型用法代码示例。如果您正苦于以下问题:PHP get_groupnav函数的具体用法?PHP get_groupnav怎么用?PHP get_groupnav使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_groupnav函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: showmessage

        $navtitle = $thread['subject'] . ' - ';
        if ($thread['readperm'] && $thread['readperm'] > $_G['group']['readaccess'] && !$_G['forum']['ismoderator'] && $thread['authorid'] != $_G['uid']) {
            showmessage('thread_nopermission', NULL, array('readperm' => $thread['readperm']), array('login' => 1));
        }
        $_G['fid'] = $thread['fid'];
        $special = $thread['special'];
    } else {
        showmessage('thread_nonexistence');
    }
    if ($_G['gp_action'] == 'reply' && $thread['closed'] == 1 && !$_G['forum']['ismoderator']) {
        showmessage('post_thread_closed');
    }
}
if ($_G['forum']['status'] == 3) {
    $returnurl = 'forum.php?mod=forumdisplay&fid=' . $_G['fid'] . (!empty($_G['gp_extra']) ? '&action=list&' . preg_replace("/^(&)*/", '', $_G['gp_extra']) : '') . '#groupnav';
    $navigation = ' &rsaquo; <a href="group.php">' . $_G['setting']['navs'][3]['navname'] . '</a> ' . get_groupnav($_G['forum']);
} else {
    if ($_G['gp_from'] != 'portal') {
        $returnurl = 'forum.php?mod=forumdisplay&fid=' . $_G['fid'] . (!empty($_G['gp_extra']) ? '&' . preg_replace("/^(&)*/", '', $_G['gp_extra']) : '');
        $navigation = '&rsaquo; <a href="' . $returnurl . '">' . $_G['forum']['name'] . '</a> ' . $navigation;
    }
    $navtitle = $navtitle . strip_tags($_G['forum']['name']) . ' - ';
    if ($_G['forum']['type'] == 'sub') {
        $fup = DB::fetch_first("SELECT name, fid FROM " . DB::table('forum_forum') . " WHERE fid='" . $_G['forum']['fup'] . "'");
        $navigation = '&rsaquo; <a href="forum.php?mod=forumdisplay&fid=' . $fup['fid'] . '">' . $fup['name'] . '</a> ' . $navigation;
        $navtitle = $navtitle . strip_tags($fup['name']) . ' - ';
    }
    $navigation = ' &rsaquo; <a href="forum.php">' . $_G['setting']['navs'][2]['navname'] . '</a> ' . $navigation;
}
periodscheck('postbanperiods');
if ($_G['forum']['password'] && $_G['forum']['password'] != $_G['cookie']['fidpw' . $_G['fid']]) {
开发者ID:Kingson4Wu,项目名称:php_demo,代码行数:31,代码来源:forum_post.php


示例2: getuserprofile

        $url .= '?sgid=' . $sgid;
    } else {
        $sgid = 0;
    }
}
if (empty($curtype)) {
    if ($_G['uid'] && empty($_G['mod'])) {
        $usergroups = getuserprofile('groups');
        if (!empty($usergroups)) {
            dheader('Location:group.php?mod=my');
            exit;
        }
    }
    $curtype = array();
} else {
    $nav = get_groupnav($curtype);
    $groupnav = $nav['nav'];
    $_G['grouptypeid'] = $curtype['fid'];
    $perpage = 10;
    if ($curtype['forumcolumns'] > 1) {
        $curtype['forumcolwidth'] = floor(100 / $curtype['forumcolumns']) - 0.1 . '%';
        $perpage = $curtype['forumcolumns'] * 10;
    }
}
$seodata = array('first' => $nav['first']['name'], 'second' => $nav['second']['name']);
list($navtitle, $metadescription, $metakeywords) = get_seosetting('group', $seodata);
$_G['cache']['groupindex'] = '';
$data = $randgrouplist = $randgroupdata = $grouptop = $newgrouplist = array();
$topgrouplist = $_G['cache']['groupindex']['topgrouplist'];
$lastupdategroup = $_G['cache']['groupindex']['lastupdategroup'];
$todayposts = intval($_G['cache']['groupindex']['todayposts']);
开发者ID:softhui,项目名称:discuz,代码行数:31,代码来源:group_index.php


示例3: showmessage

    if (!empty($thread)) {
        if ($thread['readperm'] && $thread['readperm'] > $_G['group']['readaccess'] && !$_G['forum']['ismoderator'] && $thread['authorid'] != $_G['uid']) {
            showmessage('thread_nopermission', NULL, array('readperm' => $thread['readperm']), array('login' => 1));
        }
        $_G['fid'] = $thread['fid'];
        $special = $thread['special'];
    } else {
        showmessage('thread_nonexistence');
    }
    if ($thread['closed'] == 1 && !$_G['forum']['ismoderator']) {
        showmessage('post_thread_closed');
    }
}
if ($_G['forum']['status'] == 3) {
    $returnurl = 'forum.php?mod=forumdisplay&fid=' . $_G['fid'] . (!empty($_GET['extra']) ? '&action=list&' . preg_replace("/^(&)*/", '', $_GET['extra']) : '') . '#groupnav';
    $nav = get_groupnav($_G['forum']);
    $navigation = ' <em>&rsaquo;</em> <a href="group.php">' . $_G['setting']['navs'][3]['navname'] . '</a> ' . $nav['nav'];
} else {
    loadcache('forums');
    $returnurl = 'forum.php?mod=forumdisplay&fid=' . $_G['fid'] . (!empty($_GET['extra']) ? '&' . preg_replace("/^(&)*/", '', $_GET['extra']) : '');
    $navigation = ' <em>&rsaquo;</em> <a href="forum.php">' . $_G['setting']['navs'][2]['navname'] . '</a>';
    if ($_G['forum']['type'] == 'sub') {
        $fup = $_G['cache']['forums'][$_G['forum']['fup']]['fup'];
        $t_link = $_G['cache']['forums'][$fup]['type'] == 'group' ? 'forum.php?gid=' . $fup : 'forum.php?mod=forumdisplay&fid=' . $fup;
        $navigation .= ' <em>&rsaquo;</em> <a href="' . $t_link . '">' . $_G['cache']['forums'][$fup]['name'] . '</a>';
    }
    if ($_G['forum']['fup']) {
        $fup = $_G['forum']['fup'];
        $t_link = $_G['cache']['forums'][$fup]['type'] == 'group' ? 'forum.php?gid=' . $fup : 'forum.php?mod=forumdisplay&fid=' . $fup;
        $navigation .= ' <em>&rsaquo;</em> <a href="' . $t_link . '">' . $_G['cache']['forums'][$fup]['name'] . '</a>';
    }
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:31,代码来源:forum_post.php



注:本文中的get_groupnav函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_groups函数代码示例发布时间:2022-05-15
下一篇:
PHP get_groupimg函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap