Done !
| Server IP : 54.36.91.62 / Your IP : 216.73.216.38 Web Server : Apache System : Linux webm008.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : awaywithxm ( 25098) PHP Version : 7.0.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awaywithxm/www/wp-content/plugins/secupress/inc/admin/functions/ |
Upload File : |
<?php
defined( 'ABSPATH' ) or die( 'Cheatin’ uh?' );
/** --------------------------------------------------------------------------------------------- */
/** MODULE OPTIONS ============================================================================== */
/** --------------------------------------------------------------------------------------------- */
/**
* Delete a SecuPress module option.
*
* @since 1.4.4
*
* @param (string) $module The module slug (see array keys from `modules.php`).
*/
function secupress_delete_module_option( $module ) {
global $wpdb;
delete_site_option( "secupress_{$module}_settings" );
delete_site_transient( 'secupress_active_submodules' );
$wpdb->query( $wpdb->prepare( 'DELETE FROM ' . $wpdb->options . ' WHERE option_name LIKE "secupress_active_submodule_%" AND option_value = %s', $module ) );
}
/**
* Update a SecuPress module option.
*
* @since 1.0
*
* @param (string) $option The option name.
* @param (mixed) $value The new value.
* @param (string) $module The module slug (see array keys from `modules.php`). Default is the current module.
*/
function secupress_update_module_option( $option, $value, $module = false ) {
if ( ! $module ) {
$module = secupress_get_current_module();
}
$options = get_site_option( "secupress_{$module}_settings" );
$options = is_array( $options ) ? $options : array();
$options[ $option ] = $value;
update_site_option( "secupress_{$module}_settings", $options );
}
/**
* Update a SecuPress module options.
*
* @since 1.0
*
* @param (array) $values The new values. Keys not provided are not removed, previous values are kept.
* @param (string) $module The module slug (see array keys from `modules.php`). Default is the current module.
*/
function secupress_update_module_options( $values, $module = false ) {
if ( ! $values || ! is_array( $values ) ) {
return null;
}
if ( ! $module ) {
$module = secupress_get_current_module();
}
$options = get_site_option( "secupress_{$module}_settings" );
$options = is_array( $options ) ? $options : array();
$options = array_merge( $options, $values );
update_site_option( "secupress_{$module}_settings", $options );
}
/**
* Get the current module.
*
* @since 1.0
*
* @return (string).
*/
function secupress_get_current_module() {
if ( ! class_exists( 'SecuPress_Settings' ) ) {
secupress_require_class( 'settings' );
}
if ( ! class_exists( 'SecuPress_Settings_Modules' ) ) {
secupress_require_class( 'settings', 'modules' );
}
return SecuPress_Settings_Modules::get_instance()->get_current_module();
}