当前位置: 首页>>代码示例>>PHP>>正文


PHP bb_admin_notice函数代码示例

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


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

示例1: em_options

/**
 * Makes a settings page for the plugin
 * 
 * @uses bb_option_form_element() to generate the page
 */
function em_options()
{
    global $em_plugopts;
    if ($_POST['em_opts_submit'] == 1) {
        /* Settings have been received, now save them! */
        bb_check_admin_referer('em-save-chk');
        /* Security Check */
        /* Checks on options, and then save them */
        $em_plugopts['link-tags'] = intval($_POST['link-tags']) == 1 ? 1 : 0;
        $em_plugopts['link-users'] = intval($_POST['link-users']) == 1 ? 1 : 0;
        $em_plugopts['link-user-to'] = $_POST['link-user-to'] == 'website' ? 'website' : 'profile';
        $em_plugopts['reply-link'] = intval($_POST['reply-link']) == 1 ? 1 : 0;
        $em_plugopts['reply-text'] = esc_attr($_POST['reply-text']);
        bb_update_option(EM_OPTIONS, $em_plugopts);
        bb_admin_notice(__('The options were successfully saved!', 'easy-mentions'));
    }
    if ($ver = em_update_check()) {
        /* Check for Updates and if available, then notify */
        bb_admin_notice(sprintf(__('New version (%1$s) of Easy Mentions is available! Please download the latest version from <a href="%2$s">here</a>.', 'easy-mentions'), $ver, 'http://bbpress.org/plugins/topic/easy-mentions/'));
    }
    /* Options in an array to be printed */
    $options = array('link-tags' => array('title' => __('Link the Tags?', 'easy-mentions'), 'type' => 'checkbox', 'value' => $em_plugopts['link-tags'] == 1 ? '1' : '0', 'note' => sprintf(__('Check this option if you want the tags to be linked (by using %s) in the posts.', 'easy-mentions'), '<code>#tag</code>'), 'options' => array('1' => __('Yes', 'easy-mentions'))), 'link-users' => array('title' => __('Link the Users?', 'easy-mentions'), 'type' => 'checkbox', 'value' => $em_plugopts['link-users'] == 1 ? '1' : '0', 'note' => sprintf(__('Check this option if you want the users to be linked (by using %s) in the posts.', 'easy-mentions'), '<code>@user</code>'), 'options' => array('1' => __('Yes', 'easy-mentions'))), 'link-user-to' => array('title' => __('Link the user to profile or website?', 'easy-mentions'), 'type' => 'radio', 'value' => $em_plugopts['link-user-to'] == 'website' ? 'website' : 'profile', 'note' => __('If you selected the website option and the user\'s website does not exist, then the user will be linked to his or her profile page.', 'easy-mentions'), 'options' => array('profile' => __('Profile', 'easy-mentions'), 'website' => __('Website', 'easy-mentions'))), 'reply-link' => array('title' => __('Add a reply link below each post?', 'easy-mentions'), 'type' => 'checkbox', 'value' => $em_plugopts['reply-link'] == 1 ? '1' : '0', 'note' => sprintf(__('Before checking this option, please verify that there is a post form below the topic on each page. (<a href="%s">Help</a>)', 'easy-mentions'), 'http://bbpress.org/plugins/topic/easy-mentions/faq/'), 'options' => array('1' => __('Yes', 'easy-mentions'))), 'reply-text' => array('title' => __('Reply Text', 'easy-mentions'), 'class' => array('long'), 'value' => $em_plugopts['reply-text'] ? stripslashes($em_plugopts['reply-text']) : '<em>Replying to @%%USERNAME%%\'s <a href="%%POSTLINK%%">post</a>:</em>', 'after' => '<div style="clear:both;"></div>' . sprintf(__('Some HTML is allowed. The following keys can also be used:%1$s - Post\'s author\'s name%2$s - Post\'s link', 'after-the-deadline'), '<br /><strong>%%USERNAME%%</strong>', '<br /><strong>%%POSTLINK%%</strong>') . '<br />'));
    if ($em_plugopts['link-users'] != 1) {
        $options['link-user-to']['attributes'] = array('disabled' => 'disabled');
    }
    if ($em_plugopts['reply-link'] != 1) {
        $options['reply-text']['attributes'] = array('disabled' => 'disabled');
    }
    ?>
	
	<h2><?php 
    _e('Easy Mentions', 'easy-mentions');
    ?>
</h2>
	<?php 
    do_action('bb_admin_notices');
    ?>
	<form method="post" class="settings options">
		<fieldset>
			<?php 
    foreach ($options as $option => $args) {
        bb_option_form_element($option, $args);
    }
    ?>
		</fieldset>
		<fieldset class="submit">
			<?php 
    bb_nonce_field('em-save-chk');
    ?>
			<input type="hidden" name="em_opts_submit" value="1"></input>
			<input class="submit" type="submit" name="submit" value="Save Changes" />
		</fieldset>
		<p><?php 
    printf(__('Happy with the plugin? Why not <a href="%1$s">buy the author a cup of coffee or two</a> or get him something from his <a href="%2$s">wishlist</a>?', 'easy-mentions'), 'http://gaut.am/donate/EM/', 'http://gaut.am/wishlist/');
    ?>
</p>
	</form>
<?php 
}
开发者ID:achorg,项目名称:DH-Answers,代码行数:64,代码来源:admin.php

