b2evolution PHP Cross Reference Blogging Systems

Source: /conf/_stats.php - 326 lines - 10986 bytes - Text - Print

Description: This is b2evolution's stats config file.

   1  <?php
   2  /**
   3   * This is b2evolution's stats config file.
   4   *
   5   * @deprecated TODO: It holds now just things that should be move around due to hitlog refactoring.
   6   *
   7   * This file sets how b2evolution will log hits and stats
   8   * Last significant changes to this file: version 1.6
   9   *
  10   * @package conf
  11   */
  12  if( !defined('EVO_CONFIG_LOADED') ) die( 'Please, do not access this page directly.' );
  13  
  14  
  15  /**
  16   * Self referers that should not be considered as "real" referers in stats.
  17   * This should typically include this site and maybe other subdomains of this site.
  18   *
  19   * The following substrings will be looked up in the referer http header
  20   * in order to identify referers to hide in the logs.
  21   *
  22   * The string must start within the 12 FIRST CHARS of the referer or it will be ignored.
  23   * note: http://abc.com is already 14 chars. 12 for safety.
  24   *
  25   * WARNING: you should *NOT* use a slash at the end of simple domain names, as
  26   * older Netscape browsers will not send these. For example you should list
  27   * http://www.example.com instead of http://www.example.com/ .
  28   *
  29   * @todo move to admin interface (T_basedomains list editor), but use for upgrading
  30   * @todo handle multiple blog roots.
  31   * @todo If $basehost already begins with "www.", the pure domain will not
  32   *       be counted as a self referrer. Possible solution: Strip the "www."
  33   *       from $basehost - for "www.example.com" this would give "://example.com"
  34   *       and "://www.example.com", which would be correct (currently it
  35   *       gives "://www.example.com" and "://www.www.example.com").
  36   *
  37   * @global array
  38   */
  39  $self_referer_list = array(
  40      '://'.$basehost,            // This line will match all pages from the host of your $baseurl
  41      '://www.'.$basehost,    // This line will also match www.you_base_host in case you have no www. on your basehost
  42      'http://localhost',
  43      'http://127.0.0.1',
  44  );
  45  
  46  
  47  /**
  48   * Speciallist: referrers that should not be considered as "real" referers in stats.
  49   * This should typically include stat services, online email services, online aggregators, etc.
  50   *
  51   * The following substrings will be looked up in the referer http header
  52   * in order to identify referers to hide in the logs
  53   *
  54   * THIS IS NOT FOR SPAM! Use the Antispam features in the admin section to control spam!
  55   *
  56   * The string must start within the 12 FIRST CHARS of the referer or it will be ignored.
  57   * note: http://abc.com is already 14 chars. 12 for safety.
  58   *
  59   * WARNING: you should *NOT* use a slash at the end of simple domain names, as
  60   * older Netscape browsers will not send these. For example you should list
  61   * http://www.example.com instead of http://www.example.com/ .
  62   *
  63   * @todo move to admin interface (T_basedomains list editor), but use for upgrading
  64   *
  65   * @global array
  66   */
  67  $SpecialList = array(
  68      // webmails
  69      '.mail.yahoo.com/',
  70      '//mail.google.com/',
  71      'webmail.aol.com/',
  72      // stat services
  73      'sitemeter.com/',
  74      // aggregators
  75      'bloglines.com/',
  76      // caches
  77      '/search?q=cache:',        // Google cache
  78      // redirectors
  79      'googlealert.com/',
  80      // site status services
  81      'host-tracker.com',
  82      // add your own...
  83  );
  84  
  85  
  86  /**
  87   * UserAgent identifiers for logging/statistics
  88   *
  89   * The following substrings will be looked up in the user_agent http header
  90   *
  91   * 'type' aggregator currently gets only used to "translate" user agent strings.
  92   * An aggregator hit gets detected by accessing the feed.
  93   *
  94   * @global array $user_agents
  95   */
  96  $user_agents = array(
  97      // Robots:
  98      array('robot', 'Googlebot', 'Google (Googlebot)' ), // removed slash in order to also match "Googlebot-Image", "Googlebot-Mobile", "Googlebot-Sitemaps"
  99      array('robot', 'Slurp/', 'Inktomi (Slurp)' ),
 100      array('robot', 'Yahoo! Slurp', 'Yahoo (Slurp)' ), // removed ; to also match "Yahoo! Slurp China"
 101      array('robot', 'msnbot', 'MSN Search (msnbot)' ), // removed slash in order to also match "msnbot-media"
 102      array('robot', 'Frontier/',    'Userland (Frontier)' ),
 103      array('robot', 'ping.blo.gs/', 'blo.gs' ),
 104      array('robot', 'organica/',    'Organica' ),
 105      array('robot', 'Blogosphere/', 'Blogosphere' ),
 106      array('robot', 'blogging ecosystem crawler',    'Blogging ecosystem'),
 107      array('robot', 'FAST-WebCrawler/', 'Fast' ),            // http://fast.no/support/crawler.asp
 108      array('robot', 'timboBot/', 'Breaking Blogs (timboBot)' ),
 109      array('robot', 'NITLE Blog Spider/', 'NITLE' ),
 110      array('robot', 'The World as a Blog ', 'The World as a Blog' ),
 111      array('robot', 'daypopbot/ ', 'DayPop' ),
 112      array('robot', 'Bitacle bot/', 'Bitacle' ),
 113      array('robot', 'Sphere Scout', 'Sphere Scout' ),
 114      array('robot', 'Gigabot/', 'Gigablast (Gigabot)' ),
 115      array('robot', 'Yandex', 'Yandex' ),
 116      array('robot', 'Mail.RU/', 'Mail.Ru' ),
 117      array('robot', 'Baiduspider', 'Baidu spider' ),
 118      array('robot', 'infometrics-bot', 'Infometrics Bot' ),
 119      array('robot', 'DotBot/', 'DotBot' ),
 120      array('robot', 'Twiceler-', 'Cuil (Twiceler)' ),
 121      array('robot', 'discobot/', 'Discovery Engine' ),
 122      array('robot', 'Speedy Spider', 'Entireweb (Speedy Spider)' ),
 123      array('robot', 'monit/', 'Monit'),
 124      array('robot', 'Sogou web spider', 'Sogou'),
 125      array('robot', 'Tagoobot/', 'Tagoobot'),
 126      array('robot', 'MJ12bot/', 'Majestic-12'),
 127      array('robot', 'ia_archiver', 'Alexa crawler'),
 128      array('robot', 'KaloogaBot', 'Kalooga'),
 129      array('robot', 'Flexum/', 'Flexum'),
 130      array('robot', 'OOZBOT/', 'OOZBOT'),
 131      array('robot', 'ApptusBot', 'Apptus'),
 132      array('robot', 'Purebot', 'Pure Search'),
 133      array('robot', 'Sosospider', 'Sosospider'),
 134      array('robot', 'TopBlogsInfo', 'TopBlogsInfo'),
 135      array('robot', 'spbot/', 'SEOprofiler'),
 136      array('robot', 'StackRambler', 'Rambler' ),
 137      array('robot', 'AportWorm', 'Aport.ru' ),
 138      array('robot', 'ScoutJet', 'ScoutJet' ),
 139      array('robot', 'bingbot/', 'Bing' ),
 140      array('robot', 'Nigma.ru/', 'Nigma.ru' ),
 141      array('robot', 'ichiro/', 'Ichiro' ),
 142      array('robot', 'YoudaoBot/', 'Youdao' ),
 143      array('robot', 'Sogou web spider/', 'Sogou web spider' ),
 144      array('robot', 'findfiles.net', 'findfiles.net' ),
 145      array('robot', 'SiteBot/', 'SiteBot' ),
 146      array('robot', 'Nutch-', 'Apache Nutch' ),
 147      array('robot', 'DoCoMo/', 'DoCoMo' ),
 148      array('robot', 'findlinks/', 'FindLinks' ),
 149      array('robot', 'MLBot', 'MLBot' ),
 150      array('robot', 'facebookexternalhit', 'Facebook' ),
 151      array('robot', ' oBot/', 'IBM Bot' ),
 152      array('robot', 'GarlikCrawler/', 'Garlik' ),
 153      array('robot', 'Yeti/', 'Naver' ),
 154      array('robot', 'TurnitinBot/', 'Turnitin' ),
 155      array('robot', 'NerdByNature.Bot', 'NerdByNature' ),
 156      array('robot', 'SeznamBot/', 'SeznamBot' ),
 157      array('robot', 'Nymesis/', 'Nymesis' ),
 158      array('robot', 'YodaoBot/', 'YodaoBot' ),
 159      array('robot', 'Exabot/', 'Exabot' ),
 160      array('robot', 'AhrefsBot/', 'AhrefsBot' ),
 161      array('robot', 'SISTRIX Crawler', 'SISTRIX' ),
 162      array('robot', 'AcoonBot/', 'AcoonBot' ),
 163      // Unknown robots:
 164      array('robot', 'psycheclone', 'Psycheclone' ),
 165      // Aggregators:
 166      array('aggregator', 'AppleSyndication/', 'Safari RSS (AppleSyndication)' ),
 167      array('aggregator', 'Feedreader', 'Feedreader' ),
 168      array('aggregator', 'Syndirella/',    'Syndirella' ),
 169      array('aggregator', 'rssSearch Harvester/', 'rssSearch Harvester' ),
 170      array('aggregator', 'Newz Crawler',    'Newz Crawler' ),
 171      array('aggregator', 'MagpieRSS/', 'Magpie RSS' ),
 172      array('aggregator', 'CoologFeedSpider', 'CoologFeedSpider' ),
 173      array('aggregator', 'Pompos/', 'Pompos' ),
 174      array('aggregator', 'SharpReader/',    'SharpReader'),
 175      array('aggregator', 'Straw ',    'Straw'),
 176      array('aggregator', 'YandexBlog', 'YandexBlog'),
 177      array('aggregator', ' Planet/', 'Planet Feed Reader'),
 178      array('aggregator', 'UniversalFeedParser/', 'Universal Feed Parser'),
 179  );
 180  
 181  /* Set user devices */
 182  // MOBILE
 183  $mobile_user_devices = array(
 184      'iphone'   => '(iphone|ipod)',
 185      'android'  => 'android.*mobile',
 186      'blkberry' => 'blackberry',
 187      'winphone' => 'windows phone os',
 188      'wince'    => 'windows ce; (iemobile|ppc|smartphone)',
 189      'palm'     => '(avantgo|blazer|elaine|hiptop|palm|plucker|xiino)',
 190      'gendvice' => '(kindle|mobile|mmp|midp|pocket|psp|symbian|smartphone|treo|up.browser|up.link|vodafone|wap|opera mini)'
 191  );
 192  
 193  // TABLET
 194  $tablet_user_devices = array(
 195      'ipad'     => '(ipad)',
 196      'andrtab'  => 'android(?!.*mobile)',
 197      'berrytab' => 'rim tablet os',
 198  );
 199  
 200  // PC
 201  $pc_user_devices = array(
 202      'win311'   => 'win16',
 203      'win95'    => '(windows 95)|(win95)|(windows_95)',
 204      'win98'    => '(windows 98)|(win98)',
 205      'win2000'  => '(windows nt 5.0)|(windows 2000)',
 206      'winxp'    => '(windows nt 5.1)|(windows XP)',
 207      'win2003'  => '(windows nt 5.2)',
 208      'winvista' => '(windows nt 6.0)',
 209      'win7'     => '(windows nt 6.1)',
 210      'winnt40'  => '(windows nt 4.0)|(winnt4.0)|(winnt)|(windows nt)',
 211      'winme'    => '(windows me)|(win 9x 4.90)',
 212      'openbsd'  => 'openbsd',
 213      'sunos'    => 'sunos',
 214      'linux'    => '(linux)|(x11)',
 215      'ubuntu'   => 'ubuntu',
 216      'macosx'   => 'mac os x',
 217      'macos'    => '(mac_powerpc)|(macintosh)',
 218      'qnx'      => 'qnx',
 219      'beos'     => 'beos',
 220      'os2'      => 'os/2'
 221  );
 222  
 223  $user_devices = array_merge(
 224      $tablet_user_devices,
 225      $mobile_user_devices,
 226      $pc_user_devices
 227  );
 228  
 229  $user_devices_color = array(
 230      // Mobile
 231      'iphone'   => 'd8c1a1',
 232      'ipad'     => 'c5aa8c',
 233      'andrtab'  => 'cdba9c',
 234      'android'  => 'e0caa5',
 235      'berrytab' => 'b29575',
 236      'blkberry' => 'baa286',
 237      'winphone' => 'ceb28b',
 238      'wince'    => 'e4d6b9',
 239      'palm'     => 'c8ac84',
 240      'gendvice' => 'e6d4bf',
 241      // PC
 242      'win311'   => 'CCCCCC',
 243      'win95'    => '676767',
 244      'win98'    => 'ABABAB',
 245      'win2000'  => '898989',
 246      'winxp'    => 'DEDEDE',
 247      'win2003'  => 'A3A3A3',
 248      'winvista' => 'EEEEEE',
 249      'win7'     => '999999',
 250      'winnt40'  => 'B9B9B9',
 251      'winme'    => '7F7F7F',
 252      'openbsd'  => 'AFAFAF',
 253      'sunos'    => '808080',
 254      'linux'    => 'E0E0E0',
 255      'ubuntu'   => 'B4B4B4',
 256      'macosx'   => '9F9F9F',
 257      'macos'    => 'F0F0F0',
 258      'qnx'      => 'D0D0D0',
 259      'beos'     => '8F8F8F',
 260      'os2'      => 'C0C0C0'
 261      );
 262  
 263  $referer_type_array = array (
 264      '0'       => 'All',
 265      'search'  => 'Search',
 266      'referer' => 'Referer',
 267      'direct'  => 'Direct',
 268      'self'    => 'Self',
 269      'special' => 'Special',
 270      'spam'    => 'Spam',
 271      'admin'   => 'Admin'
 272      );
 273  
 274  $referer_type_color = array(
 275      'search'  => '0099FF',
 276      'special' => 'ff00ff',
 277      'referer' => '00CCFF',
 278      'direct'  => '00FFCC',
 279      'spam'    => 'FF0000',
 280      'self'    => '00FF99',
 281      'admin'   => '999999'
 282      );
 283  
 284  $agent_type_array = array (
 285      '0'       => 'All',
 286      'robot'   => 'Robot',
 287      'browser' => 'Browser',
 288      'unknown' => 'Unknown',
 289      );
 290  
 291  $agent_type_color = array(
 292      'rss'     => 'FF6600',
 293      'robot'   => 'FF9900',
 294      'browser' => 'FFCC00',
 295      'unknown' => 'cccccc'
 296  );
 297  
 298  $hit_type_array = array (
 299      '0'        => 'All',
 300      'rss'      => 'RSS',
 301      'standard' => 'Standard',
 302      'ajax'     => 'AJAX',
 303      'service'  => 'Service',
 304      'admin'    => 'Admin'
 305      );
 306  
 307  $hit_type_color = array(
 308      'standard'         => 'FFBB00',
 309      'service'          => '0072FF',
 310      'rss'              => 'FF6600',
 311      'ajax'             => '009900',
 312      'admin'            => 'AAE0E0',
 313      'standard_robot'   => 'FF9900',
 314      'standard_browser' => 'FFCC00'
 315  );
 316  
 317  $user_gender_color = array(
 318      'women_active'       => '990066',
 319      'women_notactive'    => 'ff66cc',
 320      'men_active'         => '003399',
 321      'men_notactive'      => '6699ff',
 322      'nogender_active'    => '666666',
 323      'nogender_notactive' => 'cccccc'
 324  );
 325  
 326  ?>

title

Description

title

Description

title

Description

title

title

Body