\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.


Hit Sniffer - an eye on your site

There is a error avoiding you to use one click install option. Please get your API Code manually at hitsniffer website.

Your Error Code to report is:

Hit Sniffer real time visitor activity tracker and analytics, allows you to be aware what is going in your wordpress blog and sites right now and has detailed archive for tracked visitor data. If you don't have an API code yet, you can get your free trial one at hitsniffer.com.

One Click Install:


by clicking this button, you agree hitsniffer's terms. this will create/update your hitsniffer account with email of user_email; ?>, if email is wrong, please update it in wordpress user management before clicking this button.


Advanced Settings:


Hit Sniffer API Code: ( Get your code )

Each site has its own API Code. It looks something like this 3defb4a2e4426642ea... and can be found in your settings page on hitsniffer.com

>Yes  >No   Show hit sniffer quick summary in Wordpress dashboard?

>Yes  >No   Track visitors name ( using name they enter when commenting )?

>Yes  >No   Ignore admin visits?

checked>Yes  >No   Enable "chat with your visitors feature" (not available on starter plan)

checked>Yes  >No   Use the compact theme for wordpress dashboard widget?

checked>Yes  >No   Allow Hit Sniffer statistics widget to show my stats to visitors on my blog?


How configure Hit Sniffer for Wordpress?

Just Just sign up for a hit sniffer account and follow our extremely simple instructions.
Login to your hit sniffer account, add your website address to your hit sniffer account.
Then in the Hitsniffer.com settings page, you will find your Hit Sniffer API code.
Copy and paste the API code into the field above.
All your visitor information will be tracked and logged in real-time and you can monitor the data live in your Hitsniffer.com dashboard.

View the features of Hitsniffer

Hitsniffer also supports normal websites ( non wordpress pages ).
If you have a normal website then all you have to do is input the tracking code on each page of your website, a header of footer page is ideal for this.

Website Code:

Hitsniffer API Code is not installed. Please open Wordpress settings -> Hitsniffer for instructions.
You need get your free hit sniffer account to get an API key.

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.
Click here to open Hit Sniffer Widgets page.

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.

- Online Now
Visits Today: -
Pageviews Today: -
New Visitors Today: -
Returning Visitors Today:
New Visits Today: -%
Visits Yesterday: -
Pageviews Yesterday: -
New Visitors Yesterday: -
Returning Visitors Yesterday: -
New Visits Yesterday: -%
Total Visits: -
Total Pageviews: -
Hit Sniffer Analytics
Hit Sniffer Analytics
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

If you want use credit link as your hitsniffer affiliate link, please enter your affiliate ID.

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; } ?>