示例2: bb_admin_notice

if ($is_apache && bb_get_option('mod_rewrite') && !bb_get_option('mod_rewrite_writable')) {
    $manual_instructions = true;
}
if (!empty($_GET['notmodrewrite'])) {
    $manual_instructions = false;
    bb_admin_notice(__('<strong>It appears that your server does not support custom permalink structures.</strong>'), 'error');
}
if (!empty($_GET['notapache'])) {
    $manual_instructions = false;
    bb_admin_notice(__('<strong>Rewriting on webservers other than Apache using mod_rewrite is currently unsupported, but we won&#8217;t stop you from trying.</strong>'), 'error');
}
if (!empty($_GET['updated'])) {
    if ($manual_instructions) {
        bb_admin_notice(__('<strong>You should update your .htaccess now.</strong>'));
    } else {
        bb_admin_notice(__('<strong>Permalink structure updated.</strong>'));
    }
}
$permalink_options = array('mod_rewrite' => array('title' => __('Permalink type'), 'type' => 'radio', 'options' => array('0' => sprintf(__('<span>None</span> <code>%s</code>'), bb_get_uri('forums.php', array('id' => 1), BB_URI_CONTEXT_TEXT)), '1' => sprintf(__('<span>Numeric</span> <code>%s</code>'), bb_get_uri('forums/1', null, BB_URI_CONTEXT_TEXT)), 'slugs' => sprintf(__('<span>Name based</span> <code>%s</code>'), bb_get_uri('/forums/first-forum', null, BB_URI_CONTEXT_TEXT)))));
$bb_admin_body_class = ' bb-admin-settings';
bb_get_admin_header();
?>

<div class="wrap">

<h2><?php 
_e('Permalink Settings');
?>
</h2>
<?php 
do_action('bb_admin_notices');
开发者ID:laiello,项目名称:cartonbank,代码行数:31,代码来源:options-permalinks.php

示例3: trim

            $option = trim($option);
            $value = is_array($value) ? $value : trim($value);
            $value = stripslashes_deep($value);
            if ($value) {
                bb_update_option($option, $value);
            } else {
                bb_delete_option($option);
            }
        }
    }
    $goback = add_query_arg('updated', 'true', wp_get_referer());
    bb_safe_redirect($goback);
    exit;
}
if (!empty($_GET['updated'])) {
    bb_admin_notice(__('<strong>Settings saved.</strong>'));
}
$reading_options = array('page_topics' => array('title' => __('Items per page'), 'class' => 'short', 'note' => __('Number of topics, posts or tags to show per page.')));
$bb_admin_body_class = ' bb-admin-settings';
bb_get_admin_header();
?>

<div class="wrap">

<h2><?php 
_e('Reading Settings');
?>
</h2>
<?php 
do_action('bb_admin_notices');
?>
开发者ID:laiello,项目名称:cartonbank,代码行数:31,代码来源:options-reading.php

