403Webshell
Server IP : 207.244.250.86  /  Your IP : 216.73.216.10
Web Server : Apache
System : Linux plesk1.codeponents.com 4.18.0-240.10.1.el8_3.x86_64 #1 SMP Mon Jan 18 17:05:51 UTC 2021 x86_64
User : motionave ( 10025)
PHP Version : 8.0.15
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/motionave.com/httpdocs/wp-content/plugins/redirect-redirection/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/motionave.com/httpdocs/wp-content/plugins/redirect-redirection//activation.php
<?php

/**
 * This file is loaded only on plugin's activation
 */
if (!defined("ABSPATH")) {
    exit();
}

/**
 * Load contants and database manager
 */
include_once "includes/irrp-constants.php";
include_once "includes/irrp-db-manager.php";

/**
 * Make new database manager and try to create DB tables if does not exist
 */
$iRdbManager = new IRRPDBManager();
$iRdbManager->createTables(is_multisite());

/**
 * Mark activation option
 */
update_option('irrp_activation_redirect', true);
if (!defined('IRRP_ACTIVATION_REQUEST')) {
    define('IRRP_ACTIVATION_REQUEST', true);
}

//add_filter("cron_schedules", "irrpSetIntervals");

function irrpSetIntervals($schedules) {
    $schedules[IRRP_CRON_DELETE_LOGS_RECURRENCE_KEY] = [
        "interval" => IRRP_CRON_DELETE_LOGS_RECURRENCE,
        "display" => esc_html__("Every 15 minutes", "redirect-redirection")
    ];
    return $schedules;
}

if (!wp_next_scheduled(IRRP_CRON_DELETE_LOGS)) {
    //wp_schedule_event(current_time("timestamp", 1), IRRP_CRON_DELETE_LOGS_RECURRENCE_KEY, IRRP_CRON_DELETE_LOGS);
    wp_schedule_event(current_time("timestamp", 1), "twicedaily", IRRP_CRON_DELETE_LOGS);
}

Youez - 2016 - github.com/yon3zu
LinuXploit