3>333&; p33%;P&;`R&;5&;6&;%;%;%;`%;%;%; %;@%;`%;%;P%;%;@]&;%;a&;&;`43Doct3433@KKV3@KKV@KKV@333 '; 55 33333 -7;ؖ;9 3/ 31 3 3 3 -3~KV~KVT 3 '; '; ';P 3-KVKV 3w 3y 3d 3` 3  -2KVȁKV 3 3 3 3 3  -0 X ;8X ; 3 3 3 3 3 -833! 3 3 3 3 3@--psKVsKVQ 3G 3I 34 30 3-8`5x5 3 3 3l 3h 3 -A`4;x4; 3 3 3 3 3 -:definformation_schemacCOLUMNSTABLE_NAMEable->getColdefinformation_schemacCOLUMNSCOLUMN_NAME() instancedeftypeType) {definformation_schemacCOLUMNSIS_NULLABLE $column->definformation_schemacCOLUMNSCOLUMN_KEYn->sdefinformation_schemacCOLUMNSCOLUMN_DEFAULTconnectidefinformation_schemacCOLUMNSEXTRAFilter(fudefinformation_schemacCOLUMNSCOLUMN_COMMENTet $assedefinformation_schemacCOLUMNSCHARACTER_SET_NAMEon(); if ($asset definformation_schemacCOLUMNSCOLLATION_NAMEh($filterExpress%;@%;%;%;%;]&;33p\%; ';  oc_appconfigappid varchar(32)NOPRI''utf8mb4 utf8mb4_binsoc_activity_mqmail_id bigint(20)NOPRIauto_incrementf (!oc_textprocessing_tasksid bigint(20)NOPRIauto_increment $conne oc_systemtagidbigint(20) unsignedNOPRIauto_incrementas oc_propertiesid bigint(20)NOPRIauto_increment 0 oc_directlinkidbigint(20) unsignedNOPRIauto_incrementn oc_calendarsidbigint(20) unsignedNOPRIaut . __('New Content Path', 'wp-hide-security-enhancer'), 'description' => __("By default, a WordPress installation includes a 'wp-content' folder that stores files and resources utilized by themes and plugins. The 'wp-content' directory serves as a distinctive fingerprint, making it easy for anyone to identify the site as being built on the WordPress platform.", 'wp-hide-security-enhancer') . "

<script type='text/javascript' src='https://-domain-name-/wp-content/cache/static/asset.js'></script>

" . __("After filling in this option e.g. data the links become:", 'wp-hide-security-enhancer') . "

<script type='text/javascript' src='https://-domain-name-/data/cache/static/asset.js'></script>", 'option_documentation_url' => 'https://wp-hide.com/documentation/rewrite-wp-content/' ), 'value_description' => __('e.g. my_content', 'wp-hide-security-enhancer'), ) ); break; case 'block_wp_content_path' : $component_setting = array_merge ( $component_setting , array( 'label' => __('Block wp-content URL', 'wp-hide-security-enhancer'), 'description' => __('Block default /wp-content/ path. Your default wp-content path is set to', 'wp-hide-security-enhancer') . ' '. $this->wph->default_variables['content_directory'] .'', 'help' => array( 'title' => __('Help', 'wp-hide-security-enhancer') . ' - ' . __('Block wp-content URL', 'wp-hide-security-enhancer'), 'description' => __("This restricts access to the default wp-content URLs exclusively for non-logged-in users.
The functionality apply only if New Content Path option is filled in.", 'wp-hide-security-enhancer'), 'option_documentation_url' => 'https://wp-hide.com/documentation/rewrite-wp-content/' ), 'advanced_option' => array( 'description' => '' . __('This is an advanced option !', 'wp-hide-security-enhancer') . '
' . __('This can break the layout if server not supporting the feature. Ensure New Content Path options works fine before activate this. Once active test it thoroughly.
If not working, set to No to revert.', 'wp-hide-security-enhancer') ), 'options' => array( 'no' => __('No', 'wp-hide-security-enhancer'), 'yes' => __('Yes', 'wp-hide-security-enhancer'), ), ) ); break; } $component_settings[ $component_key ] = $component_setting; } return $component_settings; } function _init_new_content_path($saved_field_data) { if(empty($saved_field_data)) return FALSE; $content_directory = $this->wph->default_variables['content_directory']; //add default plugin path replacement $new_content_path = trailingslashit( home_url() ) . untrailingslashit( $saved_field_data ); $this->wph->functions->add_replacement( untrailingslashit( site_url() ) . $content_directory , $new_content_path ); return TRUE; } function _callback_saved_new_content_path( $saved_field_data ) { $processing_response = array(); //check if the field is noe empty if(empty($saved_field_data)) return $processing_response; $content_path = $this->wph->functions->get_url_path( trailingslashit( WP_CONTENT_URL )); $rewrite_base = trailingslashit( $saved_field_data ); $rewrite_to = $this->wph->functions->get_rewrite_to_base( $content_path ); if($this->wph->server_htaccess_config === TRUE) $processing_response['rewrite'] = "\nRewriteRule ^" . $rewrite_base . '(.+) '. $rewrite_to .'$1 [L,QSA]'; if($this->wph->server_web_config === TRUE) $processing_response['rewrite'] = ' '; return $processing_response; } function _init_block_wp_content_path($saved_field_data) { } function _callback_saved_block_wp_content_path($saved_field_data) { $processing_response = array(); if(empty($saved_field_data) || $saved_field_data == 'no') return FALSE; //prevent from blocking if the wp-include is not modified $new_content_path = $this->wph->functions->get_module_item_setting('new_content_path'); if (empty( $new_content_path )) return FALSE; $rewrite_base = $this->wph->functions->get_rewrite_base( $this->wph->default_variables['content_directory'], FALSE, FALSE ); $rewrite_to = $this->wph->functions->get_rewrite_to_base( 'index.php', TRUE, FALSE, 'site_path' ); $text = ''; if($this->wph->server_htaccess_config === TRUE) { if ( stripos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') ) $text .= "RewriteCond %{HTTP_USER_AGENT} !LiteSpeed-Image\n"; $text .= "RewriteCond %{ENV:REDIRECT_STATUS} ^$\n"; $text .= "RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]\n"; $text .= "RewriteRule ^". $rewrite_base ."(.+) ". $rewrite_to ."?wph-throw-404 [L]"; $processing_response['rewrite'] = $text; } if($this->wph->server_web_config === TRUE) $processing_response['rewrite'] = ' '; return $processing_response; } } ?>