HEX
Server: Apache
System: Linux c265a.dattaweb.com 4.18.0-553.97.1.el8_10.x86_64 #1 SMP Mon Jan 26 05:26:16 EST 2026 x86_64
User: c2650654 (20026)
PHP: 8.3.31
Disabled: system, shell, exec, system_exec, shell_exec, mysql_pconnect, passthru, popen, proc_open, proc_close, proc_nice, proc_terminate, proc_get_status, escapeshellarg, escapeshellcmd, eval, dl, imap_mail, libvirt_connect, gnupg_init, unsetenv, apache_setenv, pcntl_exec, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_get_handler, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_getpriority, pcntl_setpriority, pcntl_async_signals, opcache_get_status, opcache_reset, opcache_get_configuration
Upload Files
File: /home/c2650654/public_html/wp-content/plugins/wpvulnerability/wpvulnerability-schedule.php
<?php
/**
 * Scheduling functions
 *
 * @package WPVulnerability
 *
 * @version 3.1.0
 */

defined( 'ABSPATH' ) || die( 'No script kiddies please!' );

/**
 * Schedule Automatic Vulnerability Database Update.
 * If the 'wpvulnerability_update_database' event is not already scheduled, schedule it to run twice daily.
 *
 * @since 2.0.0
 *
 * @return void
 */
if ( ! wp_next_scheduled( 'wpvulnerability_update_database' ) ) {
	// Schedule the event only for the main site in a multisite network or for a single site.
	if ( ! is_multisite() || ( is_multisite() && is_main_site() ) ) {
		wp_schedule_event( time(), 'twicedaily', 'wpvulnerability_update_database' );
	}
}

// Hook the event to the function that updates the database.
add_action( 'wpvulnerability_update_database', 'wpvulnerability_update_database_data' );

/**
 * Schedule vulnerability notification and execute notification function.
 *
 * @since 2.0.0
 *
 * @return void
 */
$wpvulnerability_s = array();
if ( is_multisite() ) {
	$wpvulnerability_s = get_site_option( 'wpvulnerability-config' );
} else {
	$wpvulnerability_s = get_option( 'wpvulnerability-config' );
}

// Check if notification period is set.
if ( isset( $wpvulnerability_s['period'] ) ) {

	// Check if notification is not already scheduled.
	if ( ! wp_next_scheduled( 'wpvulnerability_notification' ) ) {

		// Schedule notification.
		if ( ! is_multisite() || ( is_multisite() && is_main_site() ) ) {
			wp_schedule_event( time(), $wpvulnerability_s['period'], 'wpvulnerability_notification' );
		}
	}

	// Add action to execute notification function.
	add_action( 'wpvulnerability_notification', 'wpvulnerability_execute_notification' );
}

// Clean up.
unset( $wpvulnerability_s );