uawdijnntqw1x1x1
IP : 216.73.217.142
Hostname : localhost.localdomain
Kernel : Linux localhost.localdomain 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
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,
OS : Linux
PATH:
/
var
/
www
/
consult-e-syn
/
public_html
/
643de
/
..
/
plugins
/
system
/
admintools
/
feature
/
importsettings.php
/
/
<?php /** * @package admintools * @copyright Copyright (c)2010-2023 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ use Akeeba\AdminTools\Admin\Model\ImportAndExport; use FOF40\Date\Date; use FOF40\Download\Download; defined('_JEXEC') || die; class AtsystemFeatureImportsettings extends AtsystemFeatureAbstract { protected $loadOrder = 390; private $remote_url = ''; private $freq = 0; /** * Is this feature enabled? * * @return bool */ public function isEnabled() { $this->remote_url = $this->params->get('autoimport_url', ''); $this->freq = $this->params->get('autoimport_freq', 0); // Do not run if we don't have an URL or a frequency set return ($this->remote_url && ($this->freq > 0)); } /** * Run the settings import on a schedule */ public function onAfterInitialise() { $lastJob = $this->getTimestamp('autoimport_settings'); $nextJob = $lastJob + $this->freq * 60 * 60; $now = new Date(); if ($now->toUnix() >= $nextJob) { $this->setTimestamp('autoimport_settings'); $this->importSettings(); } } /** * Actually imports settings file from a remote URL */ private function importSettings() { $download = new Download($this->container); // Triple check we actually have an adapter that can be used if (!$download->getAdapterName()) { return; } $settings = $download->getFromURL($this->remote_url); // Something happened during the download, simply ignore it to avoid the site to crash if (empty($settings)) { return; } /** @var ImportAndExport $importModel */ $importModel = $this->container->factory->model('ImportAndExport')->tmpInstance(); try { $importModel->importData($settings); } catch (Exception $e) { // Do not die if anything goes wrong (ie bad or invalid settings file) } } }
/var/www/consult-e-syn/public_html/643de/../plugins/system/admintools/feature/importsettings.php