Plugin Directory

Changeset 3192141


Ignore:
Timestamp:
11/19/2024 11:11:29 AM (16 months ago)
Author:
mtomic
Message:

v6.1.1 - update validation messages

Location:
smsify/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • smsify/trunk/includes/functions.php

    r3185293 r3192141  
    66    global $current_user;
    77    $smsify_params = new stdClass();
    8     $smsify_params->appVersion = '6.1.0';
     8    $smsify_params->appVersion = '6.1.1';
    99    $smsify_params->api_key = smsify_twoway_encrypt(get_site_option('smsify-api-key'), 'd');
    1010    $smsify_params->apiprotocol = 'https';
  • smsify/trunk/readme.txt

    r3185293 r3192141  
    44Requires at least: 6.0
    55Tested up to: 6.7
    6 Stable tag: 6.1.0
     6Stable tag: 6.1.1
    77Requires PHP: 7.3
    88License: GPLv2 or later
     
    44444. Send SMS to your chosen WordPress user
    45455. Send SMS to your chosen contact group
    46 6. Import contacts from a CSV file
    47 7. Webhooks allow you to integrate with 1000s of other apps
    48 8. Integration with Contact Form 7
    49 9. Usage report page
     466. Webhooks allow you to integrate with 1000s of other apps
     477. Integration with Contact Form 7
     488. Usage report page
    5049
    5150== Changelog ==
     51
     52= 6.1.1 =
     53* WordPress 6.7 compatibility release.
     54* Fix validation messages
     55* update screenshots
    5256
    5357= 6.1.0 =
  • smsify/trunk/smsify.php

    r3185293 r3192141  
    2020Author: Cloud Inn
    2121Version: 6.1.0
    22 Requires at least: 6.0
     22Requires at least: 5.3
    2323Author URI: https://cloudinn.io/products/smsify
    2424License: GPLv2
     
    5757function smsify_settings() {
    5858    if ( !current_user_can( 'manage_options' ) )  {
    59         wp_die( esc_html_e( 'You do not have sufficient permissions to access this page.', 'smsify' ) );
     59        wp_die( esc_html_e( 'You do not have sufficient permissions to access this page.' ) );
    6060    }
    6161    $smsify_params = smsify_getConfig();
     
    9191                update_site_option('smsify-api-key', smsify_twoway_encrypt($api_key));
    9292                if($credits > 0) {   
    93                     $validationMessage = esc_html_e("Your API Key has been validated successfully. You can now start sending SMS messages to your users.", "smsify");
     93                    $validationMessage = esc_html("Your API Key has been validated successfully. You can now start sending SMS messages to your users.");
    9494                } else {
    95                     $validationMessage = esc_html_e("Your API Key has been validated successfully, but you don't seem to have any credits on your account. Please recharge your account to continue sending SMS.", "smsify");
     95                    $validationMessage = esc_html("Your API Key has been validated successfully, but you don't seem to have any credits on your account. Please recharge your account to continue sending SMS.");
    9696                }
    9797                $valid_key = true;
    9898            }
    9999        } else {
    100             $validationMessage = esc_html_e("Your settings have been updated, but you will not be able to use the plugin until you get your API key. Go to <a href='https://cloudinn.io/products/smsify?ref=pluginactivation' target='_blank'>SMSify plugin homepage</a> to get your API key.", "smsify");
     100            $validationMessage = esc_html("Your settings have been updated, but you will not be able to use the plugin until you get your API key. Go to <a href='https://cloudinn.io/products/smsify?ref=pluginactivation' target='_blank'>SMSify plugin homepage</a> to get your API key.");
    101101        }
    102102    } else if(isset($_POST['deactivate'])) {
    103103        delete_site_option('smsify-api-key');
    104104        delete_site_option('smsify_enable_sender_id_override');
    105         $validationMessage = esc_html_e("Before you start using SMSify, please activate the plugin by pasting your API Key in the text field provided.", "smsify");
     105        $validationMessage = esc_html("Before you start using SMSify, please activate the plugin by pasting your API Key in the text field provided.");
    106106    } else if(isset($_POST['update'])) {
    107107        if(strlen(trim($_POST['apiKey'])) === 32) {
     
    120120            $api_key = smsify_twoway_encrypt(get_site_option('smsify-api-key'), 'd');
    121121            $valid_key = false;
    122             $validationMessage = esc_html_e("Invalid API Key", "smsify");
     122            $validationMessage = esc_html("Invalid API Key");
    123123        } else {
    124124            $api_key = smsify_twoway_encrypt(get_site_option('smsify-api-key'), 'd');
    125125            $valid_key = true;
    126             $validationMessage = esc_html_e("Your settings have been updated successfully", "smsify");           
     126            $validationMessage = esc_html("Your settings have been updated successfully");           
    127127            $response = smsify_get_credits($api_key);
    128128            $credits = json_decode($response['body'])->result;
     
    132132        $smsify_enable_sender_id_override = get_site_option('smsify-enable-sender-id-override');
    133133        if($api_key) {
    134             $validationMessage = esc_html_e("Your API Key has been validated successfully. You can now start sending SMS messages to your users.", "smsify");
     134            $validationMessage = esc_html("Your API Key has been validated successfully. You can now start sending SMS messages to your users.");
    135135            $valid_key = true;
    136136            $response = smsify_get_credits($api_key);
     
    144144            }
    145145        } else {
    146             $validationMessage = esc_html_e("Before you start using SMSify, please activate the plugin by pasting your API Key in the text field provided.", "smsify");           
     146            $validationMessage = esc_html("Before you start using SMSify, please activate the plugin by pasting your API Key in the text field provided.");           
    147147        }
    148148    }
     
    156156function smsify_extra_user_profile_fields( $user ) {
    157157    if ( !current_user_can( 'manage_options' ) )  {
    158         wp_die( esc_html_e( 'You do not have sufficient permissions to access this page.', 'smsify' ) );
     158        wp_die( esc_html_e( 'You do not have sufficient permissions to access this page.' ) );
    159159    }   
    160160    $smsify_params = smsify_getConfig();
     
    168168function smsify_schedules() {
    169169    if ( !current_user_can( 'manage_options' ) )  {
    170         wp_die( esc_html_e( 'You do not have sufficient permissions to access this page.', 'smsify' ) );
     170        wp_die( esc_html_e( 'You do not have sufficient permissions to access this page.' ) );
    171171    }
    172172    $validationMessage = "";
     
    183183    }else if($response['response']['code'] != 200) {
    184184        $validationMessage = esc_html(json_decode($response['body'])->message);
    185         wp_die( esc_html($validationMessage) );
     185        wp_die( esc_html_e($validationMessage) );
    186186    } else {
    187187        $response = json_decode($response['body'])->result;
     
    192192function smsify_reporting() {
    193193    if ( !current_user_can( 'manage_options' ) )  {
    194         wp_die( esc_html( 'You do not have sufficient permissions to access this page.' ) );
    195     }
    196     $smsify_params = smsify_getConfig();
    197     $current_year = gmdate('Y');
     194        wp_die( esc_html_e( 'You do not have sufficient permissions to access this page.' ) );
     195    }
     196    $smsify_params = smsify_getConfig();
     197    $current_year = date('Y');
    198198    if(isset($_GET['year']) && is_numeric($_GET['year']) && strlen($_GET['year']) == 4) {
    199199        $selected_year = $_GET['year'];
     
    215215function smsify_responses() {
    216216    if ( !current_user_can( 'manage_options' ) )  {
    217         wp_die( esc_html( 'You do not have sufficient permissions to access this page.' ) );
     217        wp_die( esc_html_e( 'You do not have sufficient permissions to access this page.' ) );
    218218    }
    219219    $smsify_params = smsify_getConfig();
     
    226226    }else if($response['response']['code'] != 200) {
    227227        $validationMessage = esc_html(json_decode($response['body'])->message);
    228         wp_die( esc_html($validationMessage) );
     228        wp_die( esc_html_e($validationMessage) );
    229229    } else {
    230230        $account = json_decode($response['body'])->result;
     
    237237function smsify_integrations() {
    238238    if ( !current_user_can( 'manage_options' ) )  {
    239         wp_die( esc_html_e( 'You do not have sufficient permissions to access this page.', 'smsify' ) );
     239        wp_die( esc_html_e( 'You do not have sufficient permissions to access this page.' ) );
    240240    }
    241241
Note: See TracChangeset for help on using the changeset viewer.