TIONS ! `@S@|U ?S@|U @ :yU 6{HW CURLMOPT_MAX_PIPELINE_LENGTH ! @S@|U @S@|U @ EyU G꾁 CURLMOPT_MAX_TOTAL_CONNECTIONS ! AS@|U `@S@|U 0 t3yU o؏v CURLOPT_SASL_IR ! pAS@|U @S@|U @ EyU bhw>S CURLOPT_DNS_INTERFACE ! AS@|U AS@|U @ DyU +aW CURLOPT_DNS_LOCAL_IP4 ! 0BS@|U pAS@|U @ DyU
+aW CURLOPT_DNS_LOCAL_IP6 ! BS@|U AS@|U @ DyU sЦ CURLOPT_XOAUTH2_BEARER ! BS@|U 0BS@|U @ dGyU LW> CURL_HTTP_VERSION_2_0 ! PCS@|U BS@|U @ GyU j){* CURL_VERSION_HTTP2 ! CS@|U BS@|U @ $FyU 1C, CURLOPT_LOGIN_OPTIONS ! DS@|U PCS@|U @ DFyU z0r CURL_SSLVERSION_TLSv1_0 ! pDS@|U CS@|U @ FyU {0r CURL_SSLVERSION_TLSv1_1 ! DS@|U DS@|U @ AyU |0r CURL_SSLVERSION_TLSv1_2 ! 0ES@|U pDS@|U @ AyU K2b CURLOPT_EXPECT_100_TIMEOUT_MS ! ES@|U DS@|U @ AyU @F CURLOPT_SSL_ENABLE_ALPN ! ES@|U 0ES@|U @ d@yU G_.,! CURLOPT_SSL_ENABLE_NPN ! PFS@|U ES@|U @ @yU X+: CURLHEADER_SEPARATE ! FS@|U ES@|U @ $CyU g G CURLHEADER_UNIFIED ! GS@|U PFS@|U @ DCyU )K CURLOPT_HEADEROPT ! pGS@|U FS@|U @ CyU a CURLOPT_PROXYHEADER ! GS@|U GS@|U @ ByU l+'~/ CURLAUTH_NEGOTIATE ! 0HS@|U pGS@|U @ ByU n[T| CURL_VERSION_GSSAPI ! HS@|U GS@|U @ ByU A_NB CURLOPT_PINNEDPUBLICKEY ! HS@|U 0HS@|U @ dMyU %؉~E CURLOPT_UNIX_SOCKET_PATH ! @IS@|U HS@|U 0 EyU lj
CURLPROTO_SMB ! IS@|U HS@|U 0 $LyU 7ǟ CURLPROTO_SMBS ! IS@|U @IS@|U @ MyU 1qǿ CURL_VERSION_KERBEROS5 ! PJS@|U IS@|U @ LyU ŵ CURL_VERSION_UNIX_SOCKETS ! JS@|U IS@|U @ $OyU 1 CURLOPT_SSL_VERIFYSTATUS ! KS@|U PJS@|U @ DOyU \z CURLOPT_PATH_AS_IS ! pKS@|U JS@|U @ OyU E-|F! CURLOPT_SSL_FALSESTART ! KS@|U KS@|U @ NyU i(M CURL_HTTP_VERSION_2 ! 0LS@|U pKS@|U @ NyU oH CURLOPT_PIPEWAIT ! LS@|U KS@|U @ NyU K9 CURLOPT_PROXY_SERVICE_NAME ! LS@|U 0LS@|U @ dIyU !SP CURLOPT_SERVICE_NAME ! PMS@|U LS@|U @ IyU C CURLPIPE_NOTHING ! MS@|U LS@|U 0 TLyU l,ǟ CURLPIPE_HTTP1 ! NS@|U PMS@|U @ $HyU |! CURLPIPE_MULTIPLEX ! `NS@|U MS@|U @ HyU \ CURLSSLOPT_NO_REVOKE ! NS@|U NS@|U @ KyU #[ CURLOPT_DEFAULT_PROTOCOL ! OS@|U `NS@|U @ KyU P CURLOPT_STREAM_WEIGHT ! OS@|U NS@|U @ KyU ;XI CURLMOPT_PUSHFUNCTION ! OS@|U OS@|U 0 DHyU S^,̸ CURL_PUSH_OK ! PS@|U OS@|U 0 'sanitize_type' => array(array($this->wph->functions, 'sanitize_file_path_name'), 'strtolower'),
'processing_order' => 10
);
$this->module_settings[] = array(
'id' => 'new_style_file_path',
'label' => __('New Style File Path', 'wp-hide-security-enhancer'),
'description' => __('Change default theme style file style.css, current path is set to', 'wp-hide-security-enhancer') . ' '. str_replace(get_bloginfo('wpurl'), '' , $this->wph->default_variables['template_url']) .'/style.css',
'help' => array(
'title' => __('Help', 'wp-hide-security-enhancer') . ' - ' . __('New Style File Path', 'wp-hide-security-enhancer'),
'description' => __("This allow to change the default style.css filename to something else e.g. template-style.css. Per this example, on front side the main style link change from /style.css to /template-style.css", 'wp-hide-security-enhancer') ."
<link rel='stylesheet' href='http://-domain-name-/template/template-style.css' type='text/css' media='all' />
",
'option_documentation_url' => 'https://wp-hide.com/documentation/rewrite-theme/',
'input_value_extension' => 'css'
),
'value_description' => __('Example', 'wp-hide-security-enhancer') . ': skin.css',
'input_type' => 'text',
'sanitize_type' => array(array($this->wph->functions, 'sanitize_file_path_name')),
'processing_order' => 5
);
$this->module_settings[] = array(
'id' => 'style_file_clean',
'label' => __('Remove description header from Style file', 'wp-hide-security-enhancer'),
'description' =>
array(
__('Strip out all meta data from style file.', 'wp-hide-security-enhancer') . '
'
),
'help' => array(
'title' => __('Help', 'wp-hide-security-enhancer') . ' - ' . __('Remove description header from Style file', 'wp-hide-security-enhancer'),
'description' => __("Strip out all meta data from style file as Theme Name, Theme URI, Author etc. Those are important informations for hackers to find out possible theme security breaches. A list of headers can e found at", 'wp-hide-security-enhancer') . " ". __("Theme Headers", 'wp-hide-security-enhancer') . "
" .
__("This feature may fail if style file url not available on html ( being concatenated ).", 'wp-hide-security-enhancer'),
'option_documentation_url' => 'https://wp-hide.com/documentation/rewrite-theme/'
),
'advanced_option' => array(
'description' => '' . __('This is an advanced option !', 'wp-hide-security-enhancer') . '
' . __('This can break the layout if server not supporting the feature. Once active test it thoroughly.
If not working, set to No to revert.', 'wp-hide-security-enhancer')
),
'input_type' => 'radio',
'options' => array(
'no' => __('No', 'wp-hide-security-enhancer'),
'yes' => __('Yes', 'wp-hide-security-enhancer'),
),
'options_post' => '
warning ' . __('This functionality use caching! If active, cache clear is recommended on styles updates.', 'wp-hide-security-enhancer') .'
' . __("Cache Clear", 'wp-hide-security-enhancer') . "
" , 'default_value' => 'no', 'sanitize_type' => array('sanitize_title', 'strtolower'), 'processing_order' => 3 ); if($this->wph->templates_data['use_child_theme']) { $this->module_settings[] = array( 'type' => 'split' ); $this->module_settings[] = array( 'type' => 'split', 'label' => ucfirst( get_option('current_theme') ) ); $this->module_settings[] = array( 'id' => 'new_theme_child_path', 'label' => __('New Theme Path', 'wp-hide-security-enhancer'), 'description' => __('Change child theme url, which as default the path is set to', 'wp-hide-security-enhancer') . ' '. str_replace(get_bloginfo('wpurl'), '' , trailingslashit($this->wph->templates_data['themes_url']) . $this->wph->templates_data['child']['folder_name']) .'/', 'help' => array( 'title' => __('Help', 'wp-hide-security-enhancer') . ' - ' . __('New Theme Path', 'wp-hide-security-enhancer'), 'description' => __("This option helps to change the child theme url to a custom one. As default all theme assets ( styles, JavaScript etc ) are loaded using the theme url and appear on front side html source like this:", 'wp-hide-security-enhancer') . "<link rel='stylesheet' href='http://-domain-name-/wp-content/themes/Divi-child/style.css' type='text/css' media='all' />
<link rel='stylesheet' href='http://-domain-name-/template-child/style.css' type='text/css' media='all' />
",
'option_documentation_url' => 'https://wp-hide.com/documentation/rewrite-theme/'
),
'value_description' => __('Example', 'wp-hide-security-enhancer') . ': template-child',
'input_type' => 'text',
'sanitize_type' => array(array($this->wph->functions, 'sanitize_file_path_name'), 'strtolower'),
'processing_order' => 9
);
$this->module_settings[] = array(
'id' => 'child_style_file_path',
'label' => __('New Style File Path', 'wp-hide-security-enhancer'),
'description' => __('Change default child theme style file style.css, current path is set to', 'wp-hide-security-enhancer') . ' '. str_replace(get_bloginfo('wpurl'), '' , $this->wph->default_variables['stylesheet_uri']) .'/style.css',
'help' => array(
'title' => __('Help', 'wp-hide-security-enhancer') . ' - ' . __('New Style File Path', 'wp-hide-security-enhancer'),
'description' => __("This allow to change the default style.css filename to something else e.g. template-style.css. Per this example, on front side the main style link change from /style.css to /child-style.css", 'wp-hide-security-enhancer') . " <link rel='stylesheet' href='http://-domain-name-/template-child/child-style.css' type='text/css' media='all' />
",
'option_documentation_url' => 'https://wp-hide.com/documentation/rewrite-theme/',
'input_value_extension' => 'css'
),
'value_description' => __('Example', 'wp-hide-security-enhancer') . ': child-skin.css',
'input_type' => 'text',
'sanitize_type' => array(array($this->wph->functions, 'sanitize_file_path_name')),
'processing_order' => 5
);
$this->module_settings[] = array(
'id' => 'child_style_file_clean',
'label' => __('Remove description header from Style file', 'wp-hide-security-enhancer'),
'description' =>
array(
__('Strip out all meta data from child theme style file.', 'wp-hide-security-enhancer') . 'warning ' . __('This functionality use caching! If active, cache clear is recommended on styles updates.', 'wp-hide-security-enhancer') .'
' . __("Cache Clear", 'wp-hide-security-enhancer') . '
' , 'default_value' => 'no', 'sanitize_type' => array('sanitize_title', 'strtolower'), 'processing_order' => 3 ); add_filter('wp-hide/interface/process', array($this, 'interface_process'), 10, 3); } add_action('wph/settings_changed', array($this, 'settings_changed'), 10, 2); return $this->module_settings; } /** * New Theme Path * * @param mixed $saved_field_data */ function _init_new_theme_path($saved_field_data) { if(empty($saved_field_data)) return FALSE; //add replacement url $this->wph->functions->add_replacement( $this->wph->default_variables['template_url'], trailingslashit( home_url() ) . $saved_field_data ); } function _callback_saved_new_theme_path($saved_field_data) { $processing_response = array(); //check if the field is noe empty if(empty($saved_field_data)) return $processing_response; $theme_path = $this->wph->functions->get_url_path( $this->wph->templates_data['themes_url'] . $this->wph->templates_data['main']['folder_name'] ); $path = ''; $path .= trailingslashit( $saved_field_data ); $theme_path = str_replace(' ', '%20', $theme_path); $rewrite_to = $this->wph->functions->get_rewrite_to_base( $theme_path ); if($this->wph->server_htaccess_config === TRUE) $processing_response['rewrite'] = "\nRewriteRule ^" . $path . '(.+) '. $rewrite_to .'$1 [L,QSA]'; if($this->wph->server_web_config === TRUE) $processing_response['rewrite'] = '