示例4: bb_recount_list

    }
    bb_recount_list();
    foreach ((array) $recount_list as $item) {
        if (isset($item[2]) && isset($_POST[$item[0]]) && 1 == $_POST[$item[0]] && is_callable($item[2])) {
            $message = call_user_func($item[2]);
            if (is_array($message)) {
                $messages[] = $message[1];
            } else {
                $messages[] = $message;
            }
        }
    }
    nxt_cache_flush();
    if (count($messages)) {
        $messages = join('</p>' . "\n" . '<p>', $messages);
        bb_admin_notice($messages);
    }
}
$bb_admin_body_class = ' bb-admin-tools';
bb_get_admin_header();
?>
<h2><?php 
_e('Tools');
?>
</h2>
<?php 
do_action('bb_admin_notices');
?>

<form class="settings" method="post" action="<?php 
bb_uri('bb-admin/tools-recount.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
开发者ID:nxtclass,项目名称:NXTClass,代码行数:31,代码来源:tools-recount.php

示例5: switch

    }
}
if (isset($_GET['message'])) {
    switch ($_GET['message']) {
        case 'updated':
            bb_admin_notice(__('<strong>Forum Updated.</strong>'));
            break;
        case 'deleted':
            bb_admin_notice(sprintf(__('<strong>Forum deleted.</strong>  You should <a href="%s">recount your site information</a>.'), bb_get_uri('bb-admin/tools-recount.php', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN)));
            break;
    }
}
if (!isset($_GET['action'])) {
    nxt_enqueue_script('admin-forums');
} elseif ('delete' == @$_GET['action']) {
    bb_admin_notice(sprintf(__('Are you sure you want to delete the "<strong>%s</strong>" forum?'), $deleted_forum->forum_name));
}
$bb_admin_body_class = ' bb-admin-forums';
bb_get_admin_header();
?>

<div class="wrap">

<h2><?php 
_e('Forums');
?>
</h2>
<?php 
do_action('bb_admin_notices');
switch (@$_GET['action']) {
    case 'edit':
开发者ID:nxtclass,项目名称:NXTClass,代码行数:31,代码来源:forums.php

示例6: switch

    switch ($_GET['message']) {
        case 'error':
            bb_admin_notice(__('<strong>Plugin could not be activated, it produced a Fatal Error</strong>. The error is shown below.'), 'error');
            break;
        case 'activate':
            $plugin_data = bb_get_plugin_data($plugin);
            bb_admin_notice(sprintf(__('<strong>"%s" plugin activated</strong>'), esc_attr($plugin_data['name'])));
            break;
        case 'deactivate':
            $plugin_data = bb_get_plugin_data($plugin);
            bb_admin_notice(sprintf(__('<strong>"%s" plugin deactivated</strong>'), esc_attr($plugin_data['name'])));
            break;
    }
}
if (isset($bb->safemode) && $bb->safemode === true) {
    bb_admin_notice(__('<strong>"Safe mode" is on, all plugins are disabled even if they are listed as active.</strong>'), 'error');
}
$bb_admin_body_class = ' bb-admin-plugins';
bb_get_admin_header();
?>

<div class="wrap">

	<h2><?php 
_e('Manage Plugins');
?>
</h2>
	<?php 
do_action('bb_admin_notices');
?>
开发者ID:danielcoats,项目名称:schoolpress,代码行数:30,代码来源:plugins.php

示例7: bb_ksd_configuration_page_process

function bb_ksd_configuration_page_process()
{
    if ('post' == strtolower($_SERVER['REQUEST_METHOD']) && $_POST['action'] == 'update-akismet-settings') {
        bb_check_admin_referer('options-akismet-update');
        $goback = remove_query_arg(array('invalid-akismet', 'updated-akismet'), wp_get_referer());
        if (!isset($_POST['akismet_stats'])) {
            $_POST['akismet_stats'] = false;
        }
        if (true === (bool) $_POST['akismet_stats']) {
            bb_update_option('akismet_stats', 1);
        } else {
            bb_delete_option('akismet_stats');
        }
        if ($_POST['akismet_key']) {
            $value = stripslashes_deep(trim($_POST['akismet_key']));
            if ($value) {
                if (bb_akismet_verify_key($value)) {
                    bb_update_option('akismet_key', $value);
                } else {
                    $goback = add_query_arg('invalid-akismet', 'true', $goback);
                    bb_safe_redirect($goback);
                    exit;
                }
            } else {
                bb_delete_option('akismet_key');
            }
        } else {
            bb_delete_option('akismet_key');
        }
        $goback = add_query_arg('updated-akismet', 'true', $goback);
        bb_safe_redirect($goback);
        exit;
    }
    if (!empty($_GET['updated-akismet'])) {
        bb_admin_notice(__('<strong>Settings saved.</strong>'));
    }
    if (!empty($_GET['invalid-akismet'])) {
        bb_admin_notice(__('<strong>The key you attempted to enter is invalid. Reverting to previous setting.</strong>'), 'error');
    }
    global $bb_admin_body_class;
    $bb_admin_body_class = ' bb-admin-settings';
}
开发者ID:laiello,项目名称:cartonbank,代码行数:42,代码来源:akismet.php

