Changeset 3192141
- Timestamp:
- 11/19/2024 11:11:29 AM (16 months ago)
- Location:
- smsify/trunk
- Files:
-
- 3 edited
-
includes/functions.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
smsify.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smsify/trunk/includes/functions.php
r3185293 r3192141 6 6 global $current_user; 7 7 $smsify_params = new stdClass(); 8 $smsify_params->appVersion = '6.1. 0';8 $smsify_params->appVersion = '6.1.1'; 9 9 $smsify_params->api_key = smsify_twoway_encrypt(get_site_option('smsify-api-key'), 'd'); 10 10 $smsify_params->apiprotocol = 'https'; -
smsify/trunk/readme.txt
r3185293 r3192141 4 4 Requires at least: 6.0 5 5 Tested up to: 6.7 6 Stable tag: 6.1. 06 Stable tag: 6.1.1 7 7 Requires PHP: 7.3 8 8 License: GPLv2 or later … … 44 44 4. Send SMS to your chosen WordPress user 45 45 5. 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 46 6. Webhooks allow you to integrate with 1000s of other apps 47 7. Integration with Contact Form 7 48 8. Usage report page 50 49 51 50 == Changelog == 51 52 = 6.1.1 = 53 * WordPress 6.7 compatibility release. 54 * Fix validation messages 55 * update screenshots 52 56 53 57 = 6.1.0 = -
smsify/trunk/smsify.php
r3185293 r3192141 20 20 Author: Cloud Inn 21 21 Version: 6.1.0 22 Requires at least: 6.022 Requires at least: 5.3 23 23 Author URI: https://cloudinn.io/products/smsify 24 24 License: GPLv2 … … 57 57 function smsify_settings() { 58 58 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.' ) ); 60 60 } 61 61 $smsify_params = smsify_getConfig(); … … 91 91 update_site_option('smsify-api-key', smsify_twoway_encrypt($api_key)); 92 92 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."); 94 94 } 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."); 96 96 } 97 97 $valid_key = true; 98 98 } 99 99 } 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."); 101 101 } 102 102 } else if(isset($_POST['deactivate'])) { 103 103 delete_site_option('smsify-api-key'); 104 104 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."); 106 106 } else if(isset($_POST['update'])) { 107 107 if(strlen(trim($_POST['apiKey'])) === 32) { … … 120 120 $api_key = smsify_twoway_encrypt(get_site_option('smsify-api-key'), 'd'); 121 121 $valid_key = false; 122 $validationMessage = esc_html _e("Invalid API Key", "smsify");122 $validationMessage = esc_html("Invalid API Key"); 123 123 } else { 124 124 $api_key = smsify_twoway_encrypt(get_site_option('smsify-api-key'), 'd'); 125 125 $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"); 127 127 $response = smsify_get_credits($api_key); 128 128 $credits = json_decode($response['body'])->result; … … 132 132 $smsify_enable_sender_id_override = get_site_option('smsify-enable-sender-id-override'); 133 133 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."); 135 135 $valid_key = true; 136 136 $response = smsify_get_credits($api_key); … … 144 144 } 145 145 } 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."); 147 147 } 148 148 } … … 156 156 function smsify_extra_user_profile_fields( $user ) { 157 157 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.' ) ); 159 159 } 160 160 $smsify_params = smsify_getConfig(); … … 168 168 function smsify_schedules() { 169 169 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.' ) ); 171 171 } 172 172 $validationMessage = ""; … … 183 183 }else if($response['response']['code'] != 200) { 184 184 $validationMessage = esc_html(json_decode($response['body'])->message); 185 wp_die( esc_html ($validationMessage) );185 wp_die( esc_html_e($validationMessage) ); 186 186 } else { 187 187 $response = json_decode($response['body'])->result; … … 192 192 function smsify_reporting() { 193 193 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'); 198 198 if(isset($_GET['year']) && is_numeric($_GET['year']) && strlen($_GET['year']) == 4) { 199 199 $selected_year = $_GET['year']; … … 215 215 function smsify_responses() { 216 216 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.' ) ); 218 218 } 219 219 $smsify_params = smsify_getConfig(); … … 226 226 }else if($response['response']['code'] != 200) { 227 227 $validationMessage = esc_html(json_decode($response['body'])->message); 228 wp_die( esc_html ($validationMessage) );228 wp_die( esc_html_e($validationMessage) ); 229 229 } else { 230 230 $account = json_decode($response['body'])->result; … … 237 237 function smsify_integrations() { 238 238 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.' ) ); 240 240 } 241 241
Note: See TracChangeset
for help on using the changeset viewer.