Changeset 2943546
- Timestamp:
- 07/26/2023 10:18:28 AM (12 months ago)
- Location:
- arvancloud-cdn
- Files:
-
- 22 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
arvancloud-cdn/tags/0.9.7/README.txt
r2856630 r2943546 5 5 Tested up to: 6.1 6 6 Requires PHP: 7.2 7 Stable tag: 0.9. 67 Stable tag: 0.9. 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 56 56 57 57 == Changelog == 58 59 60 58 61 = 0.9.6 - 2023-01-18 = 59 62 * Minor improvements - Update URLs -
arvancloud-cdn/tags/0.9.7/admin/inc/CDN/class-domain-auto-add.php
r2788597 r2943546 50 50 public function request_from_arvan_to_add_domain(){ 51 51 52 53 54 52 55 if ( !Helper::is_domain_belongs_to_api() ) 53 56 { … … 62 65 'domain_type'=>'full' 63 66 ); 67 68 69 64 70 65 Request_Arvan::post('domains/dns-service', json_encode($data)); 71 helper::show_admin_notice(__('Error retrieve data from cloud' ,'arvancloud-cdn')); 72 return; 73 } 74 66 75 } 76 67 77 68 78 } … … 98 108 private function get_domain_list_from_arvan(){ 99 109 100 $response = json_decode(wp_remote_retrieve_body(Request_Arvan::get('domains', false))); 110 try { 111 $response = json_decode(wp_remote_retrieve_body(Request_Arvan::get('domains', false))); 112 }catch (Exception $e){ 101 113 114 115 116 102 117 if( !isset($response->data) ) 103 118 return; -
arvancloud-cdn/tags/0.9.7/admin/inc/CDN/class-domain-info.php
r2733504 r2943546 22 22 { 23 23 self::$info = self::get_domain_info(); 24 self::$DNS_Cloud = self::$info['dns_cloud'] ;24 self::$DNS_Cloud = self::$info['dns_cloud']; 25 25 self::$plan_level = self::$info['plan_level'] ?? false; 26 26 } -
arvancloud-cdn/tags/0.9.7/admin/inc/CDN/class-reports.php
r2733504 r2943546 129 129 130 130 $report = $this->get_report($endpoint, $period); 131 132 131 133 $this->period = $period; 132 134 -
arvancloud-cdn/tags/0.9.7/admin/inc/Security/class-firewall.php
r2733504 r2943546 196 196 197 197 public function set_props() { 198 199 198 200 $this->default_rule = $this->data['default_action']; 199 201 $this->verify_sni = $this->data['verify_sni']; -
arvancloud-cdn/tags/0.9.7/admin/inc/Security/class-https-settings.php
r2777664 r2943546 136 136 137 137 public function set_props() { 138 139 138 140 $this->is_HTTPS = $this->data['ssl_status']; 139 141 $this->is_HTTPS_Default = $this->data['https_redirect']; -
arvancloud-cdn/tags/0.9.7/admin/views/cache/caching_settings.php
r2752685 r2943546 4 4 $options = Caching_Settings::get_options(); 5 5 if(!$options || !isset($options['cache_status'])) { 6 wp_safe_redirect( esc_url( admin_url( '/admin.php?page=arvancloud-cdn' ) ) );6 wp_safe_redirect( esc_url( admin_url( '/admin.php?page=arvancloud-cdn' ) ) ); 7 7 } 8 8 9 $cache_status = $options['cache_status'] ;9 $cache_status = $options['cache_status']; 10 10 11 11 $expiration_times = [ -
arvancloud-cdn/tags/0.9.7/admin/views/options-display.php
r2752685 r2943546 6 6 $options = CDN_Options::get_cdn_options(); 7 7 if(!$options) { 8 wp_safe_redirect( esc_url( admin_url( '/admin.php?page=arvancloud-cdn' ) ) );8 wp_safe_redirect( esc_url( admin_url( '/admin.php?page=arvancloud-cdn' ) ) ); 9 9 } 10 $development_mode = $options ? $options['cache_developer_mode']: false;11 $cache_consistent_uptime = $options ? $options['cache_consistent_uptime']: false;10 $development_mode = $options ? : false; 11 $cache_consistent_uptime = $options ? : false; 12 12 $nonce_purge_cache = wp_create_nonce('arvan_purge_cache'); 13 13 -
arvancloud-cdn/tags/0.9.7/admin/views/security/ddos_protection.php
r2752685 r2943546 14 14 15 15 if(empty($mode)) { 16 wp_safe_redirect( esc_url( admin_url( '/admin.php?page=arvancloud-cdn' ) ) );16 wp_safe_redirect( esc_url( admin_url( '/admin.php?page=arvancloud-cdn' ) ) ); 17 17 } 18 18 -
arvancloud-cdn/tags/0.9.7/admin/views/settings-display.php
r2850501 r2943546 13 13 <div class="ar-cdn-box"> 14 14 <label for="accdn-api-key">API Key</label> 15 <input type="text" name="accdn-api-key" value="" autocomplete="off" placeholder="<?php echo !empty($credentials_status) ? esc_html_e( "-- not shown --", 'arvancloud-cdn' ) : 'Apikey ********-****-****-****-************' ?> ">15 <input type="text" name="accdn-api-key" value="" autocomplete="off" placeholder="<?php echo !empty($credentials_status) ? esc_html_e( "-- not shown --", 'arvancloud-cdn' ) : 'Apikey ********-****-****-****-************' ?> "> 16 16 </div> 17 17 <div class="ar-cdn-box"> 18 <a class="get-api-key" href="https://panel.arvancloud.ir/profile/ api-keys" target="_blank" rel="noopener noreferrer"><?php echo esc_html_e('Get API Key', 'arvancloud-cdn'); ?></a>18 <a class="get-api-key" href="https://panel.arvancloud.ir/profile/" target="_blank" rel="noopener noreferrer"><?php echo esc_html_e('Get API Key', 'arvancloud-cdn'); ?></a> 19 19 </div> 20 20 <p><button type="submit" class="button button-primary" name="config_arvancloud_api_key" value="1"><?php echo esc_html_e( "Save", 'arvancloud-cdn' ) ?></button></p> -
arvancloud-cdn/tags/0.9.7/wp-arvancloud-cdn.php
r2850501 r2943546 11 11 * Plugin URI: https://www.arvancloud.ir/fa/products/cdn 12 12 * Description: ArvanCloud CDN service caches your website content. Using this plugin, you will be able to purge and update the cached version, either manually or automatically, so that your users visit the latest version of your website at any time. 13 * Version: 0.9. 613 * Version: 0.9. 14 14 * Requires PHP: 7.2 15 15 * Author: Khorshid, ArvanCloud … … 26 26 } 27 27 28 define( 'ACCDN_VERSION', '0.9. 6' );28 define( 'ACCDN_VERSION', '0.9.' ); 29 29 define( 'ACCDN_NAME', __( 'ArvanCloud CDN', 'arvancloud-cdn' ) ); 30 30 define( 'ACCDN_SLUG', 'arvancloud-cdn'); … … 37 37 * Currently plugin version. 38 38 */ 39 define( 'WP_ARVANCLOUD_CDN_VERSION', '0.9. 6' );39 define( 'WP_ARVANCLOUD_CDN_VERSION', '0.9.' ); 40 40 41 41 /** -
arvancloud-cdn/trunk/README.txt
r2856630 r2943546 5 5 Tested up to: 6.1 6 6 Requires PHP: 7.2 7 Stable tag: 0.9. 67 Stable tag: 0.9. 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 56 56 57 57 == Changelog == 58 59 60 58 61 = 0.9.6 - 2023-01-18 = 59 62 * Minor improvements - Update URLs -
arvancloud-cdn/trunk/admin/inc/CDN/class-domain-auto-add.php
r2788597 r2943546 50 50 public function request_from_arvan_to_add_domain(){ 51 51 52 53 54 52 55 if ( !Helper::is_domain_belongs_to_api() ) 53 56 { … … 62 65 'domain_type'=>'full' 63 66 ); 67 68 69 64 70 65 Request_Arvan::post('domains/dns-service', json_encode($data)); 71 helper::show_admin_notice(__('Error retrieve data from cloud' ,'arvancloud-cdn')); 72 return; 73 } 74 66 75 } 76 67 77 68 78 } … … 98 108 private function get_domain_list_from_arvan(){ 99 109 100 $response = json_decode(wp_remote_retrieve_body(Request_Arvan::get('domains', false))); 110 try { 111 $response = json_decode(wp_remote_retrieve_body(Request_Arvan::get('domains', false))); 112 }catch (Exception $e){ 101 113 114 115 116 102 117 if( !isset($response->data) ) 103 118 return; -
arvancloud-cdn/trunk/admin/inc/CDN/class-domain-info.php
r2733504 r2943546 22 22 { 23 23 self::$info = self::get_domain_info(); 24 self::$DNS_Cloud = self::$info['dns_cloud'] ;24 self::$DNS_Cloud = self::$info['dns_cloud']; 25 25 self::$plan_level = self::$info['plan_level'] ?? false; 26 26 } -
arvancloud-cdn/trunk/admin/inc/CDN/class-reports.php
r2733504 r2943546 129 129 130 130 $report = $this->get_report($endpoint, $period); 131 132 131 133 $this->period = $period; 132 134 -
arvancloud-cdn/trunk/admin/inc/Security/class-firewall.php
r2733504 r2943546 196 196 197 197 public function set_props() { 198 199 198 200 $this->default_rule = $this->data['default_action']; 199 201 $this->verify_sni = $this->data['verify_sni']; -
arvancloud-cdn/trunk/admin/inc/Security/class-https-settings.php
r2777664 r2943546 136 136 137 137 public function set_props() { 138 139 138 140 $this->is_HTTPS = $this->data['ssl_status']; 139 141 $this->is_HTTPS_Default = $this->data['https_redirect']; -
arvancloud-cdn/trunk/admin/views/cache/caching_settings.php
r2752685 r2943546 4 4 $options = Caching_Settings::get_options(); 5 5 if(!$options || !isset($options['cache_status'])) { 6 wp_safe_redirect( esc_url( admin_url( '/admin.php?page=arvancloud-cdn' ) ) );6 wp_safe_redirect( esc_url( admin_url( '/admin.php?page=arvancloud-cdn' ) ) ); 7 7 } 8 8 9 $cache_status = $options['cache_status'] ;9 $cache_status = $options['cache_status']; 10 10 11 11 $expiration_times = [ -
arvancloud-cdn/trunk/admin/views/options-display.php
r2752685 r2943546 6 6 $options = CDN_Options::get_cdn_options(); 7 7 if(!$options) { 8 wp_safe_redirect( esc_url( admin_url( '/admin.php?page=arvancloud-cdn' ) ) );8 wp_safe_redirect( esc_url( admin_url( '/admin.php?page=arvancloud-cdn' ) ) ); 9 9 } 10 $development_mode = $options ? $options['cache_developer_mode']: false;11 $cache_consistent_uptime = $options ? $options['cache_consistent_uptime']: false;10 $development_mode = $options ? : false; 11 $cache_consistent_uptime = $options ? : false; 12 12 $nonce_purge_cache = wp_create_nonce('arvan_purge_cache'); 13 13 -
arvancloud-cdn/trunk/admin/views/security/ddos_protection.php
r2752685 r2943546 14 14 15 15 if(empty($mode)) { 16 wp_safe_redirect( esc_url( admin_url( '/admin.php?page=arvancloud-cdn' ) ) );16 wp_safe_redirect( esc_url( admin_url( '/admin.php?page=arvancloud-cdn' ) ) ); 17 17 } 18 18 -
arvancloud-cdn/trunk/admin/views/settings-display.php
r2850501 r2943546 13 13 <div class="ar-cdn-box"> 14 14 <label for="accdn-api-key">API Key</label> 15 <input type="text" name="accdn-api-key" value="" autocomplete="off" placeholder="<?php echo !empty($credentials_status) ? esc_html_e( "-- not shown --", 'arvancloud-cdn' ) : 'Apikey ********-****-****-****-************' ?> ">15 <input type="text" name="accdn-api-key" value="" autocomplete="off" placeholder="<?php echo !empty($credentials_status) ? esc_html_e( "-- not shown --", 'arvancloud-cdn' ) : 'Apikey ********-****-****-****-************' ?> "> 16 16 </div> 17 17 <div class="ar-cdn-box"> 18 <a class="get-api-key" href="https://panel.arvancloud.ir/profile/ api-keys" target="_blank" rel="noopener noreferrer"><?php echo esc_html_e('Get API Key', 'arvancloud-cdn'); ?></a>18 <a class="get-api-key" href="https://panel.arvancloud.ir/profile/" target="_blank" rel="noopener noreferrer"><?php echo esc_html_e('Get API Key', 'arvancloud-cdn'); ?></a> 19 19 </div> 20 20 <p><button type="submit" class="button button-primary" name="config_arvancloud_api_key" value="1"><?php echo esc_html_e( "Save", 'arvancloud-cdn' ) ?></button></p> -
arvancloud-cdn/trunk/wp-arvancloud-cdn.php
r2850501 r2943546 11 11 * Plugin URI: https://www.arvancloud.ir/fa/products/cdn 12 12 * Description: ArvanCloud CDN service caches your website content. Using this plugin, you will be able to purge and update the cached version, either manually or automatically, so that your users visit the latest version of your website at any time. 13 * Version: 0.9. 613 * Version: 0.9. 14 14 * Requires PHP: 7.2 15 15 * Author: Khorshid, ArvanCloud … … 26 26 } 27 27 28 define( 'ACCDN_VERSION', '0.9. 6' );28 define( 'ACCDN_VERSION', '0.9.' ); 29 29 define( 'ACCDN_NAME', __( 'ArvanCloud CDN', 'arvancloud-cdn' ) ); 30 30 define( 'ACCDN_SLUG', 'arvancloud-cdn'); … … 37 37 * Currently plugin version. 38 38 */ 39 define( 'WP_ARVANCLOUD_CDN_VERSION', '0.9. 6' );39 define( 'WP_ARVANCLOUD_CDN_VERSION', '0.9.' ); 40 40 41 41 /**
Note: See TracChangeset
for help on using the changeset viewer.