示例8: switch

<?php

require_once 'admin.php';
if (!empty($_GET['message'])) {
    switch ((string) $_GET['message']) {
        case 'undeleted':
            bb_admin_notice(__('<strong>Topic undeleted.</strong>'));
            break;
        case 'deleted':
            bb_admin_notice(__('<strong>Topic deleted.</strong>'));
            break;
        case 'opened':
            bb_admin_notice(__('<strong>Topic opened.</strong>'));
            break;
        case 'closed':
            bb_admin_notice(__('<strong>Topic closed.</strong>'));
            break;
    }
}
$bb_admin_body_class = ' bb-admin-topics';
bb_get_admin_header();
if (!bb_current_user_can('browse_deleted')) {
    die(__("Now how'd you get here?  And what did you think you'd being doing?"));
}
//This should never happen.
add_filter('topic_link', 'bb_make_link_view_all');
add_filter('topic_last_post_link', 'bb_make_link_view_all');
$topic_query_vars = array('topic_status' => 'normal', 'open' => 'open', 'count' => true, 'per_page' => 20);
if (isset($_POST['search']) && $_POST['search']) {
    $topic_query_vars['post_status'] = 'all';
} elseif (isset($_GET['search']) && $_GET['search']) {
开发者ID:laiello,项目名称:cartonbank,代码行数:31,代码来源:topics.php

示例9: trim

            $option = trim($option);
            $value = is_array($value) ? $value : trim($value);
            $value = stripslashes_deep($value);
            if ($value) {
                bb_update_option($option, $value);
            } else {
                bb_delete_option($option);
            }
        }
    }
    $goback = add_query_arg('updated', 'true', wp_get_referer());
    bb_safe_redirect($goback);
    exit;
}
if (!empty($_GET['updated'])) {
    bb_admin_notice('<strong>' . __('Settings saved.') . '</strong>');
}
$reading_options = array('page_topics' => array('title' => __('Items per page'), 'class' => 'short', 'note' => __('Number of topics, posts or tags to show per page.')), 'name_link_profile' => array('title' => __('Link name to'), 'type' => 'radio', 'options' => array(0 => __('Website'), 1 => __('Profile')), 'note' => __('What should the user\'s name link to on the topic page? The user\'s title would automatically get linked to the option you don\'t choose. By default, the user\'s name is linked to his/her website.')));
$bb_admin_body_class = ' bb-admin-settings';
bb_get_admin_header();
?>

<div class="wrap">

<h2><?php 
_e('Reading Settings');
?>
</h2>
<?php 
do_action('bb_admin_notices');
?>
开发者ID:danielcoats,项目名称:schoolpress,代码行数:31,代码来源:options-reading.php

示例10: do_action

require_once 'admin.php';
do_action($bb_admin_page . '_pre_head');
bb_get_admin_header();
?>

<div class="wrap">

<?php 
if (is_callable($bb_admin_page)) {
    call_user_func($bb_admin_page);
} else {
    ?>

<h2><?php 
    _e('Page not found');
    ?>
</h2>
<?php 
    bb_admin_notice(__('There is no administration page at the requested address. Please check the address you entered and try again.'), 'error');
    do_action('bb_admin_notices');
    ?>

<?php 
}
?>

</div>

<?php 
bb_get_admin_footer();
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:30,代码来源:admin-base.php

