[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/class/options/tracking/metaboxes/user/ -> u005.php (source)

   1  <?php
   2  class MP_Tracking_metabox_u005 extends MP_tracking_metabox_sysinfo_
   3  {
   4      var $id    = 'u005';
   5      var $context= 'side';
   6      var $file     = __FILE__;
   7  
   8      var $item_id = 'user_id';
   9      var $query = false;
  10  
  11  	function extended_meta_box($mp_user)
  12      {
  13          global $wpdb;
  14          $tracks = $wpdb->get_results( $wpdb->prepare( "SELECT DISTINCT agent, ip FROM $wpdb->mp_tracks WHERE user_id = %d LIMIT 10;", $mp_user->id) );
  15          if (empty($tracks)) return;
  16  
  17          foreach($tracks as $track) 
  18          {
  19              $os      = apply_filters('MailPress_tracking_useragents_os_get_info',      $track->agent);
  20              $browser = apply_filters('MailPress_tracking_useragents_browser_get_info', $track->agent);
  21              echo $os . ' ' . $browser . '&#160;&#160;&#160;@&#160;' . $track->ip . '<br />'; 
  22          }
  23      }
  24  }
  25  new MP_Tracking_metabox_u005(__('System info', MP_TXTDOM));


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1