Changeset 2629594
- Timestamp:
- 11/15/2021 07:09:43 AM (4 years ago)
- Location:
- alpha-sms
- Files:
-
- 10 edited
-
tags/1.0.0/admin/class-alpha_sms-admin.php (modified) (2 diffs)
-
tags/1.0.0/admin/partials/alpha_sms-admin-display_campaign.php (modified) (1 diff)
-
tags/1.0.0/admin/partials/alpha_sms-admin-display_settings.php (modified) (1 diff)
-
tags/1.0.0/alpha_sms.php (modified) (1 diff)
-
tags/1.0.0/public/class-alpha_sms-public.php (modified) (2 diffs)
-
trunk/admin/class-alpha_sms-admin.php (modified) (2 diffs)
-
trunk/admin/partials/alpha_sms-admin-display_campaign.php (modified) (1 diff)
-
trunk/admin/partials/alpha_sms-admin-display_settings.php (modified) (1 diff)
-
trunk/alpha_sms.php (modified) (1 diff)
-
trunk/public/class-alpha_sms-public.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alpha-sms/tags/1.0.0/admin/class-alpha_sms-admin.php
r2627862 r2629594 235 235 } 236 236 237 require_once WP_PLUGIN_DIR . '/' . $this->plugin_name . '/includes/sms.class.php';237 require_once ALPHA_SMS_PATH. 'includes/sms.class.php'; 238 238 239 239 $smsPortal = new AlphaSMS($api_key); … … 299 299 $numbers = implode(',', $numbersArr); 300 300 301 require_once plugin_dir_path(__DIR__). 'includes/sms.class.php';301 require_once ALPHA_SMS_PATH. 'includes/sms.class.php'; 302 302 303 303 $sms = new AlphaSMS($api_key); -
alpha-sms/tags/1.0.0/admin/partials/alpha_sms-admin-display_campaign.php
r2627862 r2629594 33 33 if (!$options || empty($options['api_key'])) { 34 34 $balance = 'Please configure SMS API first.'; 35 } 35 } else { 36 require_once ALPHA_SMS_PATH. 'includes/sms.class.php'; 36 37 37 require_once WP_PLUGIN_DIR . '/' . $this->plugin_name . '/includes/sms.class.php';38 $smsPortal = new AlphaSMS($options['api_key']); 38 39 39 $smsPortal = new AlphaSMS($options['api_key']);40 $response = $smsPortal->getBalance(); 40 41 41 $response = $smsPortal->getBalance(); 42 43 if ($response && $response->error === 0) { 44 $balance = $response->data->balance; 45 } elseif ($response && $response->error === 405) { 46 $balance = 'Please configure SMS API first.'; 47 } else { 48 $balance = 'Unknown Error, failed to fetch balance'; 42 if ($response && $response->error === 0) { 43 $balance = $response->data->balance; 44 } elseif ($response && $response->error === 405) { 45 $balance = 'Please configure SMS API first.'; 46 } else { 47 $balance = 'Unknown Error, failed to fetch balance'; 48 } 49 49 } 50 50 ?> -
alpha-sms/tags/1.0.0/admin/partials/alpha_sms-admin-display_settings.php
r2629581 r2629594 70 70 71 71 if (!empty($api_key)) { 72 require_once WP_PLUGIN_DIR . '/' . $this->plugin_name . '/includes/sms.class.php'; 72 73 require_once ALPHA_SMS_PATH. 'includes/sms.class.php'; 73 74 74 75 $smsPortal = new AlphaSMS($options['api_key']); -
alpha-sms/tags/1.0.0/alpha_sms.php
r2627862 r2629594 45 45 } 46 46 define("ALPHA_SMS_TIMESTAMP", $date->format('Y-m-d H:i:s')); 47 define( 'ALPHA_SMS_PATH', plugin_dir_path( __FILE__ ) ); 47 48 48 49 /** -
alpha-sms/tags/1.0.0/public/class-alpha_sms-public.php
r2627862 r2629594 62 62 private function checkAPI($api_key) 63 63 { 64 require_once WP_PLUGIN_DIR . '/' . $this->plugin_name . '/includes/sms.class.php';64 require_once ALPHA_SMS_PATH. 'includes/sms.class.php'; 65 65 66 66 $smsPortal = new AlphaSMS($api_key); … … 350 350 $sender_id = !empty($this->options['sender_id']) ? trim($this->options['sender_id']) : ''; 351 351 352 require_once plugin_dir_path(__DIR__). 'includes/sms.class.php';352 require_once ALPHA_SMS_PATH. 'includes/sms.class.php'; 353 353 354 354 $sms = new AlphaSMS($api_key); -
alpha-sms/trunk/admin/class-alpha_sms-admin.php
r2627862 r2629594 235 235 } 236 236 237 require_once WP_PLUGIN_DIR . '/' . $this->plugin_name . '/includes/sms.class.php';237 require_once ALPHA_SMS_PATH. 'includes/sms.class.php'; 238 238 239 239 $smsPortal = new AlphaSMS($api_key); … … 299 299 $numbers = implode(',', $numbersArr); 300 300 301 require_once plugin_dir_path(__DIR__). 'includes/sms.class.php';301 require_once ALPHA_SMS_PATH. 'includes/sms.class.php'; 302 302 303 303 $sms = new AlphaSMS($api_key); -
alpha-sms/trunk/admin/partials/alpha_sms-admin-display_campaign.php
r2627862 r2629594 33 33 if (!$options || empty($options['api_key'])) { 34 34 $balance = 'Please configure SMS API first.'; 35 } 35 } else { 36 require_once ALPHA_SMS_PATH. 'includes/sms.class.php'; 36 37 37 require_once WP_PLUGIN_DIR . '/' . $this->plugin_name . '/includes/sms.class.php';38 $smsPortal = new AlphaSMS($options['api_key']); 38 39 39 $smsPortal = new AlphaSMS($options['api_key']);40 $response = $smsPortal->getBalance(); 40 41 41 $response = $smsPortal->getBalance(); 42 43 if ($response && $response->error === 0) { 44 $balance = $response->data->balance; 45 } elseif ($response && $response->error === 405) { 46 $balance = 'Please configure SMS API first.'; 47 } else { 48 $balance = 'Unknown Error, failed to fetch balance'; 42 if ($response && $response->error === 0) { 43 $balance = $response->data->balance; 44 } elseif ($response && $response->error === 405) { 45 $balance = 'Please configure SMS API first.'; 46 } else { 47 $balance = 'Unknown Error, failed to fetch balance'; 48 } 49 49 } 50 50 ?> -
alpha-sms/trunk/admin/partials/alpha_sms-admin-display_settings.php
r2629581 r2629594 70 70 71 71 if (!empty($api_key)) { 72 require_once WP_PLUGIN_DIR . '/' . $this->plugin_name . '/includes/sms.class.php'; 72 73 require_once ALPHA_SMS_PATH. 'includes/sms.class.php'; 73 74 74 75 $smsPortal = new AlphaSMS($options['api_key']); -
alpha-sms/trunk/alpha_sms.php
r2627862 r2629594 45 45 } 46 46 define("ALPHA_SMS_TIMESTAMP", $date->format('Y-m-d H:i:s')); 47 define( 'ALPHA_SMS_PATH', plugin_dir_path( __FILE__ ) ); 47 48 48 49 /** -
alpha-sms/trunk/public/class-alpha_sms-public.php
r2627862 r2629594 62 62 private function checkAPI($api_key) 63 63 { 64 require_once WP_PLUGIN_DIR . '/' . $this->plugin_name . '/includes/sms.class.php';64 require_once ALPHA_SMS_PATH. 'includes/sms.class.php'; 65 65 66 66 $smsPortal = new AlphaSMS($api_key); … … 350 350 $sender_id = !empty($this->options['sender_id']) ? trim($this->options['sender_id']) : ''; 351 351 352 require_once plugin_dir_path(__DIR__). 'includes/sms.class.php';352 require_once ALPHA_SMS_PATH. 'includes/sms.class.php'; 353 353 354 354 $sms = new AlphaSMS($api_key);
Note: See TracChangeset
for help on using the changeset viewer.