HEX
HEX
Server: Apache/2
System: Linux 31.186.11.143 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: tek178om (4688)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/tek178om/domains/teknocut.com/private_html/wp-content/plugins/backup/public/cron/cron.php
<?php
if (function_exists('opcache_get_status')) ini_set('opcache.enable', 0);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0');
header('Pragma: no-cache');
header('Expires: 0');

use JetBackup\Cron\Cron;
use JetBackup\Factory;
use JetBackup\Wordpress\Wordpress;

$isWeb =  isset($_SERVER['HTTP_TE']) || isset($_SERVER['HTTP_COOKIE']) || isset($_SERVER['HTTP_ACCEPT']) ?? null;
$location = ($_SERVER['SCRIPT_FILENAME'] ?? __FILE__);
// /home/user/public_html/wp-content/plugins/backup/public/cron/cron.php

define ('WP_ROOT', dirname($location, 6));

if (!file_exists(WP_ROOT . DIRECTORY_SEPARATOR . 'wp-load.php')) {
	die('Error: Cannot locate wp-load.php. Ensure WP_ROOT is correct.');
}

// Get into WordPress ecosystem
require_once(WP_ROOT . DIRECTORY_SEPARATOR . 'wp-load.php');

$_active_plugins = is_multisite() ? array_keys(get_site_option('active_sitewide_plugins')) : Wordpress::getOption('active_plugins');
$_plugin_name = 'backup/backup.php'; // Cannot use DIRECTORY_SEPARATOR, will cause false positives with IIS
if (!in_array($_plugin_name, $_active_plugins)) die('JetBackup Plugin is inactive');

if ($isWeb) {
	$key = Factory::getConfig()->getCronToken();
	$token = filter_input(INPUT_GET, 'token', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
	if (!$key || !$token || $key != $token) die(1);
}

try {
	Cron::main();
} catch(Exception $e) {
	die($e->getMessage() . PHP_EOL);
}