示例11: isset

    exit;
}
if (!empty($_GET['message'])) {
    $message_count = isset($_GET['count']) ? (int) $_GET['count'] : 1;
    switch ((string) $_GET['message']) {
        case 'undeleted':
            bb_admin_notice(sprintf(_n('<strong>Topic undeleted.</strong>', '<strong>%s topics undeleted.</strong>', $message_count), bb_number_format_i18n($message_count)));
            break;
        case 'deleted':
            bb_admin_notice(sprintf(_n('<strong>Topic deleted.</strong>', '<strong>%s topics deleted.</strong>', $message_count), bb_number_format_i18n($message_count)));
            break;
        case 'opened':
            bb_admin_notice(sprintf(_n('<strong>Topic opened.</strong>', '<strong>%s topics opened.</strong>', $message_count), bb_number_format_i18n($message_count)));
            break;
        case 'closed':
            bb_admin_notice(sprintf(_n('<strong>Topic closed.</strong>', '<strong>%s topics closed.</strong>', $message_count), bb_number_format_i18n($message_count)));
            break;
    }
}
$bb_admin_body_class = ' bb-admin-topics';
bb_get_admin_header();
if (!bb_current_user_can('browse_deleted')) {
    die(__("Now how'd you get here?  And what did you think you'd being doing?"));
}
//This should never happen.
add_filter('topic_link', 'bb_make_link_view_all');
add_filter('topic_last_post_link', 'bb_make_link_view_all');
$topic_query_vars = array('topic_status' => 'normal', 'open' => 'open', 'count' => true, 'per_page' => 20);
if (isset($_POST['search']) && $_POST['search']) {
    $topic_query_vars['post_status'] = 'all';
} elseif (isset($_GET['search']) && $_GET['search']) {
开发者ID:danielcoats,项目名称:schoolpress,代码行数:31,代码来源:topics.php

示例12: printf

<?php 
    }
    ?>
			<p class="location"><?php 
    printf(__('All of this theme\'s files are located in the "%s" themes directory.'), $theme_data['Location']);
    ?>
</p>
		</div>
	</td>
<?php 
    if (3 === $position || 0 === $position) {
        echo '</tr>';
    }
}
if (isset($bb->safemode) && $bb->safemode === true) {
    bb_admin_notice(__('<strong>"Safe mode" is on, the default theme will be used instead of the active theme indicated below.</strong>'), 'error');
}
$bb_admin_body_class = ' bb-admin-appearance';
bb_get_admin_header();
?>

<h2><?php 
_e('Manage Themes');
?>
</h2>
<?php 
do_action('bb_admin_notices');
?>

<h3 class="themes"><?php 
_e('Current Theme');
开发者ID:danielcoats,项目名称:schoolpress,代码行数:31,代码来源:themes.php

示例13: li_configuration_page_process

function li_configuration_page_process()
{
    if ('post' == strtolower($_SERVER['REQUEST_METHOD']) && $_POST['action'] == 'update-li-settings') {
        bb_check_admin_referer('options-liconnect-update');
        $li_app_id = trim($_POST['li_app_id']);
        $li_secret = trim($_POST['li_secret']);
        bb_update_option('li_app_id', $li_app_id);
        bb_update_option('li_secret', $li_secret);
        if (!isset($_POST['li_displayname_from']) || $_POST['li_displayname_from'] < 0 || $_POST['li_displayname_from'] > 2) {
            $_POST['li_displayname_from'] = 0;
        }
        bb_update_option('li_displayname_from', intval($_POST['li_displayname_from']));
        if (!isset($_POST['li_get_jquery']) || true !== (bool) $_POST['li_get_jquery']) {
            bb_delete_option('li_get_jquery');
        } else {
            bb_update_option('li_get_jquery', 1);
        }
        if (!isset($_POST['li_allow_useredit']) || true !== (bool) $_POST['li_allow_useredit']) {
            bb_delete_option('li_allow_useredit');
        } else {
            bb_update_option('li_allow_useredit', 1);
        }
        if (!isset($_POST['li_request_email']) || true !== (bool) $_POST['li_request_email']) {
            bb_delete_option('li_request_email');
        } else {
            bb_update_option('li_request_email', 1);
        }
        if (!isset($_POST['li_hide_post_login']) || true !== (bool) $_POST['li_hide_post_login']) {
            bb_delete_option('li_hide_post_login');
        } else {
            bb_update_option('li_hide_post_login', 1);
        }
        bb_admin_notice(__('Configuration saved.'));
    }
}
开发者ID:nma,项目名称:linkedin-connect,代码行数:35,代码来源:connect.php

示例14: nospamuser_admin_parse

