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/classes/common/ |
Upload File : |
<?php
defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
/**
* Singleton class.
*
* @package SecuPress
* @since 1.0
*/
class SecuPress_Singleton {
const VERSION = '1.0';
/**
* Sub-classes must declare a Singleton property as follow:
*
* The reference to *Singleton* instance of this class.
*
* @var (object)
*/
protected static $_instance;
/**
* Init.
* Sub-classes may extend this method.
*
* @since 1.0
*/
protected function _init() {}
/**
* Get the *Singleton* instance of this class.
*
* @since 1.0
*
* @return (object) The *Singleton* instance.
*/
final public static function get_instance() {
if ( ! isset( static::$_instance ) ) {
static::$_instance = new static;
}
return static::$_instance;
}
/**
* Private constructor to prevent creating a new instance of the *Singleton* via the `new` operator from outside of this class.
*
* @since 1.0
*/
final private function __construct() {
$this->_init();
}
/**
* Private clone method to prevent cloning of the instance of the *Singleton* instance.
*
* @since 1.0
*/
final private function __clone() {}
/**
* Private unserialize method to prevent unserializing of the *Singleton* instance.
*
* @since 1.0
*/
final private function __wakeup() {}
}