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

PHP bb_get_footer函数代码示例

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

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



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

示例1: terms_of_service_get

function terms_of_service_get()
{
    bb_send_headers();
    bb_get_header();
    ?>
	<h3 class="bbcrumb"><a href="<?php 
    bb_option('uri');
    ?>
"><?php 
    bb_option('name');
    ?>
</a> &raquo; <?php 
    _e('Terms of Service');
    ?>
</h3>
	<div class="indent">
	<h2 id="register"><?php 
    _e('Terms of Service');
    ?>
</h2>		
	<div id="terms_of_service" style="padding:0.5em 1em 1em 1em; margin:0em 3em; background: #eee; color: #000;">	
	<?php 
    @readfile(rtrim(dirname(__FILE__), ' /\\') . '/terms-of-service.html');
    echo '</div></div>';
    bb_get_footer();
    exit;
}
开发者ID:achorg,项目名称:DH-Answers,代码行数:27,代码来源:terms-of-service.php


示例2: _e

    }
    ?>
</ol>
<?php 
} else {
    if ($page) {
        ?>
<p><?php 
        _e('No more topics posted.');
        ?>
</p>
<?php 
    } else {
        ?>
<p><?php 
        _e('No topics posted yet.');
        ?>
</p>
<?php 
    }
}
?>
</div>

<?php 
profile_pages(array('before' => '<div class="nav">', 'after' => '</div>'));
?>

<?php 
bb_get_footer();
开发者ID:laiello,项目名称:cartonbank,代码行数:30,代码来源:profile.php


示例3: bb_attachments_init

function bb_attachments_init()
{
    global $bbdb, $bb_attachments;
    if (isset($_GET['bb_attachments_diagnostic']) || isset($_GET['bb_attachments_debug'])) {
        include 'debug.php';
    }
    if (isset($_GET['bbat_delete'])) {
        bb_attachments_delete();
    }
    if (isset($_GET['bb_attachments'])) {
        if (isset($_GET['bbat'])) {
            if (isset($_GET['inline'])) {
                bb_attachments_inline();
            } else {
                bb_attachments_download();
            }
        } else {
            if (bb_attachments_location() != 'edit.php') {
                bb_repermalink();
                bb_send_headers();
                bb_get_header();
                bb_attachments($post_id);
                bb_get_footer();
                exit;
            }
        }
    }
    if ($bb_attachments['style']) {
        add_action('bb_head', 'bb_attachments_add_css');
    }
    // add css if present (including Kakumei  0.9.0.2 LI fix!)
    if ($bb_attachments['title'] && !is_topic() && !is_bb_feed()) {
        add_filter('topic_title', 'bb_attachments_title', 200);
    }
    if (isset($_GET["new"]) || is_topic() || is_forum()) {
        add_action('bb_topic.php', 'bb_attachments_cache');
        add_filter('post_text', 'bb_attachments_post_footer', 4);
        add_filter('post_edit_uri', 'bb_attachments_link');
        if (bb_current_user_can($bb_attachments['role']['upload'])) {
            add_action('post_edit_form', 'bb_attachments');
            // auto-insert on post edit form
            if ($bb_attachments['upload_on_new']) {
                add_action('post_form', 'bb_attachments_upload_form');
                // auto-insert on new post form
                add_action('pre_post_form', 'bb_attachments_enctype');
                // multipart workaround on new post form
                // insane bbPress workaround - adds multipart enctype to the new post form via uri patch
                function bb_attachments_enctype()
                {
                    global $topic, $forum;
                    if (is_topic() && bb_current_user_can('write_post', $topic->topic_id) || !is_topic() && bb_current_user_can('write_topic', $forum->forum_id)) {
                        add_filter('bb_get_uri', 'bb_attachments_uri_10', 999, 3);
                        add_filter('bb_get_option_uri', 'bb_attachments_uri', 999);
                        add_action('post_form', 'bb_attachments_remove_uri', 999);
                        add_action('post_post_form', 'bb_attachments_remove_uri', 999);
                    }
                }
                function bb_attachments_uri_10($uri, $resource = '', $context = '')
                {
                    if (strpos($uri, "bb-post.php") !== false && $context && defined('BB_URI_CONTEXT_FORM_ACTION') && $context == BB_URI_CONTEXT_FORM_ACTION) {
                        bb_attachments_remove_uri();
                        return $uri . '"  enctype="multipart/form-data" hack="';
                    }
                    return $uri;
                }
                function bb_attachments_uri($uri)
                {
                    // if (strpos($uri,'bb-post.php')===false) {return $uri;}
                    bb_attachments_remove_uri();
                    return $uri . 'bb-post.php"  enctype="multipart/form-data" hack="';
                }
                function bb_attachments_remove_uri($x = "")
                {
                    remove_filter('bb_get_option_uri', 'bb_attachments_uri', 999);
                    remove_filter('bb_get_uri', 'bb_attachments_uri_10', 999);
                }
            }
        }
    }
    // end else
}
开发者ID:achorg,项目名称:DH-Answers,代码行数:81,代码来源:bb-attachments.php


示例4: recaptcha_bbpress_verify

function recaptcha_bbpress_verify()
{
    if (recaptcha_bbpress_register_page()) {
        if (bb_get_option('recaptcha_bbpress_public_key') && bb_get_option('recaptcha_bbpress_private_key')) {
            if ($_POST["recaptcha_response_field"] || $_POST) {
                $privatekey = bb_get_option('recaptcha_bbpress_private_key');
                $resp = null;
                $resp = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
                if (!$resp->is_valid) {
                    bb_get_header();
                    echo "<h2>Error</h2><p>You failed to complete the form correctly, please return to the previous page and try again.</p>";
                    bb_get_footer();
                    exit;
                }
            }
        } else {
            echo "The public & private keys aren't set at the moment! ";
        }
    }
}
开发者ID:achorg,项目名称:DH-Answers,代码行数:20,代码来源:recaptcha-bbpress.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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