示例#1
0
function fs_add_page()
{
    add_submenu_page('index.php', 'FireStats', 'FireStats', 1, __FILE__, 'fs_page');
    if (!fs_full_installation()) {
        if (!fs_is_wpmu() || is_site_admin()) {
            add_submenu_page('options-general.php', 'FireStats', 'FireStats', 8, 'FireStats', 'fs_options_page');
        }
    }
}
示例#2
0
文件: init.php 项目: alx/blogsfera
/**
 * There are two methods to install FireStats:
 * 1. Standalone: where its installed somewhere on the server (independent) and  serves
 *    a few systems on the same machine.
 *    For example: it can serve several blogs and a trac site.
 * 2. Hosted: as a subsystem of another system, like Wordpress.
 *	  In this mode, FireStats is actually installed inside the hosting system, and 
 *    its also uses the host database and database configuration.
 */
function fs_is_hosted()
{
    if (function_exists('fs_full_installation')) {
        return fs_full_installation();
    } else {
        return false;
        // default to standalone
    }
}
示例#3
0
function fs_should_show_use_wp_button()
{
    $in_wordpress = fs_in_wordpress() && fs_full_installation();
    $db_config_type = fs_get_db_config_type();
    return $in_wordpress && $db_config_type != FS_DB_CONFIG_WORDPRESS;
}