Plugin Directory

Changeset 1658186


Ignore:
Timestamp:
05/16/2017 04:47:34 AM (9 years ago)
Author:
ehops32
Message:

1.4

  • Moved logging script from the header to the footer to increase your website load time.
  • Improved the way we log the server name.
Location:
homesnaps-seo/trunk
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • homesnaps-seo/trunk/homesnaps-seo.php

    r1651376 r1658186  
    44   Plugin URI: http://wpplugin-seo.homesnaps.com
    55   Description: Organizes site visitors
    6    Version: 1.3
     6   Version: 1.4
    77   Author: Eric Thornton
    88   Author URI: https://homesnaps.com
     
    1212    defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
    1313
    14     $hs_ver = '1.3';
     14    $hs_ver = '1.4';
    1515    $admin_email = 'eric@homesnaps.com';
    1616    $hs_current_user = '';
     
    2020        global $admin_email;
    2121        global $hs_current_user;
    22         $server_name = '' . @$_SERVER['HTTP_HOST'];     
     22        $server_name = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '';       
    2323        $hs_current_user = isset($hs_current_user) ? $hs_current_user : '';
    2424        mail($admin_email, 'HS SEO Plugin Activated', $server_name . "\n" . $hs_current_user); 
     
    2929        global $admin_email;
    3030        global $hs_current_user;
    31         $server_name = '' . @$_SERVER['HTTP_HOST'];
     31        $server_name = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '';
    3232        $hs_current_user = isset($hs_current_user) ? $hs_current_user : '';
    3333        mail($admin_email, 'HS SEO Plugin DE-activated', $server_name . "\n" . $hs_current_user);   
    3434    }
    3535   
    36     function hs_plugin_header()
     36    function hs_plugin_footer()
    3737    {
    38         //$hs_current_user =  @get_current_user_id();
    3938        global $hs_current_user;
    4039        global $hs_ver;
     
    4948
    5049        $referer = '' . @$_SERVER['HTTP_REFERER'];
    51         $server_name = '' . @$_SERVER['HTTP_HOST'];
     50        $server_name = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '';
    5251        $hs_current_user = isset($hs_current_user) ? $hs_current_user : '';
    5352       
     
    7170
    7271        $referer = '' . @$_SERVER['HTTP_REFERER'];
    73         $server_name = '' . @$_SERVER['HTTP_HOST'];
     72        $server_name = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '';
    7473        $hs_current_user = isset($hs_current_user) ? $hs_current_user : '';
    7574       
     
    9695   
    9796    add_action('init','hs_assign_user');
    98     add_action('wp_head', 'hs_plugin_header');
     97    add_action('wp_footer', 'hs_plugin_footer');
    9998    add_action('admin_head', 'hs_plugin_header_admin');
    10099   
  • homesnaps-seo/trunk/readme.txt

    r1651376 r1658186  
    11=== HomeSnaps SEO ===
    2 Contributors: Eric Thornton
     2Contributors: ehops32
    33Requires at least: 4.7.0
    44Tested up to: 4.7.4
    55Stable tag: 4.7.0
    66
    7 A useful tool to monitor site traffic.
     7A useful tool to monitor site traffic. An account to sign into your dashboards needs to be set up, for a screen capture of this dashboard, see this image: https://homesnaps.com/wp/traffic_dashboard.png For setup, please contact newaccount@homesnaps.com
     8
     9== Frequently Asked Questions ==
     10 
     11= How much is it to access the analytics dashboard =
     12 
     13The price is $10 per month.
     14 
     15= Why should I use this instead of other tools? =
     16 
     17Our dashboard is very simple, no need for complex instructions.
     18
     19= Can you customize my dashboard to include specific items I would like to have? =
     20 
     21Yes, our product is always evolving, we encourage active involvement with your ides.
     22 
     23== Screenshots ==
     24 
     251. /assets/traffic_dashboard.png
     26 
     27== Changelog ==
     28 
     29= 1.4 =
     30* Moved logging script from the header to the footer to increase your website load time.
     31* Improved the way we log the server name.
     32 
     33= 1.0 =
     34* Initial GoLive Version
     35 
     36== Upgrade Notice ==
     37 
     38= 1.4 =
     39This version is faster than previous versions.
Note: See TracChangeset for help on using the changeset viewer.