\n"; return; } $htmlpar=''; $purl='http://www.'; $htssl=''; if (isset($_SERVER["HTTPS"])){ if ($_SERVER["HTTPS"]=='on'){ $purl='https://'; $htssl=" - SSL"; } } ?> user_login; if ($ipname!=''){ $htmlpar.='&ipname='.urlencode(addslashes($ipname)); } } $htmlpar.='&ref='.urlencode(addslashes($_SERVER["HTTP_REFERER"])); $htmlpar.='&title='.urlencode(addslashes(wp_title('',false))); $keyword[0]='Realtime Web Statistics'; $keyword[1]='website statistics'; $keyword[2]='website tracking software'; $keyword[3]='website tracking'; $keyword[4]='blog statistics'; $keyword[5]='blog tracking'; $keyword[6]='Realtime website statistics'; $keyword[7]='Realtime website tracking software'; $keyword[8]='Realtime website tracking'; $keyword[9]='Realtime blog statistics'; $keyword[10]='Realtime blog tracking'; $keyword[11]='free website tracking'; $keyword[12]='visitor activity tracker'; $keyword[13]='visitor activity monitoring'; $keyword[14]='visitor activity monitor'; $keyword[15]='user activity tracking'; $keyword[16]='website analytics'; $keyword[17]='blog analytics'; $keyword[18]='visitor analytics'; if ($option['stats']!=2){ $stats_widget="publish=1&"; } ?>
".__('Hitsniffer is almost ready.')." ".sprintf(__('You must enter your Hitsniffer API key to start tracking your stats.'), "options-general.php?page=hit-sniffer-blog-stats/hitsniffer.php")."
"; } add_action('admin_notices', 'hitsniffer_warning'); return; } } function get_hs_conf(){ $option=get_option('hs_setting'); if (round($option['wgd'])==0) $option['wgd']=1; if (round($option['tkn'])==0) $option['tkn']=1; if (round($option['iga'])==0) $option['iga']=0; if (round($option['allowchat'])==0) $option['allowchat']=1; if (round($option['theme'])==0) $option['theme']=2; if (round($option['stats'])==0) $option['stats']=2; return $option; } function set_hs_conf($conf){update_option('hs_setting',$conf);} function hs_admin_menu(){ $x = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); add_options_page('Hit Sniffer Options', 'Hit Sniffer', 9, __FILE__, 'hs_optionpage'); } function hs_optionpage(){ $option=get_hs_conf(); $option['code']=html_entity_decode($option['code']); $option['wgd']=html_entity_decode($option['wgd']); $option['allowchat']=html_entity_decode($option['allowchat']); $option['theme']=html_entity_decode($option['theme']); $option['stats']=html_entity_decode($option['stats']); $magicable=0; //temporary disable magic feature global $current_user; if(function_exists('get_currentuserinfo')){ get_currentuserinfo(); } if ($current_user->user_email==''){ $magicable=0; } if ($current_user->display_name==''){ $current_user->display_name=$current_user->user_firstname; } if ($current_user->user_identity!=''){ $current_user->display_name=$current_user->user_identity; } if ($current_user->user_firstname==''){ $current_user->user_firstname=$current_user->display_name; } if ($current_user->display_name==''){ $magicable=0; } if(!function_exists('get_bloginfo')){ $magicable=0; } if(!function_exists('curl_init')){ $magicable=0; } if ($_REQUEST['hitmagic']=='do'){ if ($magicable==1){ $murl = 'http://www.hitsniffer.com/wp-register.php'; $lang=get_bloginfo('language'); if (strpos($lang,"-")>0){ $splitlang=explode("-",$lang); $lang=$lang[0]; } if ($lang=='') $lang='en'; $mdata = array( 'ip'=>urlencode($_SERVER['REMOTE_ADDR']), 'fname'=>urlencode($current_user->user_firstname), 'lname'=>urlencode($current_user->user_lastname), 'email'=>urlencode($current_user->user_email), 'nick'=>urlencode($current_user->display_name), 'name'=>urlencode(get_bloginfo('name')), 'summary'=>urlencode(get_bloginfo('description')), 'site'=>str_replace("hit","hit",urlencode(get_bloginfo('home'))), 'lang'=>urlencode($lang), 'refhow'=>urlencode("wpmagic") ); foreach($mdata as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string,'&'); $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$murl); curl_setopt($ch,CURLOPT_POST,count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $hcresult = curl_exec($ch); //echo $result; curl_close($ch); if (strpos(" ".$hcresult." ","YourAPI")){ $codes=explode(":",$hcresult); $option['code']=$codes[1]; set_hs_conf($option); $saved=1; $magiced=1; } } } if ($_POST['action']=='do'){ $option=$_POST; $option['code']=htmlentities(str_replace(" ","",stripslashes($option['code']))); set_hs_conf($option); $saved=1; } ?>Hit Sniffer plugin setting have been saved. We have started tracking your visitors. You can monitor your visitor activity in real time here, but hey! Please wait until we track some visitors first!We have started tracking your visitors.Please get your Hitsniffer API code to enable us to start tracking your site visitors, for you.
|
Hitsniffer API Code is not installed. Please open Wordpress settings -> Hitsniffer for instructions. |
What is this widget?
Sniffer offers a live chat option available from the basic plan upwards. The widget shows an online support icon whenever you are online in your hit sniffer dashboard and shows a leave a message contact form icon when you are not online.With our Firefox addon, you can chat to your visitors direct from a firefox pop up window.
Please configure hit sniffer API Code in your wordpress settings -> Hit Sniffer before using the chat widget.
You have disabled the Hitsniffer statistics widget in your wordpress settings. Please open settings>Hitsniffer to enable this widget.You have disabled the Hitsniffer statistics widget in your wordpress settings.
Please open settings>Hitsniffer to enable this widget.
This widget allow you to show your visitors statistics in your sidebar for public.
checked>Yes
>No
Show Online Counts
checked>Yes
>No
Show Visits Today
checked>Yes
>No
Show Pageviews Today
checked>Yes
>No
Show New Visitors Count for Today
checked>Yes
>No
Show Returning Visitors Today
checked>Yes
>No
Show New Visits % Today
checked>Yes
>No
Show Vists Yesterday
checked>Yes
>No
Show Pageviews Yesterday
checked>Yes
>No
Show New Visitors Count for Yesterday
checked>Yes
>No
Show Returning Visitors Yesterday
checked>Yes
>No
Show New Visits % Yesterday
checked>Yes
>No
Show Total Pageviews
checked>Yes
>No
Show Total Visits
checked>Yes
>No
Use Custom Theme?
checked>Yes
>No
Show Hit Sniffer Link
Please configure your Hitsniffer API Code in your "wordpress Settings -> Hit Sniffer" before using the statistics widget.
' . __('Settings') . ''; # Add 'Settings' link to plugin's action links array_unshift($actionLinks, $settingsLink); } return $actionLinks; } ?>