示例#1
0
    exit(0);
}
// Available icons
$supported_browser_icons = array('Android', 'Anonymouse', 'Baiduspider', 'BlackBerry', 'BingBot', 'CFNetwork', 'Chrome', 'Chromium', 'Default Browser', 'Exabot/BiggerBetter', 'FacebookExternalHit', 'FeedBurner', 'Feedfetcher-Google', 'Firefox', 'Internet Archive', 'Googlebot', 'Google Feedfetcher', 'Google Web Preview', 'IE', 'IEMobile', 'iPad', 'iPhone', 'iPod Touch', 'Maxthon', 'Mediapartners-Google', 'Microsoft-WebDAV', 'msnbot', 'Mozilla', 'NewsGatorOnline', 'Netscape', 'Nokia', 'Opera', 'Opera Mini', 'Opera Mobi', 'Python', 'PycURL', 'Safari', 'W3C_Validator', 'WordPress', 'Yahoo! Slurp', 'YandexBot');
$supported_os_icons = array('android', 'blackberry os', 'iphone osx', 'ios', 'java', 'linux', 'macosx', 'symbianos', 'win7', 'win8', 'win8.1', 'winphone7', 'winvista', 'winxp', 'unknown');
$supported_browser_types = array(__('Human', 'wp-slimstat'), __('Bot/Crawler', 'wp-slimstat'), __('Mobile Device', 'wp-slimstat'), __('Syndication Reader', 'wp-slimstat'));
$plugin_url = plugins_url('', dirname(__FILE__));
// Set the filters
$tables_to_join = 'tb.browser,tb.version,tb.platform,tb.css_version,tb.type,tb.user_agent,tci.content_type,tci.category,tci.author,tci.content_id';
wp_slimstat_db::$filters_normalized['misc']['limit_results'] = wp_slimstat::$options['number_results_raw_data'];
if (wp_slimstat::$options['include_outbound_links_right_now'] == 'yes') {
    $tables_to_join .= ',tob.outbound_domain,tob.outbound_resource';
}
// Report Header
if (empty($_POST['report_id'])) {
    wp_slimstat_reports::report_header('slim_p7_02', 'tall');
}
// Get the data
$results = wp_slimstat_db::get_recent('t1.id', '', $tables_to_join);
$count_page_results = count($results);
$count_all_results = wp_slimstat_db::count_records('1=1', '*', true, true, $tables_to_join);
if ($count_page_results == 0) {
    echo '<p class="nodata">' . __('No data to display', 'wp-slimstat') . '</p>';
} else {
    if (wp_slimstat::$options['async_load'] != 'yes' || !empty($_POST['report_id'])) {
        // Pagination
        echo wp_slimstat_reports::report_pagination('slim_p7_02', $count_page_results, $count_all_results);
        // Loop through the results
        for ($i = 0; $i < $count_page_results; $i++) {
            $results[$i]['ip'] = long2ip($results[$i]['ip']);
            $host_by_ip = $results[$i]['ip'];
示例#2
0
文件: index.php 项目: unisexx/drtooth
                case 'slim_p3_04':
                case 'slim_p3_05':
                case 'slim_p3_06':
                case 'slim_p3_10':
                case 'slim_p3_11':
                case 'slim_p4_04':
                case 'slim_p4_07':
                case 'slim_p4_11':
                case 'slim_p4_12':
                case 'slim_p4_13':
                case 'slim_p4_14':
                case 'slim_p4_15':
                case 'slim_p4_16':
                case 'slim_p4_17':
                case 'slim_p4_18':
                case 'slim_p4_19':
                case 'slim_p4_21':
                    wp_slimstat_reports::report_header($a_box_id);
                    break;
                default:
                    break;
            }
            wp_slimstat_reports::show_report_wrapper($a_box_id);
            wp_slimstat_reports::report_footer();
        }
        break;
}
?>
</div>
</div>
<div id="slimstat-modal-dialog"></div>
示例#3
0
    exit(0);
}
// Available icons
$supported_browser_icons = array('Android', 'Anonymouse', 'Baiduspider', 'BlackBerry', 'BingBot', 'CFNetwork', 'Chrome', 'Chromium', 'Default Browser', 'Exabot/BiggerBetter', 'FacebookExternalHit', 'FeedBurner', 'Feedfetcher-Google', 'Firefox', 'Internet Archive', 'Googlebot', 'Google Bot', 'Google Feedfetcher', 'Google Web Preview', 'IE', 'IEMobile', 'iPad', 'iPhone', 'iPod Touch', 'Maxthon', 'Mediapartners-Google', 'Microsoft-WebDAV', 'msnbot', 'Mozilla', 'NewsGatorOnline', 'Netscape', 'Nokia', 'Opera', 'Opera Mini', 'Opera Mobi', 'Python', 'PycURL', 'Safari', 'W3C_Validator', 'WordPress', 'Yahoo! Slurp', 'YandexBot');
$supported_os_icons = array('android', 'blackberry os', 'iphone osx', 'ios', 'java', 'linux', 'macosx', 'symbianos', 'win7', 'win8', 'win8.1', 'winphone7', 'winvista', 'winxp', 'unknown');
$supported_browser_types = array(__('Human', 'wp-slimstat'), __('Bot/Crawler', 'wp-slimstat'), __('Mobile Device', 'wp-slimstat'), __('Syndication Reader', 'wp-slimstat'));
$plugin_url = plugins_url('', dirname(__FILE__));
// Set the filters
$tables_to_join = 'tb.browser,tb.version,tb.platform,tb.css_version,tb.type,tb.user_agent,tci.content_type,tci.category,tci.author,tci.content_id';
wp_slimstat_db::$filters_normalized['misc']['limit_results'] = wp_slimstat::$options['number_results_raw_data'];
if (wp_slimstat::$options['include_outbound_links_right_now'] == 'yes') {
    $tables_to_join .= ',tob.outbound_domain,tob.outbound_resource';
}
// Report Header
if (empty($_POST['report_id'])) {
    wp_slimstat_reports::report_header('slim_p7_02', 'tall', __('Color codes', 'wp-slimstat') . '</strong><p><span class="little-color-box is-search-engine"></span> ' . __('From search result page', 'wp-slimstat') . '</p><p><span class="little-color-box is-known-visitor"></span> ' . __('Known Visitor', 'wp-slimstat') . '</p><p><span class="little-color-box is-known-user"></span> ' . __('Known Users', 'wp-slimstat') . '</p><p><span class="little-color-box is-direct"></span> ' . __('Other Humans', 'wp-slimstat') . '</p><p><span class="little-color-box"></span> ' . __('Bot or Crawler', 'wp-slimstat') . '</p>');
}
// Get the data
$results = wp_slimstat_db::get_recent('t1.id', '', $tables_to_join);
$count_page_results = count($results);
$count_all_results = wp_slimstat_db::count_records('1=1', '*', true, true, $tables_to_join);
if ($count_page_results == 0) {
    echo '<p class="nodata">' . __('No data to display', 'wp-slimstat') . '</p>';
} else {
    if (wp_slimstat::$options['async_load'] != 'yes' || !empty($_POST['report_id'])) {
        // Pagination
        echo wp_slimstat_reports::report_pagination('slim_p7_02', $count_page_results, $count_all_results);
        // Loop through the results
        for ($i = 0; $i < $count_page_results; $i++) {
            $results[$i]['ip'] = long2ip($results[$i]['ip']);
            $host_by_ip = $results[$i]['ip'];