function nospamuser_admin_parse()
{
    bb_check_admin_referer('nospamuser-admin');
    $settings = bb_get_option('nospamuser-settings');
    $success = array();
    $error = array();
    if ($_POST['days'] != $settings['days']) {
        if ((int) $_POST['days'] > 0) {
            $settings['days'] = $_POST['days'];
            $success[] = __('Maximum days', 'nospamuser');
        } else {
            $error[] = __('Maximum days', 'nospamuser');
        }
    }
    if ($_POST['min_occur'] != $settings['min_occur']) {
        if ((int) $_POST['min_occur'] > 0) {
            $settings['min_occur'] = $_POST['min_occur'];
            $success[] = __('Minimum frequency', 'nospamuser');
        } else {
            $error[] = __('Minimum frequency', 'nospamuser');
        }
    }
    if ($_POST['max_occur'] != $settings['max_occur']) {
        if ((int) $_POST['max_occur'] > 0) {
            $settings['max_occur'] = $_POST['max_occur'];
            $success[] = __('Maximum frequency', 'nospamuser');
        } else {
            $error[] = __('Maximum frequency', 'nospamuser');
        }
    }
    if ($_POST['api_key'] != $settings['api_key']) {
        // There's not a way I know of to check this.
        $settings['api_key'] = $_POST['api_key'];
        $success[] = __('Stop Forum Spam API key', 'nospamuser');
    }
    if ($_POST['recaptcha_mode'] != $settings['recaptcha_mode']) {
        if (in_array($_POST['recaptcha_mode'], array('aggressive', 'adaptive', 'friendly'))) {
            $settings['recaptcha_mode'] = $_POST['recaptcha_mode'];
            $success[] = __('reCAPTCHA mode', 'nospamuser');
        } else {
            $error[] = __('reCAPTCHA mode', 'nospamuser');
        }
    }
    if ($_POST['recaptcha_pub'] != $settings['recaptcha_pub']) {
        // There's not a way I know of to check this.
        $settings['recaptcha_pub'] = $_POST['recaptcha_pub'];
        $success[] = __('reCAPTCHA public key', 'nospamuser');
    }
    if ($_POST['recaptcha_priv'] != $settings['recaptcha_priv']) {
        // There's not a way I know of to check this.
        $settings['recaptcha_priv'] = $_POST['recaptcha_priv'];
        $success[] = __('reCAPTCHA private key', 'nospamuser');
    }
    if ((int) $_POST['stats-public'] != $settings['stats-public']) {
        $settings['stats-public'] = (int) $_POST['stats-public'];
        $success[] = __('Public statistics', 'nospamuser');
    }
    if ($success) {
        bb_update_option('nospamuser-settings', $settings);
        bb_admin_notice(__('The following settings were updated successfully:', 'nospamuser') . '</p><ul><li>' . implode('</li><li>', $success) . '</li></ul>', 'updated');
    }
    if ($error) {
        bb_admin_notice(__('The following settings had errors and were not updated:', 'nospamuser') . '</p><ul><li>' . implode('</li><li>', $error) . '</li></ul>', 'error');
    }
}
开发者ID:achorg,项目名称:DH-Answers,代码行数:65,代码来源:bb-nospamuser.php

示例15: switch

if (!empty($_GET['message'])) {
    switch ((string) $_GET['message']) {
        case 'undeleted':
            bb_admin_notice(__('<strong>Post undeleted.</strong>'));
            break;
        case 'deleted':
            bb_admin_notice(__('<strong>Post deleted.</strong>'));
            break;
        case 'spammed':
            bb_admin_notice(__('<strong>Post spammed.</strong>'));
            break;
        case 'unspammed-normal':
            bb_admin_notice(__('<strong>Post removed from spam.</strong> It is now a normal post.'));
            break;
        case 'unspammed-deleted':
            bb_admin_notice(__('<strong>Post removed from spam.</strong> It is now a deleted post.'));
            break;
    }
}
$ip_available = false;
if (bb_current_user_can('view_by_ip')) {
    $ip_available = true;
} elseif (isset($_GET['poster_ip'])) {
    unset($_GET['poster_ip']);
}
$bb_admin_body_class = ' bb-admin-posts';
bb_get_admin_header();
if (!bb_current_user_can('browse_deleted')) {
    die(__("Now how'd you get here?  And what did you think you'd being doing?"));
}
//This should never happen.
开发者ID:laiello,项目名称:cartonbank,代码行数:31,代码来源:posts.php


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