Server IP : 162.0.217.223 / Your IP : 216.73.216.150 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/backup/msckey.com/wp-content/plugins/woolentor-addons/classes/ |
Upload File : |
<?php namespace WooLentor; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Installer class */ class Installer { private static $instance = null; public static function instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Class Constructor */ private function __construct(){ $this->run(); } /** * Run the installer * * @return void */ public function run() { $this->add_version(); $this->add_redirection_flag(); } /** * Add time and version on DB */ public function add_version() { $installed = get_option( 'woolentor_installed' ); if ( ! $installed ) { update_option( 'woolentor_installed', time() ); } update_option( 'woolentor_version', WOOLENTOR_VERSION ); } /** * [add_redirection_flag] redirection flug */ public function add_redirection_flag(){ add_option( 'woolentor_do_activation_redirect', TRUE ); // All Remote data cache Remove add_option( 'woolentor_delete_data_fetch_cache', TRUE ); flush_rewrite_rules(); } }