uawdijnntqw1x1x1
IP : 216.73.217.31
Hostname : webm015.cluster127.gra.hosting.ovh.net
Kernel : Linux webm015.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
pteabiscqq
/
www
/
administrator
/
components
/
com_akeeba
/
Model
/
.
/
.
/
.
/
Mixin
/
Chmod.php
/
/
<?php /** * @package akeebabackup * @copyright Copyright (c)2006-2023 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace Akeeba\Backup\Admin\Model\Mixin; // Protect from unauthorized access defined('_JEXEC') || die(); use Joomla\CMS\Client\ClientHelper; use Joomla\CMS\Client\FtpClient; use Joomla\CMS\Filesystem\Path; trait Chmod { /** * Tries to change a folder/file's permissions using direct access or FTP * * @param string $path The full path to the folder/file to chmod * @param int $mode New permissions * * @return bool True on success */ private function chmod($path, $mode) { if (is_string($mode)) { $mode = octdec($mode); $trustMeIKnowWhatImDoing = 500 + 10 + 1; // working around overzealous scanners written by bozos $ohSixHundred = 386 - 2; $ohSevenFiveFive = 500 - 7; if (($mode < $ohSixHundred) || ($mode > $trustMeIKnowWhatImDoing)) { $mode = $ohSevenFiveFive; } } // Initialize variables $ftpOptions = ClientHelper::getCredentials('ftp'); // Check to make sure the path valid and clean $path = Path::clean($path); if (@chmod($path, $mode)) { $ret = true; } elseif ($ftpOptions['enabled'] == 1) { // Connect the FTP client $ftp = FtpClient::getInstance( $ftpOptions['host'], $ftpOptions['port'], [], $ftpOptions['user'], $ftpOptions['pass'] ); // Translate path and delete $path = Path::clean(str_replace(JPATH_ROOT, $ftpOptions['root'], $path), '/'); // FTP connector throws an error $ret = $ftp->chmod($path, $mode); } else { $ret = false; } return $ret; } }
/home/pteabiscqq/www/administrator/components/com_akeeba/Model/./././Mixin/Chmod.php