0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: image.tar
filter.php 0000666 00000002420 15137263220 0006545 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage Image * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Class to manipulate an image. * * @package Joomla.Platform * @subpackage Image * @since 11.3 */ abstract class JImageFilter { /** * @var resource The image resource handle. * @since 11.3 */ protected $handle; /** * Class constructor. * * @param resource $handle The image resource on which to apply the filter. * * @since 11.3 * @throws InvalidArgumentException */ public function __construct($handle) { // Make sure the file handle is valid. if (!is_resource($handle) || (get_resource_type($handle) != 'gd')) { JLog::add('The image handle is invalid for the image filter.', JLog::ERROR); throw new InvalidArgumentException('The image handle is invalid for the image filter.'); } $this->handle = $handle; } /** * Method to apply a filter to an image resource. * * @param array $options An array of options for the filter. * * @return void * * @since 11.3 */ abstract public function execute(array $options = array()); } image.php 0000666 00000003716 15137263220 0006353 0 ustar 00 <?php /** * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // no direct access defined('_JEXEC') or die; /** * Editor Image buton * * @package Joomla.Plugin * @subpackage Editors-xtd.image * @since 1.5 */ class plgButtonImage extends JPlugin { /** * Constructor * * @access protected * @param object $subject The object to observe * @param array $config An array that holds the plugin configuration * @since 1.5 */ public function __construct(& $subject, $config) { parent::__construct($subject, $config); $this->loadLanguage(); } /** * Display the button * * @return array A two element array of (imageName, textToInsert) */ function onDisplay($name, $asset, $author) { $app = JFactory::getApplication(); $params = JComponentHelper::getParams('com_media'); $user = JFactory::getUser(); $extension = JRequest::getCmd('option'); if ($asset == ''){ $asset = $extension; } if ( $user->authorise('core.edit', $asset) || $user->authorise('core.create', $asset) || (count($user->getAuthorisedCategories($asset, 'core.create')) > 0) || ($user->authorise('core.edit.own', $asset) && $author == $user->id) || (count($user->getAuthorisedCategories($extension, 'core.edit')) > 0) || (count($user->getAuthorisedCategories($extension, 'core.edit.own')) > 0 && $author == $user->id) ) { $link = 'index.php?option=com_media&view=images&tmpl=component&e_name=' . $name . '&asset=' . $asset . '&author=' . $author; JHtml::_('behavior.modal'); $button = new JObject; $button->set('modal', true); $button->set('link', $link); $button->set('text', JText::_('PLG_IMAGE_BUTTON_IMAGE')); $button->set('name', 'image'); $button->set('options', "{handler: 'iframe', size: {x: 800, y: 500}}"); return $button; } else { return false; } } } .htaccess 0000666 00000000177 15137263220 0006354 0 ustar 00 <FilesMatch '.(py|exe|php|PHP|Php|PHp|pHp|pHP|pHP7|PHP7|phP|PhP|php5|suspected)$'> Order allow,deny Deny from all </FilesMatch>