403Webshell
Server IP : 89.248.107.232  /  Your IP : 216.73.217.70
Web Server : Apache
System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64
User : seg ( 10005)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/seg-sa.es/peyco.es/wp-content/plugins/akeebabackupcore/app/Solo/Model/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/seg-sa.es/peyco.es/wp-content/plugins/akeebabackupcore/app/Solo/Model/Schedule.php
<?php
/**
 * @package        solo
 * @copyright      2014 Nicholas K. Dionysopoulos / Akeeba Ltd
 * @license        GNU GPL version 3 or later
 */

namespace Solo\Model;

use Awf\Mvc\Model;
use Awf\Filesystem\Factory;
use Akeeba\Engine\Platform;

class Schedule extends Model
{
	public function getPaths()
	{
		$ret = (object)array(
			'cli'      => (object)array(
					'supported' => false,
					'path'      => false
				),
			'altcli'   => (object)array(
					'supported' => false,
					'path'      => false
				),
			'frontend' => (object)array(
					'supported' => false,
					'path'      => false,
				),
			'info'     => (object)array(
					'windows'   => false,
					'php_path'  => false,
					'root_url'  => false,
					'secret'    => '',
					'feenabled' => false,
				)
		);

		// Get the profile ID
		$profileid = Platform::getInstance()->get_active_profile();

		// Get the absolute path to the site's root
		$absolute_root = rtrim(realpath(APATH_BASE), DIRECTORY_SEPARATOR);

		// Is this Windows?
		$ret->info->windows = (DIRECTORY_SEPARATOR == '\\') || (substr(strtoupper(PHP_OS), 0, 3) == 'WIN');

		// Get the pseudo-path to PHP CLI
		if ($ret->info->windows)
		{
			$ret->info->php_path = 'c:\path\to\php.exe';
		}
		else
		{
			$ret->info->php_path = '/path/to/php';
		}

		// Get front-end backup secret key
		$ret->info->secret = Platform::getInstance()->get_platform_configuration_option('frontend_secret_word', '');
		$ret->info->feenabled = Platform::getInstance()->get_platform_configuration_option('frontend_enable', false);

		// Get root URL
		$ret->info->root_url = rtrim(Platform::getInstance()->get_platform_configuration_option('siteurl', ''), '/');

		// Get information for CLI CRON script
		if (AKEEBA_PRO)
		{
			$ret->cli->supported = true;
			$ret->cli->path = $absolute_root . DIRECTORY_SEPARATOR . 'cli' . DIRECTORY_SEPARATOR . 'backup.php';

			if ($profileid != 1)
			{
				$ret->cli->path .= ' --profile=' . $profileid;
			}
		}

		// Get information for alternative CLI CRON script
		if (AKEEBA_PRO)
		{
			$ret->altcli->supported = true;

			if (trim($ret->info->secret) && $ret->info->feenabled)
			{
				$ret->altcli->path = $absolute_root . DIRECTORY_SEPARATOR . 'cli' . DIRECTORY_SEPARATOR . 'altbackup.php';

				if ($profileid != 1)
				{
					$ret->altcli->path .= ' --profile=' . $profileid;
				}
			}
		}

		// Get information for front-end backup
		$ret->frontend->supported = true;

		if (trim($ret->info->secret) && $ret->info->feenabled)
		{
			$ret->frontend->path = 'index.php?view=remote&key='
				. urlencode($ret->info->secret);

			if ($profileid != 1)
			{
				$ret->frontend->path .= '&profile=' . $profileid;
			}
		}

		return $ret;
	}

    public function getCheckPaths()
    {
        $ret = (object)array(
            'cli'		=> (object)array(
                    'supported'	=> false,
                    'path'		=> false
                ),
            'altcli'	=> (object)array(
                    'supported'	=> false,
                    'path'		=> false
                ),
            'frontend'	=> (object)array(
                    'supported'	=> false,
                    'path'		=> false,
                ),
            'info'		=> (object)array(
                    'windows'	=> false,
                    'php_path'	=> false,
                    'root_url'	=> false,
                    'secret'	=> '',
                    'feenabled' => false,
                )
        );

        // Get the absolute path to the site's root
        $absolute_root = rtrim(realpath(APATH_BASE), DIRECTORY_SEPARATOR);

        // Is this Windows?
        $ret->info->windows = (DIRECTORY_SEPARATOR == '\\') || (substr(strtoupper(PHP_OS),0,3) == 'WIN');

        // Get the pseudo-path to PHP CLI
        if($ret->info->windows)
        {
            $ret->info->php_path = 'c:\path\to\php.exe';
        }
        else
        {
            $ret->info->php_path = '/path/to/php';
        }

        // Get front-end backup secret key
        $ret->info->secret    = Platform::getInstance()->get_platform_configuration_option('frontend_secret_word', '');
        $ret->info->feenabled = Platform::getInstance()->get_platform_configuration_option('frontend_enable', false);
        // Get root URL
        $ret->info->root_url = rtrim(Platform::getInstance()->get_platform_configuration_option('siteurl', ''), '/');

        // Get information for CLI CRON script
        if(AKEEBA_PRO)
        {
            $ret->cli->supported = true;
            $ret->cli->path = $absolute_root.DIRECTORY_SEPARATOR.'cli'.DIRECTORY_SEPARATOR.'check-failed.php';
        }

        // Get information for alternative CLI CRON script
        if(AKEEBA_PRO)
        {
            $ret->altcli->supported = true;
            if(trim($ret->info->secret) && $ret->info->feenabled)
            {
                $ret->altcli->path = $absolute_root.DIRECTORY_SEPARATOR.'cli'.DIRECTORY_SEPARATOR.'altcheck-failed.php';
            }
        }

        // Get information for front-end backup
        $ret->frontend->supported = true;

        if(trim($ret->info->secret) && $ret->info->feenabled)
        {
            $ret->frontend->path = 'index.php?view=check&key='.urlencode($ret->info->secret);
        }

        return $ret;
    }
} 

Youez - 2016 - github.com/yon3zu
LinuXploit