HEX
Server: Apache
System: Linux webm003.cluster111.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: assotraipi (849654)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/assotraipi/www/wp-content/plugins/download-monitor/src/Ajax/Ajax.php
<?php

abstract class DLM_Ajax {
	private $tag = '';

	/**
	 * @param string $tag
	 */
	public function __construct( $tag ) {
		$this->tag = $tag;
	}

	/**
	 * Register AJAX action
	 */
	public function register() {
		add_action( DLM_Ajax_Manager::ENDPOINT . $this->tag, array( $this, 'run' ) );
	}

	/**
	 * Checks AJAX nonce
	 */
	protected function check_nonce() {
		check_ajax_referer( 'dlm_ajax_nonce_' . $this->tag, 'nonce' );
	}

	/**
	 * AJAX callback method, must be overridden
	 *
	 * @return void
	 */
	public abstract function run();
}