Plugin Directory

Changeset 1005467


Ignore:
Timestamp:
10/11/2014 03:48:27 AM (11 years ago)
Author:
waspio
Message:

Fixed support for required PHP5.3.0 version

Location:
waspio/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • waspio/trunk/README.txt

    r1005452 r1005467  
    1616
    1717**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
     19A 14 day free trial is provided for all Wasp users.
    1820
    1921Wasp.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.
     
    4042Error 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).
    4143
     44= What happens after the 14 day trial period expires? =
     45
     46If 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
    4248== Screenshots ==
    4349
     
    4551
    4652== 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
    4757
    4858= 2.2.0 =
  • waspio/trunk/wasp.class.php

    r1005452 r1005467  
    44 * wasp.io
    55 * @author Wasp.io
    6  * @version 2.2.0
     6 * @version 2.2.1
    77 * @date 28-Sep-2013
    88 * @updated 10-Oct-2014
     
    8484    private $timeout = 2;
    8585    private $ip_address = '';
    86     private $wasp_version = '2.2.0';
     86    private $wasp_version = '2.2.1';
    8787    private $notification_uri = 'https://wasp.io/requests/datastore/v3/';
    8888    private $php_version = \PHP_VERSION;
     
    139139    {
    140140        //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 )
    142142        {
    143143            throw new Exception( 'Wasp requires at least PHP 5.3.0' );
  • waspio/trunk/wasp.php

    r1005452 r1005467  
    44Plugin URI: https://wasp.io/
    55Description: 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.0
     6Version: 2.2.1
    77Author: Wasp.io
    88Author URI: https://wasp.io
     
    1717}
    1818
    19 define( 'WASP_VERSION', '2.2.0' );
     19define( 'WASP_VERSION', '2.2.1' );
    2020define( 'WASP_HOST_BASE', 'https://wasp.io/' );
    2121define( 'WASP_MINIMUM_WP_VERSION', '3.0' );
     
    4242wp_enqueue_script( 'jquery' );
    4343
    44 global $wasp_levels, $wasp, $wasp_activated, $wasp_default_ignored;
     44global $wasp_levels, $wasp, $wasp_activated, $wasp_default_ignored, $wasp_capable;
    4545$wasp_activated = false;
    4646$wasp_levels = array(
     
    6767);
    6868$wasp_default_ignored = array( "1", "3", "4" );
     69$wasp_capable = true;
     70//Perform a single check to determine if Wasp may be used
     71if( version_compare( PHP_VERSION, '5.3.0' ) < 0 )
     72{
     73    $wasp_capable = false;
     74}
    6975
    7076
     
    271277    function wasp_start()
    272278    {
    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        )
    274287        {
    275288            global $wasp_activated;
     
    338351    function wasp_track_404()
    339352    {
    340         global $wasp_activated;
     353        global $wasp_activated, $wasp_capable;
    341354        //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 )
    343356        {
    344357            global $wasp;
     
    354367 * Warnings and checks
    355368 */
     369function 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}
     373if( !$wasp_capable )
     374{
     375    add_action( 'admin_notices', 'wasp_warn_phpversion' );
     376}
    356377if( !function_exists( 'curl_version' ) )
    357378{
     
    370391    add_action( 'admin_notices', 'wasp_no_user' );
    371392}
    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.