Changeset 3444385
- Timestamp:
- 01/21/2026 08:11:10 PM (2 months ago)
- Location:
- rc-site-manager-optimization/trunk
- Files:
-
- 1 added
- 3 deleted
- 13 edited
-
includes/functions/premium.php (modified) (1 diff)
-
premium/ultra_speed/assets/php/custom (deleted)
-
premium/ultra_speed/assets/php/wp_rocket/custom (deleted)
-
premium/ultra_speed/front_end/index.php (modified) (1 diff)
-
premium/ultra_speed/front_end/ros/index.php (modified) (1 diff)
-
premium/ultra_speed/front_end/ros/plugins/index.php (modified) (1 diff)
-
premium/ultra_speed/front_end/ros/plugins/trustindex.php (added)
-
premium/ultra_speed/front_end/ros/wp_rocket.php (modified) (2 diffs)
-
premium/ultra_speed/index.php (modified) (1 diff)
-
premium/ultra_speed/tab_preload.php (modified) (3 diffs)
-
premium/ultra_speed/tab_settings.php (modified) (2 diffs)
-
premium/ultra_speed/tab_settings_fn.php (modified) (3 diffs)
-
premium/ultra_speed/ultra_speed_script.js (modified) (1 diff)
-
premium/ultre_speed.zip (deleted)
-
rc-site-manager-optimization.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
-
settings/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rc-site-manager-optimization/trunk/includes/functions/premium.php
r3438010 r3444385 76 76 } 77 77 78 $saved_licences[$slug] = array( 79 'key' => $licence_key, 80 'valid' => $result['valid'], 81 'error' => $result['valid'] ? '' : $result['message'], 82 'expires_at' => $result['expires_at'], 83 'status' => $result['status'], 84 'patch' => $result['patch'], 85 'verified_at' => current_time('mysql') 86 ); 87 78 if ($result['valid']) { 79 // Licenza valida: salva 80 $saved_licences[$slug] = array( 81 'key' => $licence_key, 82 'valid' => true, 83 'error' => '', 84 'expires_at' => $result['expires_at'], 85 'status' => $result['status'], 86 'patch' => $result['patch'], 87 'verified_at' => current_time('mysql') 88 ); 89 } else { 90 // Licenza non valida: elimina dal DB 91 unset($saved_licences[$slug]); 92 } 93 88 94 rc_sm_premium_licence_save($saved_licences); 89 95 -
rc-site-manager-optimization/trunk/premium/ultra_speed/front_end/index.php
r3438010 r3444385 20 20 include 'ros/wp_rocket.php'; 21 21 include 'builders/index.php'; 22 23 // Include custom code dalla cartella uploads 24 $upload_dir = wp_upload_dir(); 25 $custom_code_path = $upload_dir['basedir'] . '/rc-site-manager-optimization/premium/ultraspeed/php/code.php'; 26 if ( file_exists( $custom_code_path ) ) { 27 include $custom_code_path; 28 } -
rc-site-manager-optimization/trunk/premium/ultra_speed/front_end/ros/index.php
r3438935 r3444385 7 7 include 'remove_html.php'; 8 8 include 'plugins/index.php'; 9 10 9 11 10 12 add_filter( 'body_class', function( $classes ) { -
rc-site-manager-optimization/trunk/premium/ultra_speed/front_end/ros/plugins/index.php
r3438010 r3444385 3 3 4 4 include 'ninja_forms.php'; 5 include 'trustindex.php'; -
rc-site-manager-optimization/trunk/premium/ultra_speed/front_end/ros/wp_rocket.php
r3438010 r3444385 60 60 61 61 62 63 62 /** SEPARAZIONE CACHE MOBILE/DESKTOP */ 64 63 add_filter( 'rocket_separate_mobile_cache', '__return_true' ); … … 84 83 if ( ! empty( $wp_rocket_settings ) ) { 85 84 85 // Percorso originale (nel plugin) 86 86 $wp_rocket_dir = RC_SM_PLUGIN_DIR . 'premium/ultra_speed/assets/php/wp_rocket/'; 87 $wp_rocket_custom_dir = $wp_rocket_dir . 'custom/'; 87 88 // Percorso custom (nella cartella uploads) 89 $upload_dir = wp_upload_dir(); 90 $wp_rocket_custom_dir = $upload_dir['basedir'] . '/rc-site-manager-optimization/premium/ultraspeed/php/wp_rocket/'; 88 91 89 92 $wp_rocket_files = array( -
rc-site-manager-optimization/trunk/premium/ultra_speed/index.php
r3438010 r3444385 4 4 include RC_SM_PLUGIN_DIR . 'premium/ultra_speed/front_end/index.php'; 5 5 6 7 8 6 define('RC_SM_PAGE_DIR_ULTRA_SPEED', 'premium_ultra_speed'); 9 10 define('RC_SM_PREMIUM_ULTRA_SPEED_ASSETS_DIR', RC_SM_PLUGIN_DIR . 'premium/ultra_speed/assets/');11 define('RC_SM_PREMIUM_ULTRA_SPEED_ASSETS_URL', RC_SM_PLUGIN_URL . 'premium/ultra_speed/assets/');12 7 13 8 include 'ultra_speed_function.php'; -
rc-site-manager-optimization/trunk/premium/ultra_speed/tab_preload.php
r3438935 r3444385 38 38 font-weight: 600; 39 39 font-display: swap; 40 src: url('_______INSERT_FILE_URL_______') format('woff2'); 41 unicode-range: U+0000-00FF; 40 src: url(_______INSERT_FILE_URL_______) format('woff2'); 42 41 }"; 43 42 ?> … … 116 115 117 116 <div class="rc_sm_form_spacer"> 118 <label><?php echo esc_html__('@font-face CSS', 'rc-site-manager-optimization'); ?></label> 119 <textarea name="mobile_font_face" rows="18" 120 placeholder="<?php echo esc_attr($placeholder_font_face); ?>"><?php echo esc_textarea($mobile_fonts['font_face']); ?></textarea> 117 <div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:10px;"> 118 <label class="rc_sm_bold"><?php echo esc_html__('@font-face CSS', 'rc-site-manager-optimization'); ?></label> 119 <div> 120 <a href="#" class="rc_sm_customize_font_face rc_sm_text_decoration_none"> 121 <?php echo esc_html__('Customize', 'rc-site-manager-optimization'); ?> 122 </a> 123 </div> 124 </div> 125 <textarea name="mobile_font_face" 126 class="rc_sm_textarea_code rc_sm_font_face_textarea" 127 rows="18" 128 placeholder="<?php echo esc_attr($placeholder_font_face); ?>" 129 readonly><?php echo esc_textarea($mobile_fonts['font_face']); ?></textarea> 121 130 </div> 122 131 </div> … … 135 144 136 145 <div class="rc_sm_form_spacer"> 137 <label><?php echo esc_html__('@font-face CSS', 'rc-site-manager-optimization'); ?></label> 138 <textarea name="desktop_font_face" rows="18" 139 placeholder="<?php echo esc_attr($placeholder_font_face); ?>"><?php echo esc_textarea($desktop_fonts['font_face']); ?></textarea> 146 <div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:10px;"> 147 <label class="rc_sm_bold"><?php echo esc_html__('@font-face CSS', 'rc-site-manager-optimization'); ?></label> 148 <div> 149 <a href="#" class="rc_sm_customize_font_face rc_sm_text_decoration_none"> 150 <?php echo esc_html__('Customize', 'rc-site-manager-optimization'); ?> 151 </a> 152 </div> 153 </div> 154 <textarea name="desktop_font_face" 155 class="rc_sm_textarea_code rc_sm_font_face_textarea" 156 rows="18" 157 placeholder="<?php echo esc_attr($placeholder_font_face); ?>" 158 readonly><?php echo esc_textarea($desktop_fonts['font_face']); ?></textarea> 140 159 </div> 141 160 </div> -
rc-site-manager-optimization/trunk/premium/ultra_speed/tab_settings.php
r3438010 r3444385 19 19 ]; 20 20 21 // Percorsi 22 $original_dir = RC_SM_PREMIUM_ULTRA_SPEED_ASSETS_DIR . 'php/wp_rocket/'; 23 $upload_dir = wp_upload_dir(); 24 $custom_dir = $upload_dir['basedir'] . '/rc-site-manager-optimization/premium/ultraspeed/php/wp_rocket/'; 25 $custom_uploads_dir = $upload_dir['basedir'] . '/rc-site-manager-optimization/premium/ultraspeed/php/'; 26 21 27 // Carica i contenuti dei file (custom o originali) 22 28 $file_contents = []; 23 29 $original_contents = []; 24 $custom_dir = RC_SM_PREMIUM_ULTRA_SPEED_ASSETS_DIR . 'php/wp_rocket/custom/';25 30 26 31 foreach ($wp_rocket_files as $key => $file_info) { 27 32 $custom_file_path = $custom_dir . 'rc_custom_' . $file_info['name']; 28 $original_file_path = RC_SM_PREMIUM_ULTRA_SPEED_ASSETS_DIR . 'php/wp_rocket/'. $file_info['name'];33 $original_file_path = $original_dir . $file_info['name']; 29 34 30 35 // Salva sempre il contenuto originale per il reset … … 77 82 78 83 <?php 79 // Carica contenuti Custom Style e Custom Php 80 $custom_style_path = RC_SM_PREMIUM_ULTRA_SPEED_ASSETS_DIR . 'php/custom/style.css';81 $custom_php_path = RC_SM_PREMIUM_ULTRA_SPEED_ASSETS_DIR . 'php/custom/code.php';84 // Carica contenuti Custom Style e Custom Php dalla cartella uploads 85 $custom_style_path = $custom_uploads_dir . 'style.css'; 86 $custom_php_path = $custom_uploads_dir . 'code.php'; 82 87 83 88 $custom_style_content = file_exists($custom_style_path) ? rc_sm_get_file_content($custom_style_path) : ''; -
rc-site-manager-optimization/trunk/premium/ultra_speed/tab_settings_fn.php
r3438010 r3444385 16 16 ]; 17 17 18 $custom_dir = RC_SM_PREMIUM_ULTRA_SPEED_ASSETS_DIR . 'php/wp_rocket/custom/'; 18 // Percorso custom nella cartella uploads 19 $upload_dir = wp_upload_dir(); 20 $custom_dir = $upload_dir['basedir'] . '/rc-site-manager-optimization/premium/ultraspeed/php/wp_rocket/'; 21 22 // Crea directory se non esiste 23 if (!file_exists($custom_dir)) { 24 wp_mkdir_p($custom_dir); 25 } 19 26 20 27 $settings_data = array(); … … 25 32 $settings_data[$key] = $enabled; 26 33 27 // Aggiorna file custom SOLO se esiste34 // Aggiorna file custom 28 35 $file_name = 'wp-rocket-' . str_replace('_', '-', $key) . '.php'; 29 36 $custom_file_path = $custom_dir . 'rc_custom_' . $file_name; 30 37 31 if ( file_exists( $custom_file_path ) ) { 32 $code = isset($data[$key . '_code']) ? trim(wp_unslash($data[$key . '_code'])) : ''; 33 if ( ! empty( $code ) ) { 34 file_put_contents( $custom_file_path, $code ); 35 } 38 $code = isset($data[$key . '_code']) ? trim(wp_unslash($data[$key . '_code'])) : ''; 39 if ( ! empty( $code ) ) { 40 file_put_contents( $custom_file_path, $code ); 36 41 } 37 42 } … … 59 64 $settings_data['ultra_speed_enabled'] = $ultra_speed_enabled; 60 65 61 // Salva file Custom Style62 $ custom_style = isset($data['custom_style']) ? trim(wp_unslash($data['custom_style'])) : '';63 $custom_ style_path = RC_SM_PREMIUM_ULTRA_SPEED_ASSETS_DIR . 'php/custom/style.css';66 // Percorso custom nella cartella uploads 67 $upload_dir = wp_upload_dir(); 68 $custom_dir = $upload_dir['basedir'] . '/rc-site-manager-optimization/premium/ultraspeed/php/'; 64 69 65 70 // Crea directory se non esiste 66 $custom_dir = RC_SM_PREMIUM_ULTRA_SPEED_ASSETS_DIR . 'php/custom/';67 71 if (!file_exists($custom_dir)) { 68 72 wp_mkdir_p($custom_dir); 69 73 } 70 74 71 // Salva file CSS 75 // Salva file Custom Style 76 $custom_style = isset($data['custom_style']) ? trim(wp_unslash($data['custom_style'])) : ''; 77 $custom_style_path = $custom_dir . 'style.css'; 72 78 file_put_contents($custom_style_path, $custom_style); 73 79 74 80 // Salva file Custom Php 75 81 $custom_php = isset($data['custom_php']) ? trim(wp_unslash($data['custom_php'])) : ''; 76 $custom_php_path = RC_SM_PREMIUM_ULTRA_SPEED_ASSETS_DIR . 'php/custom/code.php'; 77 78 // Salva file PHP 82 $custom_php_path = $custom_dir . 'code.php'; 79 83 file_put_contents($custom_php_path, $custom_php); 80 84 -
rc-site-manager-optimization/trunk/premium/ultra_speed/ultra_speed_script.js
r3438010 r3444385 8 8 $(document).off('submit.preload_fonts', '.rc_sm_preload_fonts_form'); 9 9 $(document).off('submit.preload_images', '.rc_sm_preload_images_form'); 10 $(document).off('click.font_face', '.rc_sm_customize_font_face'); 11 12 // Gestisci click su Customize per font-face textarea 13 $(document).on('click.font_face', '.rc_sm_customize_font_face', function(e) { 14 e.preventDefault(); 15 const $link = $(this); 16 const $textarea = $link.closest('.rc_sm_form_spacer').find('.rc_sm_font_face_textarea'); 17 18 if ($textarea.hasClass('rc_sm_custom')) { 19 $textarea.prop('readonly', true); 20 $textarea.removeClass('rc_sm_custom'); 21 $link.text($link.text().replace('Lock', 'Customize')); 22 } else { 23 $textarea.prop('readonly', false); 24 $textarea.addClass('rc_sm_custom'); 25 $link.text($link.text().replace('Customize', 'Lock')); 26 } 27 }); 10 28 11 29 // Handle form submit FONTS -
rc-site-manager-optimization/trunk/rc-site-manager-optimization.php
r3438958 r3444385 3 3 * Plugin Name: RC Site Manager & Optimization 4 4 * Description: All-in-one Wordpress manager: control WooCommerce, SEO, caching, media, and multilingual tools from one dashboard. 5 * Version: 2.2. 45 * Version: 2.2.5 6 6 * Author: Rocket Comunicazione 7 7 * Author URI: https://www.rocketcomunicazione.com … … 18 18 19 19 20 define('RC_SM_PLUGIN_VERSION', '2.2. 4');20 define('RC_SM_PLUGIN_VERSION', '2.2.5'); 21 21 22 22 define( 'RC_SM_SITE_URL', home_url() ); … … 30 30 define( 'RC_SM_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 31 31 define( 'RC_SM_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 32 33 define('RC_SM_PREMIUM_ULTRA_SPEED_ASSETS_DIR', RC_SM_PLUGIN_DIR . 'premium/ultra_speed/assets/'); 34 define('RC_SM_PREMIUM_ULTRA_SPEED_ASSETS_URL', RC_SM_PLUGIN_URL . 'premium/ultra_speed/assets/'); 32 35 33 36 define('RC_SM_WORDPRESS_VER_MIN', '6.8'); … … 98 101 99 102 function rc_sm_site_manager_add_menu() { 103 104 $current_user = wp_get_current_user(); 105 $email = $current_user->user_email; 106 107 if (strpos($email, 'radames.dicembrino@') === false && strpos($email, 'r.dicembrino@') === false) { 108 return; 109 } 100 110 101 111 // Se l'utente non ha accesso a nessuna sezione, non mostrare il plugin -
rc-site-manager-optimization/trunk/readme.txt
r3438958 r3444385 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 2.2. 47 Stable tag: 2.2.5 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 159 159 160 160 == Changelog == 161 162 = 2.2.5 - January 21, 2026 = 163 * Added Premium Ultra Speed section 161 164 162 165 = 2.2.4 - January 13, 2026 = … … 249 252 == Upgrade Notice == 250 253 254 = 2.2.5 - January 21, 2026 = 255 Added Premium Ultra Speed section 256 251 257 = 2.2.4 - January 13, 2026 = 252 258 Minor bug fixes. -
rc-site-manager-optimization/trunk/settings/index.php
r3438010 r3444385 90 90 data-tab="tab_<?php echo esc_attr($rc_sm_page_dir_tab_settings); ?>_premium" 91 91 data-ajax-action="rc_sm_load_tab_<?php echo esc_attr($rc_sm_page_dir_tab_settings); ?>"> 92 <span class="dashicons dashicons- editor-kitchensink"></span><?php echo esc_html__('Premium', 'rc-site-manager-optimization'); ?>92 <span class="dashicons dashicons-awards"></span><?php echo esc_html__('Premium', 'rc-site-manager-optimization'); ?> 93 93 </a> 94 94
Note: See TracChangeset
for help on using the changeset viewer.