Plugin Directory

Changeset 1256026


Ignore:
Timestamp:
09/29/2015 06:36:09 PM (10 years ago)
Author:
nicolasfox
Message:

version 1.0.3 multi-user

Location:
gps-tracker
Files:
10 added
1 deleted
15 edited

Legend:

Unmodified
Added
Removed
  • gps-tracker/tags/1.0.1/public/class-gpstracker.php

    r1026546 r1256026  
    197197        // wp_enqueue_style('gpstracker-bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css', false, '3.2.0', 'all');
    198198   
    199         wp_enqueue_style( $this->plugin_slug . '-leaflet-styles', plugins_url( 'assets/js/leaflet-0.7.3/leaflet.css', __FILE__ ), array(), self::VERSION );             
     199        wp_enqueue_style( $this->plugin_slug . '-leaflet-styles', plugins_url( 'assets/js/leaflet-0.7.5/leaflet.css', __FILE__ ), array(), self::VERSION );             
    200200        wp_enqueue_style('gpstracker-bootstrap', '//maxcdn.bootstrapcdn.com/bootswatch/3.2.0/superhero/bootstrap.min.css', false, '3.2.0', 'all');
    201201        wp_enqueue_style( $this->plugin_slug . '-light-styles', plugins_url( 'assets/css/light.css', __FILE__ ), array(), self::VERSION );
     
    210210        wp_enqueue_script( $this->plugin_slug . '-google-maps', '//maps.google.com/maps/api/js?v=3&sensor=false&libraries=adsense', array(), self::VERSION );
    211211        wp_enqueue_script( $this->plugin_slug . '-map-js', plugins_url( 'assets/js/gpstracker-map.js', __FILE__ ), array('jquery'), self::VERSION );
    212         wp_enqueue_script( $this->plugin_slug . '-leaflet-js', plugins_url( 'assets/js/leaflet-0.7.3/leaflet.js', __FILE__ ), array('jquery'), self::VERSION );
     212        wp_enqueue_script( $this->plugin_slug . '-leaflet-js', plugins_url( 'assets/js/leaflet-0.7.5/leaflet.js', __FILE__ ), array('jquery'), self::VERSION );
    213213        wp_enqueue_script( $this->plugin_slug . '-google-js', plugins_url( 'assets/js/leaflet-plugins/google.js', __FILE__ ), array('jquery'), self::VERSION );
    214214        wp_enqueue_script( $this->plugin_slug . '-bing-js', plugins_url( 'assets/js/leaflet-plugins/bing.js', __FILE__ ), array('jquery'), self::VERSION );       
  • gps-tracker/tags/1.0.2/gpstracker.php

    r1031078 r1256026  
    1313 * Plugin URI:        https://www.websmithing.com/gps-tracker
    1414 * Description:       Track your Android cell phone in real time and store routes for later viewing.
    15  * Version:           1.0.2
     15 * Version:           1.0.3
    1616 * Author:            Nick Fox
    1717 * Author URI:        https://www.websmithing.com/hire-me
     
    2828// Plugin version
    2929if ( ! defined( 'GPSTRACKER_VERSION' ) ) {
    30     define( 'GPSTRACKER_VERSION', '1.0.2' );
     30    define( 'GPSTRACKER_VERSION', '1.0.3' );
    3131}
    3232
  • gps-tracker/tags/1.0.2/public/class-gpstracker.php

    r1031078 r1256026  
    2929     * @var string
    3030     */
    31     const VERSION = '1.0.2';
     31    const VERSION = '1.0.3';
    3232
    3333    /**
     
    197197        // wp_enqueue_style('gpstracker-bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css', false, '3.2.0', 'all');
    198198   
    199         wp_enqueue_style( $this->plugin_slug . '-leaflet-styles', plugins_url( 'assets/js/leaflet-0.7.3/leaflet.css', __FILE__ ), array(), self::VERSION );             
     199        wp_enqueue_style( $this->plugin_slug . '-leaflet-styles', plugins_url( 'assets/js/leaflet-0.7.5/leaflet.css', __FILE__ ), array(), self::VERSION );             
    200200        wp_enqueue_style('gpstracker-bootstrap', '//maxcdn.bootstrapcdn.com/bootswatch/3.3.0/superhero/bootstrap.min.css', false, '3.3.0', 'all');
    201201        wp_enqueue_style( $this->plugin_slug . '-light-styles', plugins_url( 'assets/css/light.css', __FILE__ ), array(), self::VERSION );
     
    210210        wp_enqueue_script( $this->plugin_slug . '-google-maps', '//maps.google.com/maps/api/js?v=3&sensor=false&libraries=adsense', array(), self::VERSION );
    211211        wp_enqueue_script( $this->plugin_slug . '-map-js', plugins_url( 'assets/js/gpstracker-map.js', __FILE__ ), array('jquery'), self::VERSION );
    212         wp_enqueue_script( $this->plugin_slug . '-leaflet-js', plugins_url( 'assets/js/leaflet-0.7.3/leaflet.js', __FILE__ ), array('jquery'), self::VERSION );
     212        wp_enqueue_script( $this->plugin_slug . '-leaflet-js', plugins_url( 'assets/js/leaflet-0.7.5/leaflet.js', __FILE__ ), array('jquery'), self::VERSION );
    213213        wp_enqueue_script( $this->plugin_slug . '-google-js', plugins_url( 'assets/js/leaflet-plugins/google.js', __FILE__ ), array('jquery'), self::VERSION );
    214214        wp_enqueue_script( $this->plugin_slug . '-bing-js', plugins_url( 'assets/js/leaflet-plugins/bing.js', __FILE__ ), array('jquery'), self::VERSION );       
  • gps-tracker/tags/1.0.2/readme.txt

    r1031078 r1256026  
    77Requires at least: 4.0
    88Tested up to: 4.0
    9 Stable tag: 1.0.2
     9Stable tag: 1.0.3
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6767== Changelog ==
    6868
     69= 1.0.3, January 8, 2015 =
     70
     71* Fixed Google Maps library so that it would not be instantiated twice
     72
    6973= 1.0.2, November 22, 2014 =
    7074
     
    8488== Upgrade Notice ==
    8589
     90= 1.0.3, January 8, 2015 =
     91
     92* Fixed Google Maps library so that it would not be instantiated twice
     93
    8694= 1.0.2, November 22, 2014 =
    8795
  • gps-tracker/trunk/admin/class-gpstracker-admin.php

    r1026546 r1256026  
    55 * @package   Gps_Tracker_Admin
    66 * @author    Nick Fox <nickfox@websmithing.com>
    7  * @license   GPL-2.0+
     7 * @license   MIT/GPLv2 or later
    88 * @link      https://www.websmithing.com/gps-tracker
    99 * @copyright 2014 Nick Fox
  • gps-tracker/trunk/gpstracker.php

    r1031076 r1256026  
    55 * @package   Gps_Tracker
    66 * @author    Nick Fox <nickfox@websmithing.com>
    7  * @license   GPL-2.0+
     7 * @license   MIT/GPLv2 or later
    88 * @link      https://www.websmithing.com/gps-tracker
    99 * @copyright 2014 Nick Fox
     
    1212 * Plugin Name:       Gps Tracker
    1313 * Plugin URI:        https://www.websmithing.com/gps-tracker
    14  * Description:       Track your Android cell phone in real time and store routes for later viewing.
    15  * Version:           1.0.2
     14 * Description:       Track Android cell phones in real time and store routes for later viewing.
     15 * Version:           1.0.3
    1616 * Author:            Nick Fox
    1717 * Author URI:        https://www.websmithing.com/hire-me
    1818 * Text Domain:       gpstracker
    19  * License:           GPL-2.0+
    20  * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
     19 * License:           MIT/GPLv2 or later
     20 * License URI:       https://opensource.org/licenses/MIT, http://www.gnu.org/licenses/gpl-2.0.html
    2121 * Domain Path:       /languages
    2222 * GitHub Plugin URI: https://github.com/nickfox/GpsTracker-Wordpress-Plugin
     
    2828// Plugin version
    2929if ( ! defined( 'GPSTRACKER_VERSION' ) ) {
    30     define( 'GPSTRACKER_VERSION', '1.0.2' );
     30    define( 'GPSTRACKER_VERSION', '1.0.3' );
    3131}
    3232
  • gps-tracker/trunk/includes/class-gpstracker-gamajo-template-loader.php

    r1031077 r1256026  
    88 * @link      http://github.com/GaryJones/Gamajo-Template-Loader
    99 * @copyright 2013 Gary Jones
    10  * @license   GPL-2.0+
     10 * @license   MIT/GPLv2 or later
    1111 */
    1212
  • gps-tracker/trunk/includes/class-gpstracker-setup.php

    r1026546 r1256026  
    66 * @subpackage Classes/Setup
    77 * @author     Nick Fox <nickfox@websmithing.com>
    8  * @license    GPL-2.0+
     8 * @license    MIT/GPLv2 or later
    99 * @link       https://www.websmithing.com/gps-tracker
    1010 * @copyright  2014 Nick Fox
  • gps-tracker/trunk/includes/class-gpstracker-template-loader.php

    r1031076 r1256026  
    66 * @subpackage Classes/GpsTracker Template Loader
    77 * @author    Nick Fox <nickfox@websmithing.com>
    8  * @license   GPL-2.0+
     8 * @license   MIT/GPLv2 or later
    99 * @link      https://www.websmithing.com/gps-tracker
    1010 * @copyright 2014 Nick Fox
  • gps-tracker/trunk/public/assets/js/gpstracker-map.js

    r1031076 r1256026  
    66    var zoom = 12;
    77    var autoRefresh = false;
    8     var sessionIDArray;
     8    var sessionIDArray = [];
    99    var viewingAllRoutes = false;
    1010
  • gps-tracker/trunk/public/class-gpstracker.php

    r1031076 r1256026  
    66 * @category  Core
    77 * @author    Nick Fox <nickfox@websmithing.com>
    8  * @license   GPL-2.0+
     8 * @license   MIT/GPLv2 or later
    99 * @link      https://www.websmithing.com/gps-tracker
    1010 * @copyright 2014 Nick Fox
     
    2929     * @var string
    3030     */
    31     const VERSION = '1.0.2';
     31    const VERSION = '1.0.3';
    3232
    3333    /**
     
    189189     * @since 1.0.0
    190190     */
    191     public function enqueue_styles() {
    192         /*
    193         wp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'assets/css/public.css', __FILE__ ), array(), self::VERSION );
    194         */
    195         // wp_enqueue_style( $this->plugin_slug . '-bootstrap-styles', plugins_url( '//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css', __FILE__ ), array(), self::VERSION );
    196        
    197         // wp_enqueue_style('gpstracker-bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css', false, '3.2.0', 'all');
    198    
    199         wp_enqueue_style( $this->plugin_slug . '-leaflet-styles', plugins_url( 'assets/js/leaflet-0.7.3/leaflet.css', __FILE__ ), array(), self::VERSION );             
    200         wp_enqueue_style('gpstracker-bootstrap', '//maxcdn.bootstrapcdn.com/bootswatch/3.3.0/superhero/bootstrap.min.css', false, '3.3.0', 'all');
     191    public function enqueue_styles() {   
     192        wp_enqueue_style( $this->plugin_slug . '-leaflet-styles', plugins_url( 'assets/js/leaflet-0.7.5/leaflet.css', __FILE__ ), array(), self::VERSION );             
     193        wp_enqueue_style('gpstracker-bootstrap', '//maxcdn.bootstrapcdn.com/bootswatch/3.3.5/superhero/bootstrap.min.css', false, '3.3.0', 'all');
    201194        wp_enqueue_style( $this->plugin_slug . '-light-styles', plugins_url( 'assets/css/light.css', __FILE__ ), array(), self::VERSION );
    202195    }
     
    208201     */
    209202    public function enqueue_scripts() {     
    210         wp_enqueue_script( $this->plugin_slug . '-google-maps', '//maps.google.com/maps/api/js?v=3&sensor=false&libraries=adsense', array(), self::VERSION );
    211         wp_enqueue_script( $this->plugin_slug . '-map-js', plugins_url( 'assets/js/gpstracker-map.js', __FILE__ ), array('jquery'), self::VERSION );
    212         wp_enqueue_script( $this->plugin_slug . '-leaflet-js', plugins_url( 'assets/js/leaflet-0.7.3/leaflet.js', __FILE__ ), array('jquery'), self::VERSION );
    213         wp_enqueue_script( $this->plugin_slug . '-google-js', plugins_url( 'assets/js/leaflet-plugins/google.js', __FILE__ ), array('jquery'), self::VERSION );
    214         wp_enqueue_script( $this->plugin_slug . '-bing-js', plugins_url( 'assets/js/leaflet-plugins/bing.js', __FILE__ ), array('jquery'), self::VERSION );       
     203        wp_enqueue_script( $this->plugin_slug . '-gpstracker-google-maps', '//maps.google.com/maps/api/js?v=3&sensor=false&libraries=adsense', array(), self::VERSION );
     204        wp_enqueue_script( $this->plugin_slug . '-gpstracker-map-js', plugins_url( 'assets/js/gpstracker-map.js', __FILE__ ), array('jquery'), self::VERSION );
     205        wp_enqueue_script( $this->plugin_slug . '-gpstracker-leaflet-js', plugins_url( 'assets/js/leaflet-0.7.5/leaflet.js', __FILE__ ), array('jquery'), self::VERSION );
     206        wp_enqueue_script( $this->plugin_slug . '-gpstracker-google-js', plugins_url( 'assets/js/leaflet-plugins/google.js', __FILE__ ), array('jquery'), self::VERSION );
     207        wp_enqueue_script( $this->plugin_slug . '-gpstracker-bing-js', plugins_url( 'assets/js/leaflet-plugins/bing.js', __FILE__ ), array('jquery'), self::VERSION );       
    215208       
    216         wp_localize_script( $this->plugin_slug . '-map-js', 'map_js_vars', array(
     209        wp_localize_script( $this->plugin_slug . '-gpstracker-map-js', 'map_js_vars', array(
    217210            'plugin_url'                    => GPSTRACKER_PLUGIN_URL,
    218211            'ajax_url'                      => admin_url('admin-ajax.php'),
  • gps-tracker/trunk/public/includes/class-gpstracker-ajax.php

    r1026546 r1256026  
    66 * @subpackage Classes/Ajax
    77 * @author     Nick Fox <nickfox@websmithing.com>
    8  * @license    GPL-2.0+
     8 * @license    MIT/GPLv2 or later
    99 * @link       https://www.websmithing.com/gps-tracker
    1010 * @copyright  2014 Nick Fox
  • gps-tracker/trunk/public/includes/class-gpstracker-endpoint.php

    r1026546 r1256026  
    99 * @subpackage Classes/Endpoint
    1010 * @author     Nick Fox <nickfox@websmithing.com>
    11  * @license    GPL-2.0+
     11 * @license    MIT/GPLv2 or later
    1212 * @link       https://www.websmithing.com/gps-tracker
    1313 * @copyright  2014 Nick Fox
     
    6363        switch ( $wp_query->query_vars['gpstracker'] ) {
    6464            case 'nonce':
    65                 $phone_number = isset($wp_query->query_vars['phonenumber']) ? $wp_query->query_vars['phonenumber'] : '0';
    6665                $session_id = isset($wp_query->query_vars['sessionid']) ? $wp_query->query_vars['sessionid'] : '0';
    6766                $session_id_pattern = '/^[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$/';   
    6867     
    69                 if ( preg_match($session_id_pattern, $session_id) && preg_match($session_id_pattern, $phone_number) ) {
    70                     $app_id = get_option('gpstracker_app_id');
     68                if ( preg_match($session_id_pattern, $session_id) ) {
     69                    echo wp_create_nonce($session_id);
     70                } else {
     71                    echo '0';
     72                }
    7173               
    72                     $gps_action = '';
    73                     $gps_nonce = '';
    74                
    75                     if ( ! $app_id ) {
    76                         // this will only happen once 
    77                         $gps_action = 'a'; 
    78                         add_option( 'gpstracker_app_id', $phone_number, '', 'yes' );
    79                         $gps_nonce = wp_create_nonce($session_id);
    80                         echo $gps_nonce;   
    81                     } else {
    82                         if ( $phone_number == $app_id ) {
    83                             $gps_action = 'b';
    84                             $gps_nonce = wp_create_nonce($session_id);
    85                             echo $gps_nonce;
    86                         } else {
    87                             $gps_action = 'c';
    88                             echo '-1';
    89                         }
    90                     }
    91                    
    92                     global $wpdb;
    93                     $table_name = $wpdb->prefix . 'gps_logger';
    94                     $wpdb->insert(
    95                     $table_name,
    96                     array(
    97                         'gps_action'        => $gps_action,
    98                         'phone_number'      => $phone_number,
    99                         'session_id'        => $session_id,
    100                         'app_id'            => $app_id,
    101                         'nonce'             => $gps_nonce
    102                     ),
    103                     array(
    104                         '%s', '%s', '%s', '%s', '%s'
    105                         )
    106                     );
    107                    
    108                 } else {
    109                     echo '-2';
    110                 }
    111 
    11274                break;
    11375            case 'location':
     
    11678           
    11779                if ( ! wp_verify_nonce($wpnonce, $session_id) ) {
    118                     echo '-3';
     80                    echo '0';
    11981                    exit;
    12082                }
    12183       
    12284                $latitude = isset($wp_query->query_vars['latitude']) ? $wp_query->query_vars['latitude'] : '0.0';
     85                $latitude = (float)str_replace(",", ".", $latitude); // to handle European locale decimals
    12386                $longitude = isset($wp_query->query_vars['longitude']) ? $wp_query->query_vars['longitude'] : '0.0';
     87                $longitude = (float)str_replace(",", ".", $longitude);
    12488                $user_name = isset($wp_query->query_vars['username']) ? $wp_query->query_vars['username'] : 'wordpressUser';
    12589                $phone_number = isset($wp_query->query_vars['phonenumber']) ? $wp_query->query_vars['phonenumber'] : '867-5309';
     
    12791                $direction = isset($wp_query->query_vars['direction']) ? $wp_query->query_vars['direction'] : '0';
    12892                $distance = isset($wp_query->query_vars['distance']) ? $wp_query->query_vars['distance'] : '0';
     93                $distance = (float)str_replace(",", ".", $distance);
    12994                $gps_time = isset($wp_query->query_vars['gpstime']) ? urldecode($wp_query->query_vars['gpstime']) : '0000-00-00 00:00:00';
    13095                $location_method = isset($wp_query->query_vars['locationmethod']) ? $wp_query->query_vars['locationmethod'] : '0';
  • gps-tracker/trunk/readme.txt

    r1031076 r1256026  
    66Tags: android, gps, cell, phone, tracker, google, map, openstreetview, track, websmithing
    77Requires at least: 4.0
    8 Tested up to: 4.0
    9 Stable tag: 1.0.2
    10 License: GPLv2 or later
    11 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     8Tested up to: 4.3.1
     9Stable tag: 1.0.3
     10License: MIT/GPLv2 or later
     11License URI: https://opensource.org/licenses/MIT, http://www.gnu.org/licenses/gpl-2.0.html
    1212
    13 Track your Android cell phone in real time and store routes for later viewing.
     13Track Android cell phones in real time and store routes for later viewing.
    1414
    1515== Description ==
    1616
    17 This is the first and only WordPress plugin that allows you to track your Android cell phone in real time. You can watch the cell phone being tracked using google maps or OpenStreetView maps and you can store and reload routes easily for later viewing. The plugin is fully responsive and this means that it will display properly on any device such as a cell phone, tablet or desktop computer.
     17This is the first and only WordPress plugin that allows you to track Android cell phones in real time. You can watch the cell phones being tracked using google maps or OpenStreetView maps and you can store and reload routes easily for later viewing. The plugin is fully responsive and this means that it will display properly on any device such as a cell phone, tablet or desktop computer.
    1818
    1919View a working sample of the plugin here:
     
    5555That shows all of your routes. For instance, suppose you track your phone on Monday for 3 hours and then Tuesday for 2 hours. You will then see two routes in the drop down box.
    5656
    57 = I want to track more than one cell phone, what can I do? =
     57= I want to modify this plugin for my own company or personal use, what can I do? =
    5858
    59 This plugin allows you to track one Android cell phone for personal use. If you wish to track more than one cell phone, then you will need to purchase a 5-pack for $29 or a 10-pack for $49. The single license plugin is free and the multi-pack plugins will be available in late November, 2014. If you wish to track more than 10 cell phones, please contact me at nickfox@websmithing.com.
     59I'm available for hire, read more about me here, https://www.websmithing.com/hire-me/ and please contact me at nickfox@websmithing.com.
    6060
    6161== Screenshots ==
     
    6666
    6767== Changelog ==
     68
     69= 1.0.3, September 29, 2015 =
     70
     71* Can now be used with unlimited number of android phones
     72* Fixed Google Maps library so that it would not be instantiated twice
    6873
    6974= 1.0.2, November 22, 2014 =
     
    8489== Upgrade Notice ==
    8590
     91= 1.0.3, January 8, 2015 =
     92
     93* Fixed Google Maps library so that it would not be instantiated twice
     94
    8695= 1.0.2, November 22, 2014 =
    8796
  • gps-tracker/trunk/uninstall.php

    r1026546 r1256026  
    55 * @package   Gps_Tracker
    66 * @author    Nick Fox <nickfox@websmithing.com>
    7  * @license   GPL-2.0+
     7 * @license   MIT/GPLv2 or later
    88 * @link      https://www.websmithing.com/gps-tracker
    99 * @copyright 2014 Nick Fox
Note: See TracChangeset for help on using the changeset viewer.