芝麻web文件管理V1.00
编辑当前文件:/home/asmplong/www/ancien-site-2019/site/administrator/components/com_media/media.php
authorise('core.manage', 'com_media') && (!$asset or ( !$user->authorise('core.edit', $asset) && !$user->authorise('core.create', $asset) && count($user->getAuthorisedCategories($asset, 'core.create')) == 0) && !($user->id==$author && $user->authorise('core.edit.own', $asset)))) { return JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR')); } $params = JComponentHelper::getParams('com_media'); // Load the admin HTML view require_once JPATH_COMPONENT.'/helpers/media.php'; // Set the path definitions $popup_upload = JRequest::getCmd('pop_up',null); $path = "file_path"; $view = JRequest::getCmd('view'); if (substr(strtolower($view),0,6) == "images" || $popup_upload == 1) { $path = "image_path"; } define('COM_MEDIA_BASE', JPATH_ROOT.'/'.$params->get($path, 'images')); define('COM_MEDIA_BASEURL', JURI::root().$params->get($path, 'images')); // Include dependancies jimport('joomla.application.component.controller'); $controller = JController::getInstance('Media'); $controller->execute(JRequest::getCmd('task')); $controller->redirect();