File manager - Edit - /home/proidvn/me.proid.vn/wp-content/plugins/jetformbuilder/modules/gateways/tab-handlers/payments-gateways-handler.php
Back
<?php namespace JFB_Modules\Gateways\Tab_Handlers; // If this file is called directly, abort. use Jet_Form_Builder\Admin\Tabs_Handlers\Base_Handler; if ( ! defined( 'WPINC' ) ) { die; } class Payments_Gateways_Handler extends Base_Handler { public function slug() { return 'payments-gateways'; } public function on_get_request() { // phpcs:disable WordPress.Security.NonceVerification.Missing $use_gateways = 'true' === sanitize_key( $_POST['use_gateways'] ?? '' ); $enable_test_mode = 'true' === sanitize_key( $_POST['enable_test_mode'] ?? '' ); // phpcs:enable WordPress.Security.NonceVerification.Missing $result = $this->update_options( array( 'use_gateways' => $use_gateways, 'enable_test_mode' => $enable_test_mode, ) ); $this->send_response( $result ); } public function on_load() { return $this->get_options( array( 'use_gateways' => false, 'enable_test_mode' => false, ) ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0.14 |
proxy
|
phpinfo
|
Settings