Changeset 1005467
- Timestamp:
- 10/11/2014 03:48:27 AM (11 years ago)
- Location:
- waspio/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (3 diffs)
-
wasp.class.php (modified) (3 diffs)
-
wasp.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
waspio/trunk/README.txt
r1005452 r1005467 16 16 17 17 **You must have a [Wasp.io](https://wasp.io/) account in order to use this plugin. Sign up for free, no credit card needed** 18 19 A 14 day free trial is provided for all Wasp users. 18 20 19 21 Wasp.io automatically tracks errors generated by your applications, intelligently notifies your team, and provides realtime data feeds of errors and activity for all of your websites by sending the details of generated errors to the Wasp API. … … 40 42 Error details are sent to the Wasp API (all things Waspside are SSL only for security) for filtering, notification, and management through your user account. Since debugging is already a task, Wasp sends as much information as possible including full stacktrace information, browser information, the code where an error was generated, and user email, user name, and user ID of logged in users (if the option to track users is enabled from the settings page). 41 43 44 = What happens after the 14 day trial period expires? = 45 46 If after using Wasp, if you aren't inclined to pay for a subscription after the 14 day trial period expires, you'll still have full access to your Wasp account and any projects you've been added to by owners of other accounts. API requests for projects associated with expired accounts are just rejected. 47 42 48 == Screenshots == 43 49 … … 45 51 46 52 == Changelog == 53 54 = 2.2.1 = 55 * Fixed support for required PHP5.3.0 version 56 * Updated plugin files to more clearly represent free trial period for Wasp service 47 57 48 58 = 2.2.0 = -
waspio/trunk/wasp.class.php
r1005452 r1005467 4 4 * wasp.io 5 5 * @author Wasp.io 6 * @version 2.2. 06 * @version 2.2.1 7 7 * @date 28-Sep-2013 8 8 * @updated 10-Oct-2014 … … 84 84 private $timeout = 2; 85 85 private $ip_address = ''; 86 private $wasp_version = '2.2. 0';86 private $wasp_version = '2.2.1'; 87 87 private $notification_uri = 'https://wasp.io/requests/datastore/v3/'; 88 88 private $php_version = \PHP_VERSION; … … 139 139 { 140 140 //Make sure we have a new enough version of PHP for Wasp to do it's job 141 if( version_compare( $this->php_version, '5.3.0' , '<' ))141 if( version_compare( $this->php_version, '5.3.0' ) < 0 ) 142 142 { 143 143 throw new Exception( 'Wasp requires at least PHP 5.3.0' ); -
waspio/trunk/wasp.php
r1005452 r1005467 4 4 Plugin URI: https://wasp.io/ 5 5 Description: Wasp.io automatically tracks errors generated by your applications, intelligently notifies your team, and provides realtime data feeds of errors and activity for all of your websites. 6 Version: 2.2. 06 Version: 2.2.1 7 7 Author: Wasp.io 8 8 Author URI: https://wasp.io … … 17 17 } 18 18 19 define( 'WASP_VERSION', '2.2. 0' );19 define( 'WASP_VERSION', '2.2.1' ); 20 20 define( 'WASP_HOST_BASE', 'https://wasp.io/' ); 21 21 define( 'WASP_MINIMUM_WP_VERSION', '3.0' ); … … 42 42 wp_enqueue_script( 'jquery' ); 43 43 44 global $wasp_levels, $wasp, $wasp_activated, $wasp_default_ignored ;44 global $wasp_levels, $wasp, $wasp_activated, $wasp_default_ignored, $wasp_capable; 45 45 $wasp_activated = false; 46 46 $wasp_levels = array( … … 67 67 ); 68 68 $wasp_default_ignored = array( "1", "3", "4" ); 69 $wasp_capable = true; 70 //Perform a single check to determine if Wasp may be used 71 if( version_compare( PHP_VERSION, '5.3.0' ) < 0 ) 72 { 73 $wasp_capable = false; 74 } 69 75 70 76 … … 271 277 function wasp_start() 272 278 { 273 if( function_exists( 'curl_version' ) && wasp_checkkey() && get_option( 'wasp_active_status' ) == 1 ) 279 global $wasp_capable; 280 281 if( 282 function_exists( 'curl_version' ) && 283 wasp_checkkey() && 284 ( get_option( 'wasp_active_status' ) == 1 ) && 285 $wasp_capable === true 286 ) 274 287 { 275 288 global $wasp_activated; … … 338 351 function wasp_track_404() 339 352 { 340 global $wasp_activated ;353 global $wasp_activated, $wasp_capable; 341 354 //Add the 404 handler function as needed 342 if( $wasp_ activated && is_404() && get_option( 'wasp_track_404' ) == 1 )355 if( $wasp_capable === true && $wasp_activated && is_404() && get_option( 'wasp_track_404' ) == 1 ) 343 356 { 344 357 global $wasp; … … 354 367 * Warnings and checks 355 368 */ 369 function wasp_warn_phpversion() 370 { 371 echo '<div class=\'updated fade\'><p><strong>Wasp.io requires PHP version 5.3.0 or above.</strong> Please update PHP to at least 5.3, or contact your server administrator. Your current PHP version is '.PHP_VERSION.'.</p></div>'; 372 } 373 if( !$wasp_capable ) 374 { 375 add_action( 'admin_notices', 'wasp_warn_phpversion' ); 376 } 356 377 if( !function_exists( 'curl_version' ) ) 357 378 { … … 370 391 add_action( 'admin_notices', 'wasp_no_user' ); 371 392 } 372 function wasp_warn_phpversion()373 {374 echo '<div class=\'updated fade\'><p><strong>Wasp.io requires PHP version 5.3.0 or above.</strong> Please update PHP to at least 5.3, or contact your server administrator. Your current PHP version is '.PHP_VERSION.'.</p></div>';375 }
Note: See TracChangeset
for help on using the changeset viewer.