HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/f/r/e/frenchy/www/_trash/wp-content/plugins/secupress/inc/modules/logs/plugins/404-logs.php
<?php
/**
 * Module Name: 404 Logs
 * Description: Logs "404 Page Not Found" errors on the site.
 * Main Module: logs
 * Author: SecuPress
 * Version: 1.0
 */

defined( 'SECUPRESS_VERSION' ) or die( 'Something went wrong.' );

/** --------------------------------------------------------------------------------------------- */
/** INCLUDE AND INITIATE ======================================================================== */
/** --------------------------------------------------------------------------------------------- */

if ( ! did_action( 'secupress.plugins.loaded' ) ) {

	if ( ! class_exists( 'SecuPress_Logs' ) ) {
		secupress_require_class( 'Logs' );
	}

	require_once( SECUPRESS_MODULES_PATH . 'logs/plugins/inc/php/404-logs/class-secupress-404-logs.php' );

	SecuPress_404_Logs::get_instance();
}


/** --------------------------------------------------------------------------------------------- */
/** ACTIVATION / DEACTIVATION =================================================================== */
/** --------------------------------------------------------------------------------------------- */

add_action( 'secupress.modules.deactivate_submodule_' . basename( __FILE__, '.php' ), 'secupress_deactivate_plugin_404_logs' );
add_action( 'secupress.plugins.deactivation',                                         'secupress_deactivate_plugin_404_logs' );
/**
 * Delete logs on deactivation.
 *
 * @since 1.0
 */
function secupress_deactivate_plugin_404_logs() {
	if ( class_exists( 'SecuPress_404_Logs' ) ) {
		SecuPress_404_Logs::get_instance()->delete_logs();
	}
}