403Webshell
Server IP : 85.214.143.32  /  Your IP : 216.73.216.243
Web Server : nginx/1.24.0
System : Linux datensicherung.webdress.site 6.8.0-139-generic #139-Ubuntu SMP PREEMPT_DYNAMIC Sat Aug 1 03:52:05 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/nextcloud/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/nextcloud/cron.php
<?php

declare(strict_types=1);

use OC\Core\Service\CronService;
use OCP\Server;
use Psr\Log\LoggerInterface;

/**
 * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
 * SPDX-License-Identifier: AGPL-3.0-only
 */

require_once __DIR__ . '/lib/versioncheck.php';

try {
	require_once __DIR__ . '/lib/base.php';

	if (isset($argv[1]) && ($argv[1] === '-h' || $argv[1] === '--help')) {
		echo 'Description:
  Run the background job routine

Usage:
  php -f cron.php -- [-h] [--verbose] [<job-classes>...]

Arguments:
  job-classes                  Optional job class list to only run those jobs
                               Providing a class will ignore the time-sensitivity restriction

Options:
  -h, --help                 Display this help message
  -v, --verbose              Output more information' . PHP_EOL;
		exit(0);
	}

	$cronService = Server::get(CronService::class);
	if (isset($argv[1])) {
		$verbose = $argv[1] === '-v' || $argv[1] === '--verbose';
		$jobClasses = array_slice($argv, $verbose ? 2 : 1);
		$jobClasses = empty($jobClasses) ? null : $jobClasses;

		if ($verbose) {
			$cronService->registerVerboseCallback(function (string $message): void {
				echo $message . PHP_EOL;
			});
		}
	} else {
		$jobClasses = null;
	}

	$cronService->run($jobClasses);
	if (!OC::$CLI) {
		$data = [
			'status' => 'success',
		];
		header('Content-Type: application/json; charset=utf-8');
		echo json_encode($data, JSON_HEX_TAG);
	}
	exit(0);
} catch (Throwable $e) {
	Server::get(LoggerInterface::class)->error(
		$e->getMessage(),
		['app' => 'cron', 'exception' => $e]
	);
	if (OC::$CLI) {
		echo $e->getMessage() . PHP_EOL;
	} else {
		$data = [
			'status' => 'error',
			'message' => $e->getMessage(),
		];
		header('Content-Type: application/json; charset=utf-8');
		echo json_encode($data, JSON_HEX_TAG);
	}
	exit(1);
}

Youez - 2016 - github.com/yon3zu
LinuXploit