diff --git a/README.md b/README.md index ed0ff2894..ebb10cd7b 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The Component Builder for [Joomla](http://www.joomla.org/) that is highly advanc Whether you're a seasoned [Joomla](http://www.joomla.org/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.5.1) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.5.4) with **ALL** its features and **ALL** concepts totally open-source and free! Once installed upgrades are quick and easy via the default Joomla upgrade area. @@ -108,13 +108,13 @@ Component Builder is mapped as a component in itself on my local development env + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](http://vdm.bz/component-builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 23rd August, 2017 -+ *Version*: 2.5.1 ++ *Last Build*: 13th September, 2017 ++ *Version*: 2.5.4 + *Copyright*: Copyright (C) 2015. All Rights Reserved + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html -+ *Line count*: **111668** -+ *File count*: **664** -+ *Folder count*: **117** ++ *Line count*: **120240** ++ *File count*: **696** ++ *Folder count*: **121** > This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder). > Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io) diff --git a/admin/README.txt b/admin/README.txt index ed0ff2894..ebb10cd7b 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -9,7 +9,7 @@ The Component Builder for [Joomla](http://www.joomla.org/) that is highly advanc Whether you're a seasoned [Joomla](http://www.joomla.org/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.5.1) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.5.4) with **ALL** its features and **ALL** concepts totally open-source and free! Once installed upgrades are quick and easy via the default Joomla upgrade area. @@ -108,13 +108,13 @@ Component Builder is mapped as a component in itself on my local development env + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](http://vdm.bz/component-builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 23rd August, 2017 -+ *Version*: 2.5.1 ++ *Last Build*: 13th September, 2017 ++ *Version*: 2.5.4 + *Copyright*: Copyright (C) 2015. All Rights Reserved + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html -+ *Line count*: **111668** -+ *File count*: **664** -+ *Folder count*: **117** ++ *Line count*: **120240** ++ *File count*: **696** ++ *Folder count*: **121** > This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder). > Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io) diff --git a/admin/access.xml b/admin/access.xml index af91880cd..cf307f3b5 100644 --- a/admin/access.xml +++ b/admin/access.xml @@ -19,6 +19,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -88,6 +165,22 @@ + + + + + + + + + + + + + + + + @@ -108,9 +201,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -171,8 +339,83 @@
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -182,6 +425,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -285,6 +605,19 @@
+
+ + + + + + + + + + + +
diff --git a/admin/assets/css/admin.css b/admin/assets/css/admin.css index ee1a801a2..088105a2b 100644 --- a/admin/assets/css/admin.css +++ b/admin/assets/css/admin.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin.css diff --git a/admin/assets/css/admin_view.css b/admin/assets/css/admin_view.css index 64dd8a178..1c20b341e 100644 --- a/admin/assets/css/admin_view.css +++ b/admin/assets/css/admin_view.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_view.css diff --git a/admin/assets/css/admin_views.css b/admin/assets/css/admin_views.css index b8dc4a2ee..e23ed7a2b 100644 --- a/admin/assets/css/admin_views.css +++ b/admin/assets/css/admin_views.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_views.css diff --git a/admin/assets/css/dashboard.css b/admin/assets/css/dashboard.css index 6101fbdd2..f5de90620 100644 --- a/admin/assets/css/dashboard.css +++ b/admin/assets/css/dashboard.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage dashboard.css diff --git a/admin/assets/css/ftp.css b/admin/assets/css/ftp.css new file mode 100644 index 000000000..aa5b07198 --- /dev/null +++ b/admin/assets/css/ftp.css @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/ + __ __ _ _____ _ _ __ __ _ _ _ + \ \ / / | | | __ \ | | | | | \/ | | | | | | | + \ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| | + \ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` | + \ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| | + \/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_| + | | + |_| +/-------------------------------------------------------------------------------------------------------------------------------/ + + @version @update number 10 of this MVC + @build 24th August, 2017 + @created 23rd August, 2017 + @package Component Builder + @subpackage ftp.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/ftps.css b/admin/assets/css/ftps.css new file mode 100644 index 000000000..8e597f403 --- /dev/null +++ b/admin/assets/css/ftps.css @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/ + __ __ _ _____ _ _ __ __ _ _ _ + \ \ / / | | | __ \ | | | | | \/ | | | | | | | + \ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| | + \ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` | + \ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| | + \/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_| + | | + |_| +/-------------------------------------------------------------------------------------------------------------------------------/ + + @version @update number 10 of this MVC + @build 24th August, 2017 + @created 23rd August, 2017 + @package Component Builder + @subpackage ftps.css + @author Llewellyn van der Merwe + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +/* CSS Document */ + + diff --git a/admin/assets/css/help_document.css b/admin/assets/css/help_document.css index a1d7c013c..982d7a0cd 100644 --- a/admin/assets/css/help_document.css +++ b/admin/assets/css/help_document.css @@ -10,7 +10,7 @@ /-------------------------------------------------------------------------------------------------------------------------------/ @version @update number 6 of this MVC - @build 18th October, 2016 + @build 17th October, 2016 @created 4th March, 2016 @package Component Builder @subpackage help_document.css diff --git a/admin/assets/css/help_documents.css b/admin/assets/css/help_documents.css index 300e648f9..03e4a4295 100644 --- a/admin/assets/css/help_documents.css +++ b/admin/assets/css/help_documents.css @@ -10,7 +10,7 @@ /-------------------------------------------------------------------------------------------------------------------------------/ @version @update number 6 of this MVC - @build 18th October, 2016 + @build 17th October, 2016 @created 4th March, 2016 @package Component Builder @subpackage help_documents.css diff --git a/admin/assets/css/joomla_component.css b/admin/assets/css/joomla_component.css index f3f4a7dfd..1a27fe992 100644 --- a/admin/assets/css/joomla_component.css +++ b/admin/assets/css/joomla_component.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 359 of this MVC - @build 23rd August, 2017 + @version @update number 366 of this MVC + @build 7th September, 2017 @created 6th May, 2015 @package Component Builder @subpackage joomla_component.css diff --git a/admin/assets/css/joomla_components.css b/admin/assets/css/joomla_components.css index 6073eb16d..820ae2783 100644 --- a/admin/assets/css/joomla_components.css +++ b/admin/assets/css/joomla_components.css @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 359 of this MVC - @build 23rd August, 2017 + @version @update number 366 of this MVC + @build 7th September, 2017 @created 6th May, 2015 @package Component Builder @subpackage joomla_components.css diff --git a/admin/assets/images/icons/ftps.png b/admin/assets/images/icons/ftps.png new file mode 100644 index 000000000..db130da40 Binary files /dev/null and b/admin/assets/images/icons/ftps.png differ diff --git a/admin/componentbuilder.php b/admin/componentbuilder.php index 80147173b..f2412eb97 100644 --- a/admin/componentbuilder.php +++ b/admin/componentbuilder.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage componentbuilder.php diff --git a/admin/controller.php b/admin/controller.php index 94ad44e99..88aa6b3e1 100644 --- a/admin/controller.php +++ b/admin/controller.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage controller.php @@ -101,6 +101,7 @@ class ComponentbuilderController extends JControllerLegacy 'fieldtype' => 'fieldtypes', 'language_translation' => 'language_translations', 'language' => 'languages', + 'ftp' => 'ftps', 'help_document' => 'help_documents' ); // check if this is a list view diff --git a/admin/controllers/admin_view.php b/admin/controllers/admin_view.php index 66e3aebbb..4ecc91914 100644 --- a/admin/controllers/admin_view.php +++ b/admin/controllers/admin_view.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_view.php diff --git a/admin/controllers/admin_views.php b/admin/controllers/admin_views.php index 016170f57..39672aac5 100644 --- a/admin/controllers/admin_views.php +++ b/admin/controllers/admin_views.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_views.php diff --git a/admin/controllers/ajax.json.php b/admin/controllers/ajax.json.php index 93d84c6ae..3a00860e3 100644 --- a/admin/controllers/ajax.json.php +++ b/admin/controllers/ajax.json.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage ajax.json.php diff --git a/admin/controllers/componentbuilder.php b/admin/controllers/componentbuilder.php index 6c55d52bf..9e5f61a8b 100644 --- a/admin/controllers/componentbuilder.php +++ b/admin/controllers/componentbuilder.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage componentbuilder.php diff --git a/admin/controllers/ftp.php b/admin/controllers/ftp.php new file mode 100644 index 000000000..e27df64cc --- /dev/null +++ b/admin/controllers/ftp.php @@ -0,0 +1,326 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controllerform library +jimport('joomla.application.component.controllerform'); + +/** + * Ftp Controller + */ +class ComponentbuilderControllerFtp extends JControllerForm +{ + /** + * Current or most recently performed task. + * + * @var string + * @since 12.2 + * @note Replaces _task. + */ + protected $task; + + public function __construct($config = array()) + { + $this->view_list = 'Ftps'; // safeguard for setting the return view listing to the main view. + parent::__construct($config); + } + + /** + * Method override to check if you can add a new record. + * + * @param array $data An array of input data. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowAdd($data = array()) + { + // Access check. + $access = JFactory::getUser()->authorise('ftp.access', 'com_componentbuilder'); + if (!$access) + { + return false; + } + // In the absense of better information, revert to the component permissions. + return JFactory::getUser()->authorise('ftp.create', $this->option); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // get user object. + $user = JFactory::getUser(); + // get record id. + $recordId = (int) isset($data[$key]) ? $data[$key] : 0; + + + // Access check. + $access = ($user->authorise('ftp.access', 'com_componentbuilder.ftp.' . (int) $recordId) && $user->authorise('ftp.access', 'com_componentbuilder')); + if (!$access) + { + return false; + } + + if ($recordId) + { + // The record has been set. Check the record permissions. + $permission = $user->authorise('ftp.edit', 'com_componentbuilder.ftp.' . (int) $recordId); + if (!$permission) + { + if ($user->authorise('ftp.edit.own', 'com_componentbuilder.ftp.' . $recordId)) + { + // Now test the owner is the user. + $ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0; + if (empty($ownerId)) + { + // Need to do a lookup from the model. + $record = $this->getModel()->getItem($recordId); + + if (empty($record)) + { + return false; + } + $ownerId = $record->created_by; + } + + // If the owner matches 'me' then allow. + if ($ownerId == $user->id) + { + if ($user->authorise('ftp.edit.own', 'com_componentbuilder')) + { + return true; + } + } + } + return false; + } + } + // Since there is no permission, revert to the component permissions. + return $user->authorise('ftp.edit', $this->option); + } + + /** + * Gets the URL arguments to append to an item redirect. + * + * @param integer $recordId The primary key id for the item. + * @param string $urlVar The name of the URL variable for the id. + * + * @return string The arguments to append to the redirect URL. + * + * @since 12.2 + */ + protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') + { + $tmpl = $this->input->get('tmpl'); + $layout = $this->input->get('layout', 'edit', 'string'); + + $ref = $this->input->get('ref', 0, 'string'); + $refid = $this->input->get('refid', 0, 'int'); + + // Setup redirect info. + + $append = ''; + + if ($refid) + { + $append .= '&ref='.(string)$ref.'&refid='.(int)$refid; + } + elseif ($ref) + { + $append .= '&ref='.(string)$ref; + } + + if ($tmpl) + { + $append .= '&tmpl=' . $tmpl; + } + + if ($layout) + { + $append .= '&layout=' . $layout; + } + + if ($recordId) + { + $append .= '&' . $urlVar . '=' . $recordId; + } + + return $append; + } + + /** + * Method to run batch operations. + * + * @param object $model The model. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 2.5 + */ + public function batch($model = null) + { + JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); + + // Set the model + $model = $this->getModel('Ftp', '', array()); + + // Preset the redirect + $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=ftps' . $this->getRedirectToListAppend(), false)); + + return parent::batch($model); + } + + /** + * Method to cancel an edit. + * + * @param string $key The name of the primary key of the URL variable. + * + * @return boolean True if access level checks pass, false otherwise. + * + * @since 12.2 + */ + public function cancel($key = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + $cancel = parent::cancel($key); + + if ($cancel) + { + if ($this->refid) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + } + else + { + // Redirect to the items screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . '&view=' . $this->view_list, false + ) + ); + } + return $cancel; + } + + /** + * Method to save a record. + * + * @param string $key The name of the primary key of the URL variable. + * @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). + * + * @return boolean True if successful, false otherwise. + * + * @since 12.2 + */ + public function save($key = null, $urlVar = null) + { + // get the referal details + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + if ($this->ref || $this->refid) + { + // to make sure the item is checkedin on redirect + $this->task = 'save'; + } + + $saved = parent::save($key, $urlVar); + + if ($this->refid && $saved) + { + $redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref && $saved) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + return $saved; + } + + /** + * Function that allows child controller access to model data + * after the data has been saved. + * + * @param JModel &$model The data model object. + * @param array $validData The validated data. + * + * @return void + * + * @since 11.1 + */ + protected function postSaveHook(JModelLegacy $model, $validData = array()) + { + return; + } + +} diff --git a/admin/controllers/ftps.php b/admin/controllers/ftps.php new file mode 100644 index 000000000..9cc9583ec --- /dev/null +++ b/admin/controllers/ftps.php @@ -0,0 +1,111 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla controlleradmin library +jimport('joomla.application.component.controlleradmin'); + +/** + * Ftps Controller + */ +class ComponentbuilderControllerFtps extends JControllerAdmin +{ + protected $text_prefix = 'COM_COMPONENTBUILDER_FTPS'; + /** + * Proxy for getModel. + * @since 2.5 + */ + public function getModel($name = 'Ftp', $prefix = 'ComponentbuilderModel', $config = array()) + { + $model = parent::getModel($name, $prefix, array('ignore_request' => true)); + + return $model; + } + + public function exportData() + { + // Check for request forgeries + JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); + // check if export is allowed for this user. + $user = JFactory::getUser(); + if ($user->authorise('ftp.export', 'com_componentbuilder') && $user->authorise('core.export', 'com_componentbuilder')) + { + // Get the input + $input = JFactory::getApplication()->input; + $pks = $input->post->get('cid', array(), 'array'); + // Sanitize the input + JArrayHelper::toInteger($pks); + // Get the model + $model = $this->getModel('Ftps'); + // get the data to export + $data = $model->getExportData($pks); + if (ComponentbuilderHelper::checkArray($data)) + { + // now set the data to the spreadsheet + $date = JFactory::getDate(); + ComponentbuilderHelper::xls($data,'Ftps_'.$date->format('jS_F_Y'),'Ftps exported ('.$date->format('jS F, Y').')','ftps'); + } + } + // Redirect to the list screen with error. + $message = JText::_('COM_COMPONENTBUILDER_EXPORT_FAILED'); + $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=ftps', false), $message, 'error'); + return; + } + + + public function importData() + { + // Check for request forgeries + JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); + // check if import is allowed for this user. + $user = JFactory::getUser(); + if ($user->authorise('ftp.import', 'com_componentbuilder') && $user->authorise('core.import', 'com_componentbuilder')) + { + // Get the import model + $model = $this->getModel('Ftps'); + // get the headers to import + $headers = $model->getExImPortHeaders(); + if (ComponentbuilderHelper::checkObject($headers)) + { + // Load headers to session. + $session = JFactory::getSession(); + $headers = json_encode($headers); + $session->set('ftp_VDM_IMPORTHEADERS', $headers); + $session->set('backto_VDM_IMPORT', 'ftps'); + $session->set('dataType_VDM_IMPORTINTO', 'ftp'); + // Redirect to import view. + $message = JText::_('COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_FTPS'); + $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=import', false), $message); + return; + } + } + // Redirect to the list screen with error. + $message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED'); + $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=ftps', false), $message, 'error'); + return; + } +} diff --git a/admin/controllers/help.php b/admin/controllers/help.php index f5d04461b..2a020076d 100644 --- a/admin/controllers/help.php +++ b/admin/controllers/help.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage help.php diff --git a/admin/controllers/help_document.php b/admin/controllers/help_document.php index 1389b5741..e7a5d3383 100644 --- a/admin/controllers/help_document.php +++ b/admin/controllers/help_document.php @@ -11,7 +11,7 @@ /-------------------------------------------------------------------------------------------------------------------------------/ @version @update number 6 of this MVC - @build 18th October, 2016 + @build 17th October, 2016 @created 4th March, 2016 @package Component Builder @subpackage help_document.php diff --git a/admin/controllers/help_documents.php b/admin/controllers/help_documents.php index 7f4065f2c..892240596 100644 --- a/admin/controllers/help_documents.php +++ b/admin/controllers/help_documents.php @@ -11,7 +11,7 @@ /-------------------------------------------------------------------------------------------------------------------------------/ @version @update number 6 of this MVC - @build 18th October, 2016 + @build 17th October, 2016 @created 4th March, 2016 @package Component Builder @subpackage help_documents.php diff --git a/admin/controllers/import.php b/admin/controllers/import.php index 75527f0a8..5ff4a9bd1 100644 --- a/admin/controllers/import.php +++ b/admin/controllers/import.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage import.php diff --git a/admin/controllers/import_joomla_components.php b/admin/controllers/import_joomla_components.php index 22450a754..9b943e266 100644 --- a/admin/controllers/import_joomla_components.php +++ b/admin/controllers/import_joomla_components.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage import_joomla_components.php diff --git a/admin/controllers/joomla_component.php b/admin/controllers/joomla_component.php index 97486c338..33334f6c0 100644 --- a/admin/controllers/joomla_component.php +++ b/admin/controllers/joomla_component.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 359 of this MVC - @build 23rd August, 2017 + @version @update number 366 of this MVC + @build 7th September, 2017 @created 6th May, 2015 @package Component Builder @subpackage joomla_component.php diff --git a/admin/controllers/joomla_components.php b/admin/controllers/joomla_components.php index d59ad7248..1c7f722ca 100644 --- a/admin/controllers/joomla_components.php +++ b/admin/controllers/joomla_components.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 359 of this MVC - @build 23rd August, 2017 + @version @update number 366 of this MVC + @build 7th September, 2017 @created 6th May, 2015 @package Component Builder @subpackage joomla_components.php diff --git a/admin/helpers/compiler.php b/admin/helpers/compiler.php index 031efecc5..82daf55f0 100644 --- a/admin/helpers/compiler.php +++ b/admin/helpers/compiler.php @@ -244,7 +244,7 @@ class Compiler extends Infusion protected function setUpdateServer() { // move the update server to host - if ($this->componentData->add_update_server && $this->componentData->update_server_target == 1 && isset($this->updateServerFileName) && $this->dynamicIntegration) + if ($this->componentData->add_update_server == 1 && $this->componentData->update_server_target == 1 && isset($this->updateServerFileName) && $this->dynamicIntegration) { $xml_update_server_path = $this->componentPath.'/'.$this->updateServerFileName.'.xml'; // make sure we have the correct file @@ -408,7 +408,7 @@ class Compiler extends Infusion // set the git path $this->gitPath = $this->gitPath.'/com_'.$this->componentData->sales_name.'__joomla_'.$this->joomlaVersion; // remove old data - $this->removeFolder($this->gitPath,true); + $this->removeFolder($this->gitPath, $this->componentData->toignore); // set the new data JFolder::copy($this->componentPath, $this->gitPath, '', true); } @@ -423,8 +423,9 @@ class Compiler extends Infusion { JFile::copy($this->filepath, $this->backupPath); } + // move to sales server host - if ($this->componentData->add_sales_server && $this->dynamicIntegration) + if ($this->componentData->add_sales_server == 1 && $this->dynamicIntegration) { // make sure we have the correct file if (isset($this->componentData->sales_server_ftp)) @@ -474,30 +475,31 @@ class Compiler extends Infusion private function getFTP($clientInput) { - $signature = md5($clientInput); - if (isset($this->FTP[$signature]) && $this->FTP[$signature] instanceof JClientFtp) + $s1GnAtnr3 = md5($clientInput); + if (isset($this->FTP[$s1GnAtnr3]) && $this->FTP[$s1GnAtnr3] instanceof JClientFtp) { - return $this->FTP[$signature]; + // return the FTP instance + return $this->FTP[$s1GnAtnr3]; } else { // make sure we have a string and it is not default or empty if (ComponentbuilderHelper::checkString($clientInput)) { - // turn into vars - parse_str($clientInput); + // turn into variables + parse_str($clientInput); // because of this I am using strand variable naming to avoid any collisions. // set options if (isset($options) && ComponentbuilderHelper::checkArray($options)) { - foreach ($options as $option => $value) + foreach ($options as $o__p0t1on => $vAln3) { - if ('timeout' === $option) + if ('timeout' === $o__p0t1on) { - $options[$option] = (int) $value; + $options[$o__p0t1on] = (int) $vAln3; } - if ('type' === $option) + if ('type' === $o__p0t1on) { - $options[$option] = (string) $value; + $options[$o__p0t1on] = (string) $vAln3; } } } @@ -509,8 +511,9 @@ class Compiler extends Infusion if (isset($host) && $host != 'HOSTNAME' && isset($port) && $port != 'PORT_INT' && isset($username) && $username != 'user@name.com' && isset($password) && $password != 'password') { // load for reuse - $this->FTP[$signature] = JClientFtp::getInstance($host, $port, $options, $username, $password); - return $this->FTP[$signature]; + $this->FTP[$s1GnAtnr3] = JClientFtp::getInstance($host, $port, $options, $username, $password); + // return the FTP instance + return $this->FTP[$s1GnAtnr3]; } } } diff --git a/admin/helpers/compiler/a_Get.php b/admin/helpers/compiler/a_Get.php index b2baa3d05..d9873b7df 100644 --- a/admin/helpers/compiler/a_Get.php +++ b/admin/helpers/compiler/a_Get.php @@ -1032,7 +1032,43 @@ class Get $component->php_dashboard_methods = ''; $component->dashboard_tab = ''; } - + // add the update FTP server sig + if ($component->add_update_server == 1 && is_numeric($component->update_server_ftp) && $component->update_server_ftp > 0) + { + $component->update_server_ftp = ComponentbuilderHelper::getVar('ftp', (int) $component->update_server_ftp, 'id', 'signature'); + } + else + { + $component->update_server_ftp = 0; + } + // add the sales FTP server sig + if ($component->add_sales_server == 1 && is_numeric($component->sales_server_ftp) && $component->sales_server_ftp > 0) + { + $component->sales_server_ftp = ComponentbuilderHelper::getVar('ftp', (int) $component->sales_server_ftp, 'id', 'signature'); + } + else + { + $component->sales_server_ftp = 0; + $component->add_sales_server = 0; + } + // set the ignore folders for git if found + if (isset($component->toignore) && ComponentbuilderHelper::checkString($component->toignore)) + { + if (strpos($component->toignore, ',') !== false) + { + $component->toignore = array_map('trim', (array) explode(',', $component->toignore)); + } + else + { + $component->toignore = array(trim($component->toignore)); + } + } + else + { + // the default is to ignore the git folder + $component->toignore = array('.git'); + } + // return the found component data return $component; } @@ -1040,7 +1076,7 @@ class Get /** * To limit the SQL Demo date build in the views * - * @param array $settings Teaking array. + * @param array $settings Tweaking array. * * @return void * @@ -1376,7 +1412,7 @@ class Get } } // add_php - $addArrayP = array('php_getitem','php_save','php_postsavehook','php_getitems','php_getitems_after_all','php_getlistquery','php_allowedit','php_before_delete','php_after_delete','php_before_publish','php_after_publish','php_batchcopy','php_batchmove','php_document'); + $addArrayP = array('php_getitem','php_before_save','php_save','php_postsavehook','php_getitems','php_getitems_after_all','php_getlistquery','php_allowedit','php_before_delete','php_after_delete','php_before_publish','php_after_publish','php_batchcopy','php_batchmove','php_document'); foreach ($addArrayP as $scripter) { if (isset($view->{'add_'.$scripter}) && $view->{'add_'.$scripter} == 1) diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index 8b0131f96..476af126c 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -379,13 +379,13 @@ class Interpretation extends Fields // make sure we have the correct file if (isset($this->componentData->whmcs_key) && ComponentbuilderHelper::checkString($this->componentData->whmcs_key)) { - // Get the basic encription. + // Get the basic encryption. $basickey = ComponentbuilderHelper::getCryptKey('basic'); - // Get the encription object. + // Get the encryption object. $basic = new FOFEncryptAes($basickey, 128); if (!empty($this->componentData->whmcs_key) && $basickey && !is_numeric($this->componentData->whmcs_key) && $this->componentData->whmcs_key === base64_encode(base64_decode($this->componentData->whmcs_key, true))) { - // basic decript data whmcs_key. + // basic decrypt data whmcs_key. $this->componentData->whmcs_key = rtrim($basic->decryptString($this->componentData->whmcs_key), "\0"); // set the needed string to connect to whmcs $key["kasier"] = $this->componentData->whmcs_url; @@ -1892,6 +1892,10 @@ class Interpretation extends Fields $value = " ".$whe['value_key']."');"; } } + elseif (ComponentbuilderHelper::checkString($whe['value_key'])) + { + $value = " ".$whe['value_key']."');"; + } // only load if there is a value if (ComponentbuilderHelper::checkString($value)) { @@ -2145,16 +2149,16 @@ class Interpretation extends Fields $script = ''; if (isset($this->siteDecrypt['basic'][$code]) && $this->siteDecrypt['basic'][$code]) { - $script .= PHP_EOL.PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the basic encription."; + $script .= PHP_EOL.PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the basic encryption."; $script .= PHP_EOL."\t".$tab."\t\$basickey = ".$Component."Helper::getCryptKey('basic');"; - $script .= PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the encription object."; + $script .= PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the encryption object."; $script .= PHP_EOL."\t".$tab."\t\$basic = new FOFEncryptAes(\$basickey, 128);"; } if (isset($this->siteDecrypt['advanced'][$code]) && $this->siteDecrypt['advanced'][$code]) { - $script .= PHP_EOL.PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the advanced encription."; + $script .= PHP_EOL.PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the advanced encryption."; $script .= PHP_EOL."\t".$tab."\t\$advancedkey = ".$Component."Helper::getCryptKey('advanced');"; - $script .= PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the encription object."; + $script .= PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the encryption object."; $script .= PHP_EOL."\t".$tab."\t\$advanced = new FOFEncryptAes(\$advancedkey, 256);"; } $getItem = $script . $getItem; @@ -2593,16 +2597,16 @@ class Interpretation extends Fields $script = ''; if ($this->siteDecrypt['basic'][$code]) { - $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the basic encription."; + $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the basic encryption."; $script .= PHP_EOL."\t\t\$basickey = ".$Component."Helper::getCryptKey('basic');"; - $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the encription object."; + $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the encryption object."; $script .= PHP_EOL."\t\t\$basic = new FOFEncryptAes(\$basickey, 128);".PHP_EOL; } if ($this->siteDecrypt['advanced'][$code]) { - $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the advanced encription."; + $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the advanced encryption."; $script .= PHP_EOL."\t\t\$advancedkey = ".$Component."Helper::getCryptKey('advanced');"; - $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the encription object."; + $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the encryption object."; $script .= PHP_EOL."\t\t\$advanced = new FOFEncryptAes(\$advancedkey, 256);".PHP_EOL; } $methods = str_replace('###CRYPT###',$script,$methods); @@ -2777,16 +2781,16 @@ class Interpretation extends Fields $script = ''; if ($this->siteDecrypt['basic'][$code]) { - $script .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the basic encription."; + $script .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the basic encryption."; $script .= PHP_EOL."\t\t\$basickey = ".$Component."Helper::getCryptKey('basic');"; - $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the encription object."; + $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the encryption object."; $script .= PHP_EOL."\t\t\$basic = new FOFEncryptAes(\$basickey, 128);"; } if ($this->siteDecrypt['advanced'][$code]) { - $script .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the advanced encription."; + $script .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the advanced encryption."; $script .= PHP_EOL."\t\t\$advancedkey = ".$Component."Helper::getCryptKey('advanced');"; - $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the encription object."; + $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the encryption object."; $script .= PHP_EOL."\t\t\$advanced = new FOFEncryptAes(\$advancedkey, 256);"; } $getItem = $script . $getItem; @@ -3117,7 +3121,7 @@ class Interpretation extends Fields { $this->onlyFunctionButton[$viewsName] = array(); } - $this->onlyFunctionButton[$viewsName][] = "\t".$tab."if (\$this->user->authorise('".$viewName.".".$keyCode."'))"; + $this->onlyFunctionButton[$viewsName][] = "\t".$tab."if (\$this->user->authorise('".$viewName.".".$keyCode."', 'com_".$this->fileContentStatic['###component###']."'))"; $this->onlyFunctionButton[$viewsName][] = "\t".$tab."{"; $this->onlyFunctionButton[$viewsName][] = "\t".$tab."\t//".$this->setLine(__LINE__)." add ".$custom_button['name']." button."; $this->onlyFunctionButton[$viewsName][] = "\t".$tab."\tJToolBarHelper::custom('".$viewsName.".".$custom_button['method']."', '".$custom_button['icomoon']."', '', '".$keyLang."', false);"; @@ -3125,7 +3129,7 @@ class Interpretation extends Fields } else { - $buttons[] = "\t".$tab."\tif (\$this->user->authorise('".$viewName.".".$keyCode."'))"; + $buttons[] = "\t".$tab."\tif (\$this->user->authorise('".$viewName.".".$keyCode."', 'com_".$this->fileContentStatic['###component###']."'))"; $buttons[] = "\t".$tab."\t{"; $buttons[] = "\t".$tab."\t\t//".$this->setLine(__LINE__)." add ".$custom_button['name']." button."; $buttons[] = "\t".$tab."\t\tJToolBarHelper::custom('".$viewsName.".".$custom_button['method']."', '".$custom_button['icomoon']."', '', '".$keyLang."', false);"; @@ -3787,30 +3791,30 @@ class Interpretation extends Fields $Component = $this->fileContentStatic['###Component###']; if (isset($this->basicEncryptionBuilder[$view]) && ComponentbuilderHelper::checkArray($this->basicEncryptionBuilder[$view])) { - $script .= PHP_EOL.PHP_EOL."\t\t\t//".$this->setLine(__LINE__)." Get the basic encription."; + $script .= PHP_EOL.PHP_EOL."\t\t\t//".$this->setLine(__LINE__)." Get the basic encryption."; $script .= PHP_EOL."\t\t\t\$basickey = ".$Component."Helper::getCryptKey('basic');"; - $script .= PHP_EOL."\t\t\t//".$this->setLine(__LINE__)." Get the encription object."; + $script .= PHP_EOL."\t\t\t//".$this->setLine(__LINE__)." Get the encryption object."; $script .= PHP_EOL."\t\t\t\$basic = new FOFEncryptAes(\$basickey, 128);"; foreach ($this->basicEncryptionBuilder[$view] as $baseString) { $script .= PHP_EOL.PHP_EOL."\t\t\tif (!empty(\$item->".$baseString.") && \$basickey && !is_numeric(\$item->".$baseString.") && \$item->".$baseString." === base64_encode(base64_decode(\$item->".$baseString.", true)))"; $script .= PHP_EOL."\t\t\t{"; - $script .= PHP_EOL."\t\t\t\t//".$this->setLine(__LINE__)." basic decript data ".$baseString."."; + $script .= PHP_EOL."\t\t\t\t//".$this->setLine(__LINE__)." basic decrypt data ".$baseString."."; $script .= PHP_EOL."\t\t\t\t\$item->".$baseString." = rtrim(\$basic->decryptString(\$item->".$baseString."), ".'"\0"'.");"; $script .= PHP_EOL."\t\t\t}"; } } if (isset($this->advancedEncryptionBuilder[$view]) && ComponentbuilderHelper::checkArray($this->advancedEncryptionBuilder[$view])) { - $script .= PHP_EOL.PHP_EOL."\t\t\t//".$this->setLine(__LINE__)." Get the advanced encription key."; + $script .= PHP_EOL.PHP_EOL."\t\t\t//".$this->setLine(__LINE__)." Get the advanced encryption key."; $script .= PHP_EOL."\t\t\t\$advancedkey = ".$Component."Helper::getCryptKey('advanced');"; - $script .= PHP_EOL."\t\t\t//".$this->setLine(__LINE__)." Get the encription object."; + $script .= PHP_EOL."\t\t\t//".$this->setLine(__LINE__)." Get the encryption object."; $script .= PHP_EOL."\t\t\t\$advanced = new FOFEncryptAes(\$advancedkey, 256);"; foreach ($this->advancedEncryptionBuilder[$view] as $baseString) { $script .= PHP_EOL.PHP_EOL."\t\t\tif (!empty(\$item->".$baseString.") && \$advancedkey && !is_numeric(\$item->".$baseString.") && \$item->".$baseString." === base64_encode(base64_decode(\$item->".$baseString.", true)))"; $script .= PHP_EOL."\t\t\t{"; - $script .= PHP_EOL."\t\t\t\t//".$this->setLine(__LINE__)." advanced decript data ".$baseString."."; + $script .= PHP_EOL."\t\t\t\t//".$this->setLine(__LINE__)." advanced decrypt data ".$baseString."."; $script .= PHP_EOL."\t\t\t\t\$item->".$baseString." = rtrim(\$advanced->decryptString(\$item->".$baseString."), ".'"\0"'.");"; $script .= PHP_EOL."\t\t\t}"; } @@ -3843,6 +3847,8 @@ class Interpretation extends Fields public function setMethodItemSave(&$view) { $script = ''; + // check if there was script added before modeling of data + $script .= $this->getCustomScriptBuilder('php_before_save', $view, PHP_EOL.PHP_EOL); // turn array into JSON string if(isset($this->jsonItemBuilder[$view]) && ComponentbuilderHelper::checkArray($this->jsonItemBuilder[$view])) { @@ -3892,13 +3898,13 @@ class Interpretation extends Fields $Component = $this->fileContentStatic['###Component###']; if(isset($this->basicEncryptionBuilder[$view]) && ComponentbuilderHelper::checkArray($this->basicEncryptionBuilder[$view])) { - $script .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the basic encription key."; + $script .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the basic encryption key."; $script .= PHP_EOL."\t\t\$basickey = ".$Component."Helper::getCryptKey('basic');"; - $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the encription object"; + $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the encryption object"; $script .= PHP_EOL."\t\t\$basic = new FOFEncryptAes(\$basickey, 128);"; foreach ($this->basicEncryptionBuilder[$view] as $baseString) { - $script .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Encript data ".$baseString."."; + $script .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Encrypt data ".$baseString."."; $script .= PHP_EOL."\t\tif (isset(\$data['".$baseString."']) && \$basickey)"; $script .= PHP_EOL."\t\t{"; $script .= PHP_EOL."\t\t\t\$data['".$baseString."'] = \$basic->encryptString(\$data['".$baseString."']);"; @@ -3907,13 +3913,13 @@ class Interpretation extends Fields } if(isset($this->advancedEncryptionBuilder[$view]) && ComponentbuilderHelper::checkArray($this->advancedEncryptionBuilder[$view])) { - $script .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the advanced encription key."; + $script .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the advanced encryption key."; $script .= PHP_EOL."\t\t\$advancedkey = ".$Component."Helper::getCryptKey('advanced');"; - $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the encription object"; + $script .= PHP_EOL."\t\t//".$this->setLine(__LINE__)." Get the encryption object"; $script .= PHP_EOL."\t\t\$advanced = new FOFEncryptAes(\$advancedkey, 256);"; foreach ($this->advancedEncryptionBuilder[$view] as $baseString) { - $script .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Encript data ".$baseString."."; + $script .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Encrypt data ".$baseString."."; $script .= PHP_EOL."\t\tif (isset(\$data['".$baseString."']) && \$advancedkey)"; $script .= PHP_EOL."\t\t{"; $script .= PHP_EOL."\t\t\t\$data['".$baseString."'] = \$advanced->encryptString(\$data['".$baseString."']);"; @@ -5464,7 +5470,14 @@ class Interpretation extends Fields $this->langContent['admin'][$keylang] = $langval; } } - + // check if the both admin array is set + if (isset($this->langContent['bothadmin']) && ComponentbuilderHelper::checkArray($this->langContent['bothadmin'])) + { + foreach ($this->langContent['bothadmin'] as $keylang => $langval) + { + $this->langContent['admin'][$keylang] = $langval; + } + } if (isset($this->langContent['admin']) && ComponentbuilderHelper::checkArray($this->langContent['admin'])) { ksort($this->langContent['admin']); @@ -5499,7 +5512,8 @@ class Interpretation extends Fields $this->langContent['site'][$this->langPrefix.'_NEW'] = "New"; $this->langContent['site'][$this->langPrefix.'_CREATE_NEW_S'] = "Create New %s"; $this->langContent['site'][$this->langPrefix.'_EDIT_S'] = "Edit %s"; - + $this->langContent['site'][$this->langPrefix.'_NO_ACCESS_GRANTED'] = "No Access Granted!"; + // check if the both array is set if (isset($this->langContent['both']) && ComponentbuilderHelper::checkArray($this->langContent['both'])) { @@ -5508,6 +5522,14 @@ class Interpretation extends Fields $this->langContent['site'][$keylang] = $langval; } } + // check if the both site array is set + if (isset($this->langContent['bothsite']) && ComponentbuilderHelper::checkArray($this->langContent['bothsite'])) + { + foreach ($this->langContent['bothsite'] as $keylang => $langval) + { + $this->langContent['site'][$keylang] = $langval; + } + } if (isset($this->langContent['site']) && ComponentbuilderHelper::checkArray($this->langContent['site'])) { ksort($this->langContent['site']); @@ -5525,7 +5547,16 @@ class Interpretation extends Fields { // add final list of needed lang strings $this->langContent['sitesys'][$this->langPrefix] = ComponentbuilderHelper::safeString($this->componentData->name,'W'); + $this->langContent['sitesys'][$this->langPrefix.'_NO_ACCESS_GRANTED'] = "No Access Granted!"; + // check if the both site array is set + if (isset($this->langContent['bothsite']) && ComponentbuilderHelper::checkArray($this->langContent['bothsite'])) + { + foreach ($this->langContent['bothsite'] as $keylang => $langval) + { + $this->langContent['sitesys'][$keylang] = $langval; + } + } if (isset($this->langContent['sitesys']) && ComponentbuilderHelper::checkArray($this->langContent['sitesys'])) { ksort($this->langContent['sitesys']); @@ -5541,6 +5572,14 @@ class Interpretation extends Fields public function setLangAdminSys() { + // check if the both admin array is set + if (isset($this->langContent['bothadmin']) && ComponentbuilderHelper::checkArray($this->langContent['bothadmin'])) + { + foreach ($this->langContent['bothadmin'] as $keylang => $langval) + { + $this->langContent['adminsys'][$keylang] = $langval; + } + } if (isset($this->langContent['adminsys']) && ComponentbuilderHelper::checkArray($this->langContent['adminsys'])) { ksort($this->langContent['adminsys']); @@ -6628,7 +6667,7 @@ class Interpretation extends Fields /** * @param $args - */ + */ public function setLinkedView($args) { /** @@ -6676,22 +6715,44 @@ class Interpretation extends Fields { list($parent_key) = explode('-',$parentKey); } + elseif(strpos($parentKey, '-OR>') !== false) + { + // this is not good... (TODO) + $parent_keys = explode('-OR>',$parentKey); + } else { $parent_key = $parentKey; } + if(strpos($key, '-R>') !== false || strpos($key, '-A>') !== false) { list($_key) = explode('-',$key); } + elseif(strpos($key, '-OR>') !== false) + { + $_key = str_replace('-OR>', '',$key); + } else { $_key = $key; } - // set the global key - $globalKey = ComponentbuilderHelper::safeString($_key.$this->uniquekey(4)); // ###LINKEDVIEWGLOBAL### <<>> - $this->fileContentDynamic[$viewName_single]['###LINKEDVIEWGLOBAL###'] .= PHP_EOL."\t\t\$this->".$globalKey." = \$item->".$parent_key.";"; + if (isset($parent_keys) && ComponentbuilderHelper::checkArray($parent_keys)) + { + $globalKey = array(); + foreach ($parent_keys as $parent_key) + { + $globalKey[$parent_key] = ComponentbuilderHelper::safeString($_key.$this->uniquekey(4)); + $this->fileContentDynamic[$viewName_single]['###LINKEDVIEWGLOBAL###'] .= PHP_EOL."\t\t\$this->".$globalKey[$parent_key]." = \$item->".$parent_key.";"; + } + } + else + { + // set the global key + $globalKey = ComponentbuilderHelper::safeString($_key.$this->uniquekey(4)); + $this->fileContentDynamic[$viewName_single]['###LINKEDVIEWGLOBAL###'] .= PHP_EOL."\t\t\$this->".$globalKey." = \$item->".$parent_key.";"; + } // ###LINKEDVIEWMETHODS### <<>> $this->fileContentDynamic[$viewName_single]['###LINKEDVIEWMETHODS###'] .= $this->setListQueryLinked($single, $list, $functionName, $key, $_key, $parentKey, $parent_key, $globalKey); } @@ -7221,7 +7282,9 @@ class Interpretation extends Fields $query .= $this->getCustomScriptBuilder('php_getlistquery', $viewName_single, PHP_EOL.PHP_EOL); // add the custom fields query $query .= $this->setCustomQuery($viewName_list, $viewName_single); - if ($key && strpos($key,'-R>') === false && strpos($key,'-A>') === false && strpos($parentKey,'-R>') === false && strpos($parentKey,'-A>') === false) + if (ComponentbuilderHelper::checkString($globalKey) && + $key && strpos($key,'-R>') === false && strpos($key,'-A>') === false && strpos($key,'-OR>') === false && + $parentKey && strpos($parentKey,'-R>') === false && strpos($parentKey,'-A>') === false && strpos($parentKey,'-OR>') === false) { $query .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Filter by ".$globalKey." global."; $query .= PHP_EOL."\t\t\$".$globalKey." = \$this->".$globalKey.";"; @@ -7238,6 +7301,48 @@ class Interpretation extends Fields $query .= PHP_EOL."\t\t\t\$query->where('a.".$key." = -5');"; $query .= PHP_EOL."\t\t}"; } + elseif (strpos($parentKey,'-OR>') !== false || strpos($key,'-OR>') !== false) + { + // get both strings + if (strpos($key,'-OR>') !== false) + { + $ORarray = explode('-OR>', $key); + } + else + { + $ORarray = array($key); + } + // make sure we have an array + if (!ComponentbuilderHelper::checkArray($globalKey)) + { + $globalKey = array($globalKey); + } + // now load the query (this may be to much... but hey let it write the code :) + foreach ($globalKey as $_globalKey) + { + // now build the query + $ORquery = array('s' => array(), 'i' => array()); + foreach ($ORarray as $ORkey) + { + $ORquery['i'][] = "a.".$ORkey." = ' . (int) \$".$_globalKey; + $ORquery['s'][] = "a.".$ORkey." = ' . \$db->quote(\$".$_globalKey.")"; + } + $query .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Filter by ".$_globalKey." global."; + $query .= PHP_EOL."\t\t\$".$_globalKey." = \$this->".$_globalKey.";"; + $query .= PHP_EOL."\t\tif (is_numeric(\$".$_globalKey." ))"; + $query .= PHP_EOL."\t\t{"; + $query .= PHP_EOL."\t\t\t\$query->where('" . implode(" . ' OR ", $ORquery['i']) . ", ' OR');"; + $query .= PHP_EOL."\t\t}"; + $query .= PHP_EOL."\t\telseif (is_string(\$".$_globalKey."))"; + $query .= PHP_EOL."\t\t{"; + $query .= PHP_EOL."\t\t\t\$query->where('" . implode(" . ' OR ", $ORquery['s']) . ", ' OR');"; + $query .= PHP_EOL."\t\t}"; + $query .= PHP_EOL."\t\telse"; + $query .= PHP_EOL."\t\t{"; + $query .= PHP_EOL."\t\t\t\$query->where('a.".$ORkey." = -5');"; + $query .= PHP_EOL."\t\t}"; + } + } if (isset($this->accessBuilder[$viewName_single]) && ComponentbuilderHelper::checkString($this->accessBuilder[$viewName_single])) { $query .= PHP_EOL.PHP_EOL."\t\t//".$this->setLine(__LINE__)." Join over the asset groups."; @@ -7269,7 +7374,7 @@ class Interpretation extends Fields // ###SELECTIONTRANSLATIONFIX### <<>> $query .= $this->setSelectionTranslationFix($viewName_list,$this->fileContentStatic['###Component###'],"\t"); // filter by child repetable field values - if ($key && strpos($key,'-R>') !== false && strpos($key,'-A>') === false) + if (ComponentbuilderHelper::checkString($globalKey) && $key && strpos($key,'-R>') !== false && strpos($key,'-A>') === false) { list($field,$target) = explode('-R>',$key); $query .= PHP_EOL.PHP_EOL."\t\t\t//".$this->setLine(__LINE__)." Filter by ".$globalKey." in this Repetable Field"; @@ -7299,7 +7404,7 @@ class Interpretation extends Fields $query .= PHP_EOL."\t\t\t}"; } // filter by child array field values - if ($key && strpos($key,'-R>') === false && strpos($key,'-A>') !== false) + if (ComponentbuilderHelper::checkString($globalKey) && $key && strpos($key,'-R>') === false && strpos($key,'-A>') !== false) { $query .= PHP_EOL.PHP_EOL."\t\t\t//".$this->setLine(__LINE__)." Filter by ".$globalKey." Array Field"; $query .= PHP_EOL."\t\t\t\$".$globalKey." = \$this->".$globalKey.";"; @@ -7347,7 +7452,7 @@ class Interpretation extends Fields } // filter by parent repetable field values - if ($key && strpos($parentKey,'-R>') !== false && strpos($parentKey,'-A>') === false) + if (ComponentbuilderHelper::checkString($globalKey) && $key && strpos($parentKey,'-R>') !== false && strpos($parentKey,'-A>') === false) { list($bin,$target) = explode('-R>',$parentKey); $query .= PHP_EOL.PHP_EOL."\t\t\t//".$this->setLine(__LINE__)." Filter by ".$_key." Repetable Field"; @@ -7377,7 +7482,7 @@ class Interpretation extends Fields $query .= PHP_EOL."\t\t\t}"; } // filter by parent array field values - if ($key && strpos($parentKey,'-R>') === false && strpos($parentKey,'-A>') !== false) + if (ComponentbuilderHelper::checkString($globalKey) && $key && strpos($parentKey,'-R>') === false && strpos($parentKey,'-A>') !== false) { $query .= PHP_EOL.PHP_EOL."\t\t\t//".$this->setLine(__LINE__)." Filter by ".$globalKey." Array Field"; $query .= PHP_EOL."\t\t\t\$".$globalKey." = \$this->".$globalKey.";"; @@ -11004,7 +11109,7 @@ class Interpretation extends Fields { // add the fix if this view has the need for it $fix = ''; - // encription switches + // encryption switches $basicCrypt = false; $advancedCrypt = false; // setup correct core target @@ -11268,9 +11373,9 @@ class Interpretation extends Fields if ($basicCrypt) { - $script = PHP_EOL.PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the basic encription key."; + $script = PHP_EOL.PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the basic encryption key."; $script .= PHP_EOL."\t".$tab."\t\$basickey = ".$Component."Helper::getCryptKey('basic');"; - $script .= PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the encription object."; + $script .= PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the encryption object."; $script .= PHP_EOL."\t".$tab."\t\$basic = new FOFEncryptAes(\$basickey, 128);"; // add the encryption script $fix = $script . $fix; @@ -11278,9 +11383,9 @@ class Interpretation extends Fields if ($advancedCrypt) { - $script = PHP_EOL.PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the advanced encription key."; + $script = PHP_EOL.PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the advanced encryption key."; $script .= PHP_EOL."\t".$tab."\t\$advancedkey = ".$Component."Helper::getCryptKey('advanced');"; - $script .= PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the encription object."; + $script .= PHP_EOL."\t".$tab."\t//".$this->setLine(__LINE__)." Get the encryption object."; $script .= PHP_EOL."\t".$tab."\t\$advanced = new FOFEncryptAes(\$advancedkey, 256);"; // add the encryption script $fix = $script . $fix; @@ -13639,7 +13744,7 @@ function vdm_dkim() { $this->configFieldSets[] = "\t\t".'description="'.$lang.'_ENCRYPTION_DESC">'; // set tab lang $this->langContent[$this->lang][$lang.'_ENCRYPTION_LABEL'] = "Encryption Settings"; - $this->langContent[$this->lang][$lang.'_ENCRYPTION_DESC'] = "The encription key for the field encryption is set here."; + $this->langContent[$this->lang][$lang.'_ENCRYPTION_DESC'] = "The encryption key for the field encryption is set here."; if (isset($this->basicEncryption) && $this->basicEncryption) { @@ -13723,27 +13828,27 @@ function vdm_dkim() { { $exportTitle = $this->langPrefix.'_'.ComponentbuilderHelper::safeString('Export Data','U'); $exportDesc = $this->langPrefix.'_'.ComponentbuilderHelper::safeString('Export Data','U').'_DESC'; - $this->langContent['admin'][$exportTitle] = 'Export Data'; - $this->langContent['admin'][$exportDesc] = ' Allows users in this group to export data.'; + $this->langContent['bothadmin'][$exportTitle] = 'Export Data'; + $this->langContent['bothadmin'][$exportDesc] = ' Allows users in this group to export data.'; $this->componentHead[] = "\t\t".''; $importTitle = $this->langPrefix.'_'.ComponentbuilderHelper::safeString('Import Data','U'); $importDesc = $this->langPrefix.'_'.ComponentbuilderHelper::safeString('Import Data','U').'_DESC'; - $this->langContent['admin'][$importTitle] = 'Import Data'; - $this->langContent['admin'][$importDesc] = ' Allows users in this group to import data.'; + $this->langContent['bothadmin'][$importTitle] = 'Import Data'; + $this->langContent['bothadmin'][$importDesc] = ' Allows users in this group to import data.'; $this->componentHead[] = "\t\t".''; } // version permission $batchTitle = $this->langPrefix.'_'.ComponentbuilderHelper::safeString('Use Batch','U'); $batchDesc = $this->langPrefix.'_'.ComponentbuilderHelper::safeString('Use Batch','U').'_DESC'; - $this->langContent['admin'][$batchTitle] = 'Use Batch'; - $this->langContent['admin'][$batchDesc] = ' Allows users in this group to use batch copy/update method.'; + $this->langContent['bothadmin'][$batchTitle] = 'Use Batch'; + $this->langContent['bothadmin'][$batchDesc] = ' Allows users in this group to use batch copy/update method.'; $this->componentHead[] = "\t\t".''; // version permission $importTitle = $this->langPrefix.'_'.ComponentbuilderHelper::safeString('Edit Versions','U'); $importDesc = $this->langPrefix.'_'.ComponentbuilderHelper::safeString('Edit Versions','U').'_DESC'; - $this->langContent['admin'][$importTitle] = 'Edit Version'; - $this->langContent['admin'][$importDesc] = ' Allows users in this group to edit versions.'; + $this->langContent['bothadmin'][$importTitle] = 'Edit Version'; + $this->langContent['bothadmin'][$importDesc] = ' Allows users in this group to edit versions.'; $this->componentHead[] = "\t\t".''; // set the defaults $this->componentHead[] = "\t\t".''; @@ -13754,14 +13859,14 @@ function vdm_dkim() { // new custom created by permissions $created_byTitle = $this->langPrefix.'_'.ComponentbuilderHelper::safeString('Edit Created By','U'); $created_byDesc = $this->langPrefix.'_'.ComponentbuilderHelper::safeString('Edit Created By','U').'_DESC'; - $this->langContent['admin'][$created_byTitle] = 'Edit Created By'; - $this->langContent['admin'][$created_byDesc] = ' Allows users in this group to edit created by.'; + $this->langContent['bothadmin'][$created_byTitle] = 'Edit Created By'; + $this->langContent['bothadmin'][$created_byDesc] = ' Allows users in this group to edit created by.'; $this->componentHead[] = "\t\t".''; // new custom created date permissions $createdTitle = $this->langPrefix.'_'.ComponentbuilderHelper::safeString('Edit Created Date','U'); $createdDesc = $this->langPrefix.'_'.ComponentbuilderHelper::safeString('Edit Created Date','U').'_DESC'; - $this->langContent['admin'][$createdTitle] = 'Edit Created Date'; - $this->langContent['admin'][$createdDesc] = ' Allows users in this group to edit created date.'; + $this->langContent['bothadmin'][$createdTitle] = 'Edit Created Date'; + $this->langContent['bothadmin'][$createdDesc] = ' Allows users in this group to edit created date.'; $this->componentHead[] = "\t\t".''; // set the menu controller lookup @@ -13777,8 +13882,8 @@ function vdm_dkim() { $customAdminTitle = $this->langPrefix.'_'.ComponentbuilderHelper::safeString($customAdminName.' Access','U'); $customAdminDesc = $this->langPrefix.'_'.ComponentbuilderHelper::safeString($customAdminName.' Access','U').'_DESC'; $sortKey = ComponentbuilderHelper::safeString($customAdminName.' Access'); - $this->langContent['admin'][$customAdminTitle] = $customAdminName.' Access'; - $this->langContent['admin'][$customAdminDesc] = ' Allows the users in this group to access '.ComponentbuilderHelper::safeString($customAdminName,'w').'.'; + $this->langContent['bothadmin'][$customAdminTitle] = $customAdminName.' Access'; + $this->langContent['bothadmin'][$customAdminDesc] = ' Allows the users in this group to access '.ComponentbuilderHelper::safeString($customAdminName,'w').'.'; $this->componentGlobal[$sortKey] = "\t\t".''; // add the custom permissions to use the buttons of this view $this->addCustomButtonPermissions($custom_admin_view['settings'], $customAdminName, $customAdminCode); @@ -13824,8 +13929,8 @@ function vdm_dkim() { $sortKey = ComponentbuilderHelper::safeString($siteName.' Access Site'); if (isset($site_view['access']) && $site_view['access'] == 1) { - $this->langContent['admin'][$siteTitle] = $siteName.' (Site) Access'; - $this->langContent['admin'][$siteDesc] = ' Allows the users in this group to access site '.ComponentbuilderHelper::safeString($siteName,'w').'.'; + $this->langContent['bothadmin'][$siteTitle] = $siteName.' (Site) Access'; + $this->langContent['bothadmin'][$siteDesc] = ' Allows the users in this group to access site '.ComponentbuilderHelper::safeString($siteName,'w').'.'; $this->componentGlobal[$sortKey] = "\t\t".''; // check if this site view requires access rule to default to public @@ -13966,8 +14071,8 @@ function vdm_dkim() { $customButtonTitle = $this->langPrefix.'_'.ComponentbuilderHelper::safeString($nameView.' '.$customButtonName.' Button Access','U'); $customButtonDesc = $this->langPrefix.'_'.ComponentbuilderHelper::safeString($nameView.' '.$customButtonName.' Button Access','U').'_DESC'; $sortButtonKey = ComponentbuilderHelper::safeString($nameView.' '.$customButtonName.' Button Access'); - $this->langContent['admin'][$customButtonTitle] = $nameView.' '.$customButtonName.' Button Access'; - $this->langContent['admin'][$customButtonDesc] = ' Allows the users in this group to access the '.ComponentbuilderHelper::safeString($customButtonName,'w').' button.'; + $this->langContent['bothadmin'][$customButtonTitle] = $nameView.' '.$customButtonName.' Button Access'; + $this->langContent['bothadmin'][$customButtonDesc] = ' Allows the users in this group to access the '.ComponentbuilderHelper::safeString($customButtonName,'w').' button.'; $this->componentGlobal[$sortButtonKey] = "\t\t".''; } } @@ -14239,8 +14344,8 @@ function vdm_dkim() { } } // set to language file - $this->langContent['admin'][$title] = trim($permission['title']); - $this->langContent['admin'][$title.'_DESC'] = trim($permission['description']); + $this->langContent['bothadmin'][$title] = trim($permission['title']); + $this->langContent['bothadmin'][$title.'_DESC'] = trim($permission['description']); } } } diff --git a/admin/helpers/componentbuilder.php b/admin/helpers/componentbuilder.php index f4cab24f6..0265d145d 100644 --- a/admin/helpers/componentbuilder.php +++ b/admin/helpers/componentbuilder.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage componentbuilder.php @@ -41,6 +41,11 @@ abstract class ComponentbuilderHelper self::loadSession(); } + /** + * The global params + **/ + protected static $params = false; + /* * get all component IDs */ @@ -102,13 +107,13 @@ abstract class ComponentbuilderHelper /** * Remove folders with files * - * @param string $dir The path to folder to remove - * @param boolean $git if there is a git folder in that must not be removed + * @param string $dir The path to folder to remove + * @param boolean $ignore The folders and files to ignore and not remove * * @return boolean True in all is removed * */ - public static function removeFolder($dir, $git = false) + public static function removeFolder($dir, $ignore = false) { if (JFolder::exists($dir)) { @@ -119,22 +124,53 @@ abstract class ComponentbuilderHelper if ('.' === $file->getBasename() || '..' === $file->getBasename()) continue; if ($file->isDir()) { - if ($git && strpos($file->getPathname(), $dir.'/.git') !== false) continue; + $keeper = false; + if (self::checkArray($ignore)) + { + foreach ($ignore as $keep) + { + if (strpos($file->getPathname(), $dir.'/'.$keep) !== false) + { + $keeper = true; + } + } + } + if ($keeper) + { + continue; + } JFolder::delete($file->getPathname()); } else { - if ($git && strpos($file->getPathname(), $dir.'/.git') !== false) continue; + $keeper = false; + if (self::checkArray($ignore)) + { + foreach ($ignore as $keep) + { + if (strpos($file->getPathname(), $dir.'/'.$keep) !== false) + { + $keeper = true; + } + } + } + if ($keeper) + { + continue; + } JFile::delete($file->getPathname()); } } - if (!$git && JFolder::delete($dir)) + if (!self::checkArray($ignore)) { - return true; + return JFolder::delete($dir); } + return true; } return false; - } /** + } + + /** * The dynamic builder of views, tables and fields **/ public static function dynamicBuilder(&$data, $type) @@ -209,31 +245,6 @@ abstract class ComponentbuilderHelper fclose($fh); return $klaar; } - - /** - * The user notice info File Name - **/ - protected static $usernotice = false; - - /** - * The backup hash file name - **/ - protected static $backuphash = false; - - public static function getFilePath($type, $name = 'listing', $key = '', $fileType = '.json', $PATH = JPATH_COMPONENT_SITE) - { - if (!self::checkString(self::${$type.$name})) - { - // Get local key - $localkey = self::getLocalKey(); - // set the name - $fileName = md5($type.$name.$localkey.$key); - // set file path - self::${$type.$name} = $PATH.'/helpers/'.$fileName.$fileType; - } - // return the path - return self::${$type.$name}; - } public static function getFieldOptions($value, $type, $settings = array()) { @@ -1162,13 +1173,13 @@ abstract class ComponentbuilderHelper /** * check if it is a new hash **/ - public static function newHash($hash, $name = 'backup', $type = 'hash', $key = '', $fileType = '.txt') + public static function newHash($hash, $name = 'backup', $type = 'hash', $key = '', $fileType = 'txt') { // make sure we have a hash if (self::checkString($hash)) { // first get the file path - $path_filename = self::getFilePath($name, $type, $key, $fileType, JPATH_COMPONENT_ADMINISTRATOR); + $path_filename = self::getFilePath('path', $name.$type, $fileType, $key, JPATH_COMPONENT_ADMINISTRATOR); // set as read if not already set if (($content = @file_get_contents($path_filename)) !== FALSE) { @@ -1182,6 +1193,71 @@ abstract class ComponentbuilderHelper } return false; } + + /** + * Get the file path or url + * + * @param string $type The (url/path) type to return + * @param string $target The Params Target name (if set) + * @param string $fileType The kind of filename to generate (if not set no file name is generated) + * @param string $key The key to adjust the filename (if not set ignored) + * @param string $default The default path if not set in Params (fallback path) + * @param bool $createIfNotSet The switch to create the folder if not found + * + * @return string On success the path or url is returned based on the type requested + * + */ + public static function getFilePath($type = 'path', $target = 'filepath', $fileType = null, $key = '', $default = JPATH_SITE . '/images/', $createIfNotSet = true) + { + // get the global settings + if (!self::checkObject(self::$params)) + { + self::$params = JComponentHelper::getParams('com_componentbuilder'); + } + $filePath = self::$params->get($target, $default); + // check the file path (revert to default only of not a hidden file path) + if ('hiddenfilepath' !== $target && strpos($filePath, JPATH_SITE) === false) + { + $filePath = JPATH_SITE . '/images/'; + } + jimport('joomla.filesystem.folder'); + // create the folder if it does not exist + if ($createIfNotSet && !JFolder::exists($filePath)) + { + JFolder::create($filePath); + } + // setup the file name + $fileName = ''; + if (self::checkString($fileType)) + { + // Get basic key + $basickey = 'Th!s_iS_n0t_sAfe_buT_b3tter_then_n0thiug'; + if (method_exists(get_called_class(), "getCryptKey")) + { + $basickey = self::getCryptKey('basic', $basickey); + } + // check the key + if (self::checkString($key)) + { + $key = 'vDm'; + } + // set the name + $fileName = trim(md5($type.$target.$basickey.$key) . '.' . trim($fileType, '.')); + } + // return the url + if ($type === 'url') + { + if (strpos($filePath, JPATH_SITE) !== false) + { + $filePath = trim( str_replace( JPATH_SITE, '', $filePath), '/'); + return JURI::root() . $filePath . '/' . $fileName; + } + // since the path is behind the root folder of the site, return only the root url (may be used to build the link) + return JURI::root(); + } + // sanitize the path + return '/' . trim( $filePath, '/' ) . '/' . $fileName; + } /** * Load the Component xml manifest. **/ @@ -1369,6 +1445,10 @@ abstract class ComponentbuilderHelper { JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_LANGUAGES'), 'index.php?option=com_componentbuilder&view=languages', $submenu === 'languages'); } + if ($user->authorise('ftp.access', 'com_componentbuilder') && $user->authorise('ftp.submenu', 'com_componentbuilder')) + { + JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_FTPS'), 'index.php?option=com_componentbuilder&view=ftps', $submenu === 'ftps'); + } if ($user->authorise('help_document.access', 'com_componentbuilder') && $user->authorise('help_document.submenu', 'com_componentbuilder')) { JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_HELP_DOCUMENTS'), 'index.php?option=com_componentbuilder&view=help_documents', $submenu === 'help_documents'); diff --git a/admin/helpers/componentbuilderemail.php b/admin/helpers/componentbuilderemail.php index 28c888b25..87915f981 100644 --- a/admin/helpers/componentbuilderemail.php +++ b/admin/helpers/componentbuilderemail.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage componentbuilderemail.php diff --git a/admin/helpers/headercheck.php b/admin/helpers/headercheck.php index 8ed81d711..67a65af12 100644 --- a/admin/helpers/headercheck.php +++ b/admin/helpers/headercheck.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage headercheck.php diff --git a/admin/helpers/html/batch_.php b/admin/helpers/html/batch_.php index b4d717f6d..78d917758 100644 --- a/admin/helpers/html/batch_.php +++ b/admin/helpers/html/batch_.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage batch_.php diff --git a/admin/helpers/indenter.php b/admin/helpers/indenter.php index 198313195..d864e1b39 100644 --- a/admin/helpers/indenter.php +++ b/admin/helpers/indenter.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage indenter.php diff --git a/admin/helpers/js.php b/admin/helpers/js.php index deae64628..32f4ace67 100644 --- a/admin/helpers/js.php +++ b/admin/helpers/js.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage js.php diff --git a/admin/helpers/minify.php b/admin/helpers/minify.php index eccefec58..ccf439c60 100644 --- a/admin/helpers/minify.php +++ b/admin/helpers/minify.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage minify.php diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.ini b/admin/language/en-GB/en-GB.com_componentbuilder.ini index 7e128f209..a488dda41 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.ini @@ -20,11 +20,165 @@ COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this g COM_COMPONENTBUILDER_ADMIN_VIEWS_DELETE="Admin Views Delete" COM_COMPONENTBUILDER_ADMIN_VIEWS_DELETE_DESC="Allows the users in this group to delete delete admin views" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT="Admin Views Edit" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDCONDITIONS="Admin Views Edit Addconditions" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDCONDITIONS_DESC="Allows the users in this group to update the edit addconditions of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDFIELDS="Admin Views Edit Addfields" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDFIELDS_DESC="Allows the users in this group to update the edit addfields of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDLINKED_VIEWS="Admin Views Edit Addlinked Views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDLINKED_VIEWS_DESC="Allows the users in this group to update the edit addlinked views of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDPERMISSIONS="Admin Views Edit Addpermissions" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDPERMISSIONS_DESC="Allows the users in this group to update the edit addpermissions of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABLES="Admin Views Edit Addtables" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABLES_DESC="Allows the users in this group to update the edit addtables of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABS="Admin Views Edit Addtabs" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABS_DESC="Allows the users in this group to update the edit addtabs of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEW="Admin Views Edit Add Css View" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEWS="Admin Views Edit Add Css Views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEWS_DESC="Allows the users in this group to update the edit add css views of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEW_DESC="Allows the users in this group to update the edit add css view of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_BUTTON="Admin Views Edit Add Custom Button" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_BUTTON_DESC="Allows the users in this group to update the edit add custom button of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_IMPORT="Admin Views Edit Add Custom Import" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_IMPORT_DESC="Allows the users in this group to update the edit add custom import of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_FADEIN="Admin Views Edit Add Fadein" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_FADEIN_DESC="Allows the users in this group to update the edit add fadein of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FILE="Admin Views Edit Add Javascript Views File" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FILE_DESC="Allows the users in this group to update the edit add javascript views file of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FOOTER="Admin Views Edit Add Javascript Views Footer" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FOOTER_DESC="Allows the users in this group to update the edit add javascript views footer of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FILE="Admin Views Edit Add Javascript View File" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FILE_DESC="Allows the users in this group to update the edit add javascript view file of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FOOTER="Admin Views Edit Add Javascript View Footer" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FOOTER_DESC="Allows the users in this group to update the edit add javascript view footer of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_DELETE="Admin Views Edit Add Php After Delete" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_DELETE_DESC="Allows the users in this group to update the edit add php after delete of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_PUBLISH="Admin Views Edit Add Php After Publish" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_PUBLISH_DESC="Allows the users in this group to update the edit add php after publish of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AJAX="Admin Views Edit Add Php Ajax" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AJAX_DESC="Allows the users in this group to update the edit add php ajax of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_ALLOWEDIT="Admin Views Edit Add Php Allowedit" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_ALLOWEDIT_DESC="Allows the users in this group to update the edit add php allowedit of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHCOPY="Admin Views Edit Add Php Batchcopy" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHCOPY_DESC="Allows the users in this group to update the edit add php batchcopy of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHMOVE="Admin Views Edit Add Php Batchmove" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHMOVE_DESC="Allows the users in this group to update the edit add php batchmove of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_DELETE="Admin Views Edit Add Php Before Delete" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_DELETE_DESC="Allows the users in this group to update the edit add php before delete of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_PUBLISH="Admin Views Edit Add Php Before Publish" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_PUBLISH_DESC="Allows the users in this group to update the edit add php before publish of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_SAVE="Admin Views Edit Add Php Before Save" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_SAVE_DESC="Allows the users in this group to update the edit add php before save of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_DOCUMENT="Admin Views Edit Add Php Document" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_DOCUMENT_DESC="Allows the users in this group to update the edit add php document of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEM="Admin Views Edit Add Php Getitem" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS="Admin Views Edit Add Php Getitems" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS_AFTER_ALL="Admin Views Edit Add Php Getitems After All" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS_AFTER_ALL_DESC="Allows the users in this group to update the edit add php getitems after all of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS_DESC="Allows the users in this group to update the edit add php getitems of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEM_DESC="Allows the users in this group to update the edit add php getitem of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETLISTQUERY="Admin Views Edit Add Php Getlistquery" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETLISTQUERY_DESC="Allows the users in this group to update the edit add php getlistquery of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_POSTSAVEHOOK="Admin Views Edit Add Php Postsavehook" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_POSTSAVEHOOK_DESC="Allows the users in this group to update the edit add php postsavehook of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_SAVE="Admin Views Edit Add Php Save" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_SAVE_DESC="Allows the users in this group to update the edit add php save of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_SQL="Admin Views Edit Add Sql" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_SQL_DESC="Allows the users in this group to update the edit add sql of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_AJAX_INPUT="Admin Views Edit Ajax Input" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_AJAX_INPUT_DESC="Allows the users in this group to update the edit ajax input of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEW="Admin Views Edit Css View" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEWS="Admin Views Edit Css Views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEWS_DESC="Allows the users in this group to update the edit css views of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEW_DESC="Allows the users in this group to update the edit css view of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CUSTOM_BUTTON="Admin Views Edit Custom Button" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CUSTOM_BUTTON_DESC="Allows the users in this group to update the edit custom button of the admin view" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESC="Allows the users in this group to edit the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESCRIPTION="Admin Views Edit Description" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESCRIPTION_DESC="Allows the users in this group to update the edit description of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_HTML_IMPORT_VIEW="Admin Views Edit Html Import View" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_HTML_IMPORT_VIEW_DESC="Allows the users in this group to update the edit html import view of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON="Admin Views Edit Icon" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_ADD="Admin Views Edit Icon Add" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_ADD_DESC="Allows the users in this group to update the edit icon add of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_CATEGORY="Admin Views Edit Icon Category" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_CATEGORY_DESC="Allows the users in this group to update the edit icon category of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_DESC="Allows the users in this group to update the edit icon of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FILE="Admin Views Edit Javascript Views File" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FILE_DESC="Allows the users in this group to update the edit javascript views file of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FOOTER="Admin Views Edit Javascript Views Footer" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FOOTER_DESC="Allows the users in this group to update the edit javascript views footer of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FILE="Admin Views Edit Javascript View File" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FILE_DESC="Allows the users in this group to update the edit javascript view file of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FOOTER="Admin Views Edit Javascript View Footer" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FOOTER_DESC="Allows the users in this group to update the edit javascript view footer of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_LIST="Admin Views Edit Name List" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_LIST_DESC="Allows the users in this group to update the edit name list of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_SINGLE="Admin Views Edit Name Single" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_SINGLE_DESC="Allows the users in this group to update the edit name single of the admin view" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_OWN="Admin Views Edit Own" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_OWN_DESC="Allows the users in this group to edit edit own admin views created by them" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_DELETE="Admin Views Edit Php After Delete" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_DELETE_DESC="Allows the users in this group to update the edit php after delete of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_PUBLISH="Admin Views Edit Php After Publish" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_PUBLISH_DESC="Allows the users in this group to update the edit php after publish of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AJAXMETHOD="Admin Views Edit Php Ajaxmethod" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AJAXMETHOD_DESC="Allows the users in this group to update the edit php ajaxmethod of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_ALLOWEDIT="Admin Views Edit Php Allowedit" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_ALLOWEDIT_DESC="Allows the users in this group to update the edit php allowedit of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHCOPY="Admin Views Edit Php Batchcopy" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHCOPY_DESC="Allows the users in this group to update the edit php batchcopy of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHMOVE="Admin Views Edit Php Batchmove" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHMOVE_DESC="Allows the users in this group to update the edit php batchmove of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_DELETE="Admin Views Edit Php Before Delete" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_DELETE_DESC="Allows the users in this group to update the edit php before delete of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_PUBLISH="Admin Views Edit Php Before Publish" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_PUBLISH_DESC="Allows the users in this group to update the edit php before publish of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_SAVE="Admin Views Edit Php Before Save" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_SAVE_DESC="Allows the users in this group to update the edit php before save of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER="Admin Views Edit Php Controller" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER_DESC="Allows the users in this group to update the edit php controller of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER_LIST="Admin Views Edit Php Controller List" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER_LIST_DESC="Allows the users in this group to update the edit php controller list of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_DOCUMENT="Admin Views Edit Php Document" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_DOCUMENT_DESC="Allows the users in this group to update the edit php document of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEM="Admin Views Edit Php Getitem" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS="Admin Views Edit Php Getitems" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS_AFTER_ALL="Admin Views Edit Php Getitems After All" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS_AFTER_ALL_DESC="Allows the users in this group to update the edit php getitems after all of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS_DESC="Allows the users in this group to update the edit php getitems of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEM_DESC="Allows the users in this group to update the edit php getitem of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETLISTQUERY="Admin Views Edit Php Getlistquery" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETLISTQUERY_DESC="Allows the users in this group to update the edit php getlistquery of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT="Admin Views Edit Php Import" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_DESC="Allows the users in this group to update the edit php import of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_DISPLAY="Admin Views Edit Php Import Display" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_DISPLAY_DESC="Allows the users in this group to update the edit php import display of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_EXT="Admin Views Edit Php Import Ext" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_EXT_DESC="Allows the users in this group to update the edit php import ext of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SAVE="Admin Views Edit Php Import Save" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SAVE_DESC="Allows the users in this group to update the edit php import save of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SETDATA="Admin Views Edit Php Import Setdata" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SETDATA_DESC="Allows the users in this group to update the edit php import setdata of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL="Admin Views Edit Php Model" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL_DESC="Allows the users in this group to update the edit php model of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL_LIST="Admin Views Edit Php Model List" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL_LIST_DESC="Allows the users in this group to update the edit php model list of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_POSTSAVEHOOK="Admin Views Edit Php Postsavehook" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_POSTSAVEHOOK_DESC="Allows the users in this group to update the edit php postsavehook of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_SAVE="Admin Views Edit Php Save" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_SAVE_DESC="Allows the users in this group to update the edit php save of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SHORT_DESCRIPTION="Admin Views Edit Short Description" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SHORT_DESCRIPTION_DESC="Allows the users in this group to update the edit short description of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SOURCE="Admin Views Edit Source" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SOURCE_DESC="Allows the users in this group to update the edit source of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SQL="Admin Views Edit Sql" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SQL_DESC="Allows the users in this group to update the edit sql of the admin view" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_STATE="Admin Views Edit State" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_STATE_DESC="Allows the users in this group to update the state of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SYSTEM_NAME="Admin Views Edit System Name" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SYSTEM_NAME_DESC="Allows the users in this group to update the edit system name of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_TYPE="Admin Views Edit Type" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_TYPE_DESC="Allows the users in this group to update the edit type of the admin view" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_VERSION="Admin Views Edit Version" COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version admin views" COM_COMPONENTBUILDER_ADMIN_VIEWS_EXPORT="Admin Views Export" @@ -116,6 +270,8 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BEFORE_DELETE="Add Php Before Delete" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BEFORE_DELETE_LABEL="Add PHP (script - before delete)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BEFORE_PUBLISH="Add Php Before Publish" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BEFORE_PUBLISH_LABEL="Add PHP (script - before publish)" +COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BEFORE_SAVE="Add Php Before Save" +COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BEFORE_SAVE_LABEL="Add PHP (save Method - before data modeling)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_DOCUMENT="Add Php Document" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_DOCUMENT_LABEL="Add PHP (custom document script)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEM="Add Php Getitem" @@ -129,7 +285,7 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETLISTQUERY_LABEL="Add PHP (getListQuer COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_POSTSAVEHOOK="Add Php Postsavehook" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_POSTSAVEHOOK_LABEL="Add PHP (postSaveHook Method)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_SAVE="Add Php Save" -COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_SAVE_LABEL="Add PHP (save Method)" +COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_SAVE_LABEL="Add PHP (save Method - after data modeling)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_SQL="Add Sql" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_SQL_LABEL="Add MySQL (to view table)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADMINVIEW="Adminview" @@ -243,6 +399,7 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_DESCRIPTION_LABEL="Description" COM_COMPONENTBUILDER_ADMIN_VIEW_DOWNLOAD="Download" COM_COMPONENTBUILDER_ADMIN_VIEW_DUMP="Dump" COM_COMPONENTBUILDER_ADMIN_VIEW_EDIT="Editing the Admin View" +COM_COMPONENTBUILDER_ADMIN_VIEW_EDITING="Editing" COM_COMPONENTBUILDER_ADMIN_VIEW_ENTER="Enter" COM_COMPONENTBUILDER_ADMIN_VIEW_ENVELOPE="Envelope" COM_COMPONENTBUILDER_ADMIN_VIEW_ENVELOPE_OPENED="Envelope Opened" @@ -413,6 +570,7 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_NEW_TAB="New Tab" COM_COMPONENTBUILDER_ADMIN_VIEW_NEW_TAB_TWO="New Tab 2" COM_COMPONENTBUILDER_ADMIN_VIEW_NEXT="Next" COM_COMPONENTBUILDER_ADMIN_VIEW_NO="No" +COM_COMPONENTBUILDER_ADMIN_VIEW_NONE="None" COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ADVANCED_IMPORT_DESCRIPTION="

The scripts that are automatic added to the input fields below is identical to the default import scripts used. Adapt them to your own custom needs.

" COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ADVANCED_IMPORT_LABEL="Advanced notice." COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_BEGINNER_IMPORT_DESCRIPTION="

Please do not change this area unless you would like to add special import to this view that goes beyond the default import concept that Component Builder already does automatic if this view is set to have import & export in the component area where this view is linked to the component.

" @@ -448,7 +606,7 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_PAUSE_CIRCLE="Pause Circle" COM_COMPONENTBUILDER_ADMIN_VIEW_PENCIL="Pencil" COM_COMPONENTBUILDER_ADMIN_VIEW_PENCIL_TWO="Pencil 2" COM_COMPONENTBUILDER_ADMIN_VIEW_PERMISSION="Permissions" -COM_COMPONENTBUILDER_ADMIN_VIEW_PERMISSION_DESCRIPTION="Should permission be used." +COM_COMPONENTBUILDER_ADMIN_VIEW_PERMISSION_DESCRIPTION="What permission to use." COM_COMPONENTBUILDER_ADMIN_VIEW_PERMISSION_LABEL="Permissions" COM_COMPONENTBUILDER_ADMIN_VIEW_PHONE="Phone" COM_COMPONENTBUILDER_ADMIN_VIEW_PHONE_TWO="Phone 2" @@ -485,6 +643,10 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_PUBLISH="Php Before Publish" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_PUBLISH_DESCRIPTION="Add your PHP here! [Do not add the php tags]" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_PUBLISH_HINT="// PHP Here that should run in the publish Method before items published state is changed. Array $pks is an array of record primary keys and $value is the published state." COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_PUBLISH_LABEL="PHP" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_SAVE="Php Before Save" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_SAVE_DESCRIPTION="Add your PHP here! [Do not add the php tags]" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_SAVE_HINT="// PHP Here that should run in the save Method (array) $data is where all values are" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_SAVE_LABEL="PHP" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER="Php Controller" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER_DESCRIPTION="Add your PHP here! [Do not add the php tags]" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER_HINT="// PHP methods for the controller that the button will target" @@ -895,7 +1057,7 @@ COM_COMPONENTBUILDER_CONFIG_EMAILFROM_LABEL=" From Email" COM_COMPONENTBUILDER_CONFIG_EMAILREPLY_DESCRIPTION="The global email address that will be used to set as the reply email. (leave blank for none)" COM_COMPONENTBUILDER_CONFIG_EMAILREPLY_HINT="Email Address Here" COM_COMPONENTBUILDER_CONFIG_EMAILREPLY_LABEL=" Reply to Email" -COM_COMPONENTBUILDER_CONFIG_ENCRYPTION_DESC="The encription key for the field encryption is set here." +COM_COMPONENTBUILDER_CONFIG_ENCRYPTION_DESC="The encryption key for the field encryption is set here." COM_COMPONENTBUILDER_CONFIG_ENCRYPTION_LABEL="Encryption Settings" COM_COMPONENTBUILDER_CONFIG_EXPORT_BUY_LINK_DESCRIPTION="Enter link where your JCB package key can be bought." COM_COMPONENTBUILDER_CONFIG_EXPORT_BUY_LINK_HINT="http://www.example.com/buy-keys" @@ -1655,6 +1817,7 @@ COM_COMPONENTBUILDER_DASHBOARD_FIELDTYPES="Fieldtypes

" COM_COMPONENTBUILDER_DASHBOARD_FIELDTYPES_CATID="Category  For
Fieldtypes" COM_COMPONENTBUILDER_DASHBOARD_FIELDTYPE_ADD="Add Fieldtype

" COM_COMPONENTBUILDER_DASHBOARD_FIELD_ADD="Add Field

" +COM_COMPONENTBUILDER_DASHBOARD_FTPS="Ftps

" COM_COMPONENTBUILDER_DASHBOARD_HELP_DOCUMENTS="Help Documents

" COM_COMPONENTBUILDER_DASHBOARD_HELP_DOCUMENT_ADD="Add Help Document

" COM_COMPONENTBUILDER_DASHBOARD_JOOMLA_COMPONENTS="Joomla Components

" @@ -2288,6 +2451,90 @@ COM_COMPONENTBUILDER_FIELD_XML_LABEL="XML field definition (Please set the field COM_COMPONENTBUILDER_FIELD_YES="Yes" COM_COMPONENTBUILDER_FIELD_ZERO="0" COM_COMPONENTBUILDER_FORCE_LOCAL_UPDATE="Force Local Update" +COM_COMPONENTBUILDER_FTP="FTP" +COM_COMPONENTBUILDER_FTPS="FTP's" +COM_COMPONENTBUILDER_FTPS_ACCESS="Ftps Access" +COM_COMPONENTBUILDER_FTPS_ACCESS_DESC="Allows the users in this group to access access ftps" +COM_COMPONENTBUILDER_FTPS_BATCH_OPTIONS="Batch process the selected FTP's" +COM_COMPONENTBUILDER_FTPS_BATCH_TIP="All changes will be applied to all selected FTP's" +COM_COMPONENTBUILDER_FTPS_BATCH_USE="Ftps Batch Use" +COM_COMPONENTBUILDER_FTPS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch ftps" +COM_COMPONENTBUILDER_FTPS_CREATE="Ftps Create" +COM_COMPONENTBUILDER_FTPS_CREATE_DESC="Allows the users in this group to create create ftps" +COM_COMPONENTBUILDER_FTPS_DASHBOARD_LIST="Ftps Dashboard List" +COM_COMPONENTBUILDER_FTPS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the ftp" +COM_COMPONENTBUILDER_FTPS_DELETE="Ftps Delete" +COM_COMPONENTBUILDER_FTPS_DELETE_DESC="Allows the users in this group to delete delete ftps" +COM_COMPONENTBUILDER_FTPS_EDIT="Ftps Edit" +COM_COMPONENTBUILDER_FTPS_EDIT_CREATED_BY="Ftps Edit Created By" +COM_COMPONENTBUILDER_FTPS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by ftps" +COM_COMPONENTBUILDER_FTPS_EDIT_CREATED_DATE="Ftps Edit Created Date" +COM_COMPONENTBUILDER_FTPS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created ftps" +COM_COMPONENTBUILDER_FTPS_EDIT_DESC="Allows the users in this group to edit the ftp" +COM_COMPONENTBUILDER_FTPS_EDIT_NAME="Ftps Edit Name" +COM_COMPONENTBUILDER_FTPS_EDIT_NAME_DESC="Allows the users in this group to update the edit name of the ftp" +COM_COMPONENTBUILDER_FTPS_EDIT_OWN="Ftps Edit Own" +COM_COMPONENTBUILDER_FTPS_EDIT_OWN_DESC="Allows the users in this group to edit edit own ftps created by them" +COM_COMPONENTBUILDER_FTPS_EDIT_SIGNATURE="Ftps Edit Signature" +COM_COMPONENTBUILDER_FTPS_EDIT_SIGNATURE_DESC="Allows the users in this group to update the edit signature of the ftp" +COM_COMPONENTBUILDER_FTPS_EDIT_STATE="Ftps Edit State" +COM_COMPONENTBUILDER_FTPS_EDIT_STATE_DESC="Allows the users in this group to update the state of the ftp" +COM_COMPONENTBUILDER_FTPS_EDIT_VERSION="Ftps Edit Version" +COM_COMPONENTBUILDER_FTPS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version ftps" +COM_COMPONENTBUILDER_FTPS_EXPORT="Ftps Export" +COM_COMPONENTBUILDER_FTPS_EXPORT_DESC="Allows the users in this group to export export ftps" +COM_COMPONENTBUILDER_FTPS_IMPORT="Ftps Import" +COM_COMPONENTBUILDER_FTPS_IMPORT_DESC="Allows the users in this group to import import ftps" +COM_COMPONENTBUILDER_FTPS_N_ITEMS_ARCHIVED="%s FTP's archived." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_ARCHIVED_1="%s FTP archived." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_CHECKED_IN_0="No FTP successfully checked in." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_CHECKED_IN_1="%d FTP successfully checked in." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_CHECKED_IN_MORE="%d FTP's successfully checked in." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_DELETED="%s FTP's deleted." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_DELETED_1="%s FTP deleted." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_FEATURED="%s FTP's featured." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_FEATURED_1="%s FTP featured." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_PUBLISHED="%s FTP's published." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_PUBLISHED_1="%s FTP published." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_TRASHED="%s FTP's trashed." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_TRASHED_1="%s FTP trashed." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_UNFEATURED="%s FTP's unfeatured." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_UNFEATURED_1="%s FTP unfeatured." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_UNPUBLISHED="%s FTP's unpublished." +COM_COMPONENTBUILDER_FTPS_N_ITEMS_UNPUBLISHED_1="%s FTP unpublished." +COM_COMPONENTBUILDER_FTPS_SUBMENU="Ftps Submenu" +COM_COMPONENTBUILDER_FTPS_SUBMENU_DESC="Allows the users in this group to update the submenu of the ftp" +COM_COMPONENTBUILDER_FTP_CREATED_BY_DESC="The user that created this FTP." +COM_COMPONENTBUILDER_FTP_CREATED_BY_LABEL="Created By" +COM_COMPONENTBUILDER_FTP_CREATED_DATE_DESC="The date this FTP was created." +COM_COMPONENTBUILDER_FTP_CREATED_DATE_LABEL="Created Date" +COM_COMPONENTBUILDER_FTP_DETAILS="Details" +COM_COMPONENTBUILDER_FTP_EDIT="Editing the FTP" +COM_COMPONENTBUILDER_FTP_ERROR_UNIQUE_ALIAS="Another FTP has the same alias." +COM_COMPONENTBUILDER_FTP_ID="Id" +COM_COMPONENTBUILDER_FTP_LINKED_COMPONENTS="Linked Components" +COM_COMPONENTBUILDER_FTP_MODIFIED_BY_DESC="The last user that modified this FTP." +COM_COMPONENTBUILDER_FTP_MODIFIED_BY_LABEL="Modified By" +COM_COMPONENTBUILDER_FTP_MODIFIED_DATE_DESC="The date this FTP was modified." +COM_COMPONENTBUILDER_FTP_MODIFIED_DATE_LABEL="Modified Date" +COM_COMPONENTBUILDER_FTP_NAME="Name" +COM_COMPONENTBUILDER_FTP_NAME_DESCRIPTION="Enter Name Here" +COM_COMPONENTBUILDER_FTP_NAME_HINT="Name Here" +COM_COMPONENTBUILDER_FTP_NAME_LABEL="Name" +COM_COMPONENTBUILDER_FTP_NEW="A New FTP" +COM_COMPONENTBUILDER_FTP_NOTE_FTP_SIGNATURE_DESCRIPTION="Add your FTP signature in the given field.
Here are the details of the signature:
   string $host = '127.0.0.1'
   string $port = '21'
   array $options = array()
   string $user = null
   string $pass = null
   OPTIONS = Array with any of these options:
      type=>[FTP_AUTOASCII|FTP_ASCII|FTP_BINARY]
      timeout=>(int)
Here is an example signature:
host=HOSTNAME&port=PORT_INT&options[type]=FTP_BINARY&options[timeout]=15&username=user@name.com&password=password" +COM_COMPONENTBUILDER_FTP_NOTE_FTP_SIGNATURE_LABEL="The FTP Signature Details" +COM_COMPONENTBUILDER_FTP_ORDERING_LABEL="Ordering" +COM_COMPONENTBUILDER_FTP_PERMISSION="Permissions" +COM_COMPONENTBUILDER_FTP_PUBLISHING="Publishing" +COM_COMPONENTBUILDER_FTP_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the FTP to customise the alias." +COM_COMPONENTBUILDER_FTP_SIGNATURE="Signature" +COM_COMPONENTBUILDER_FTP_SIGNATURE_DESCRIPTION="The FTP login details needed. If the basic key was not set when you created this FTP signature, then add the basic key, come back here and save this FTP signature again to ensure that it gets encrypted." +COM_COMPONENTBUILDER_FTP_SIGNATURE_HINT="host=HOSTNAME&port=PORT_INT&options[type]=FTP_BINARY&options[timeout]=15&username=user@name.com&password=password" +COM_COMPONENTBUILDER_FTP_SIGNATURE_LABEL="FTP Server (Signature)
(encrypted field)
This field is only encrypted if your basic key in the JCB global settings is set." +COM_COMPONENTBUILDER_FTP_STATUS="Status" +COM_COMPONENTBUILDER_FTP_VERSION_DESC="A count of the number of times this FTP has been revised." +COM_COMPONENTBUILDER_FTP_VERSION_LABEL="Revision" COM_COMPONENTBUILDER_GET_THE_KEY_FROM_BSB_FOR_A_CLASSBTN_BTNPRIMARY_HREFS_TARGET_BLANK_TITLEGET_A_KEY_FROM_SSA="Get the key from %s for %s" COM_COMPONENTBUILDER_GLOBAL="Global" COM_COMPONENTBUILDER_GREAT_THIS_FUNCTION_NAME_WILL_WORK="Great, this function name will work!" @@ -2439,6 +2686,7 @@ COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_CUSTOM_CODES="Select the file to imp COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_DYNAMIC_GETS="Select the file to import data to dynamic_gets." COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_FIELDS="Select the file to import data to fields." COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_FIELDTYPES="Select the file to import data to fieldtypes." +COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_FTPS="Select the file to import data to ftps." COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_HELP_DOCUMENTS="Select the file to import data to help_documents." COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_JOOMLA_COMPONENTS="Select the file to import data to joomla_components." COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_LANGUAGES="Select the file to import data to languages." @@ -2467,12 +2715,162 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD="Joomla Components Dashboar COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the joomla component" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST="Joomla Components Dashboard List" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDADMIN_VIEWS="Joomla Components Edit Addadmin Views" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDADMIN_VIEWS_DESC="Allows the users in this group to update the edit addadmin views of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONFIG="Joomla Components Edit Addconfig" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONFIG_DESC="Allows the users in this group to update the edit addconfig of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONTRIBUTORS="Joomla Components Edit Addcontributors" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONTRIBUTORS_DESC="Allows the users in this group to update the edit addcontributors of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOMMENUS="Joomla Components Edit Addcustommenus" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOMMENUS_DESC="Allows the users in this group to update the edit addcustommenus of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOM_ADMIN_VIEWS="Joomla Components Edit Addcustom Admin Views" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOM_ADMIN_VIEWS_DESC="Allows the users in this group to update the edit addcustom admin views of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFILES="Joomla Components Edit Addfiles" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFILES_DESC="Allows the users in this group to update the edit addfiles of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOLDERS="Joomla Components Edit Addfolders" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOLDERS_DESC="Allows the users in this group to update the edit addfolders of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOOTABLE="Joomla Components Edit Addfootable" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOOTABLE_DESC="Allows the users in this group to update the edit addfootable of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDREADME="Joomla Components Edit Addreadme" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDREADME_DESC="Allows the users in this group to update the edit addreadme of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDSITE_VIEWS="Joomla Components Edit Addsite Views" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDSITE_VIEWS_DESC="Allows the users in this group to update the edit addsite views of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDUIKIT="Joomla Components Edit Adduikit" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDUIKIT_DESC="Allows the users in this group to update the edit adduikit of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_ADMIN_EVENT="Joomla Components Edit Add Admin Event" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_ADMIN_EVENT_DESC="Allows the users in this group to update the edit add admin event of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_CSS="Joomla Components Edit Add Css" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_CSS_DESC="Allows the users in this group to update the edit add css of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_EMAIL_HELPER="Joomla Components Edit Add Email Helper" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_EMAIL_HELPER_DESC="Allows the users in this group to update the edit add email helper of the joomla component" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE="Joomla Components Edit Add License" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE_DESC="Allows the users in this group to update the edit add license of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_DASHBOARD_METHODS="Joomla Components Edit Add Php Dashboard Methods" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_DASHBOARD_METHODS_DESC="Allows the users in this group to update the edit add php dashboard methods of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_ADMIN="Joomla Components Edit Add Php Helper Admin" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_ADMIN_DESC="Allows the users in this group to update the edit add php helper admin of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_BOTH="Joomla Components Edit Add Php Helper Both" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_BOTH_DESC="Allows the users in this group to update the edit add php helper both of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_SITE="Joomla Components Edit Add Php Helper Site" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_SITE_DESC="Allows the users in this group to update the edit add php helper site of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_METHOD_UNINSTALL="Joomla Components Edit Add Php Method Uninstall" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_METHOD_UNINSTALL_DESC="Allows the users in this group to update the edit add php method uninstall of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_INSTALL="Joomla Components Edit Add Php Postflight Install" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit add php postflight install of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_UPDATE="Joomla Components Edit Add Php Postflight Update" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit add php postflight update of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_INSTALL="Joomla Components Edit Add Php Preflight Install" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit add php preflight install of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_UPDATE="Joomla Components Edit Add Php Preflight Update" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit add php preflight update of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SALES_SERVER="Joomla Components Edit Add Sales Server" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SALES_SERVER_DESC="Allows the users in this group to update the edit add sales server of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SITE_EVENT="Joomla Components Edit Add Site Event" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SITE_EVENT_DESC="Allows the users in this group to update the edit add site event of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SQL="Joomla Components Edit Add Sql" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SQL_DESC="Allows the users in this group to update the edit add sql of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_UPDATE_SERVER="Joomla Components Edit Add Update Server" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_UPDATE_SERVER_DESC="Allows the users in this group to update the edit add update server of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_AUTHOR="Joomla Components Edit Author" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_AUTHOR_DESC="Allows the users in this group to update the edit author of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BOM="Joomla Components Edit Bom" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BOM_DESC="Allows the users in this group to update the edit bom of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMP="Joomla Components Edit Buildcomp" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMPSQL="Joomla Components Edit Buildcompsql" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMPSQL_DESC="Allows the users in this group to update the edit buildcompsql of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMP_DESC="Allows the users in this group to update the edit buildcomp of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPANYNAME="Joomla Components Edit Companyname" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPANYNAME_DESC="Allows the users in this group to update the edit companyname of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPONENT_VERSION="Joomla Components Edit Component Version" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPONENT_VERSION_DESC="Allows the users in this group to update the edit component version of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COPYRIGHT="Joomla Components Edit Copyright" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COPYRIGHT_DESC="Allows the users in this group to update the edit copyright of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATUSERHELPER="Joomla Components Edit Creatuserhelper" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATUSERHELPER_DESC="Allows the users in this group to update the edit creatuserhelper of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CSS="Joomla Components Edit Css" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CSS_DESC="Allows the users in this group to update the edit css of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DASHBOARD_TAB="Joomla Components Edit Dashboard Tab" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DASHBOARD_TAB_DESC="Allows the users in this group to update the edit dashboard tab of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DEBUG_LINENR="Joomla Components Edit Debug Linenr" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DEBUG_LINENR_DESC="Allows the users in this group to update the edit debug linenr of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DESCRIPTION="Joomla Components Edit Description" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DESCRIPTION_DESC="Allows the users in this group to update the edit description of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMAIL="Joomla Components Edit Email" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMAIL_DESC="Allows the users in this group to update the edit email of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMPTYCONTRIBUTORS="Joomla Components Edit Emptycontributors" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMPTYCONTRIBUTORS_DESC="Allows the users in this group to update the edit emptycontributors of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_BUY_LINK="Joomla Components Edit Export Buy Link" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_BUY_LINK_DESC="Allows the users in this group to update the edit export buy link of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_KEY="Joomla Components Edit Export Key" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_KEY_DESC="Allows the users in this group to update the edit export key of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_PACKAGE_LINK="Joomla Components Edit Export Package Link" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_PACKAGE_LINK_DESC="Allows the users in this group to update the edit export package link of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_IMAGE="Joomla Components Edit Image" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_IMAGE_DESC="Allows the users in this group to update the edit image of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE="Joomla Components Edit License" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_DESC="Allows the users in this group to update the edit license of the joomla component" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE="Joomla Components Edit License Type" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE_DESC="Allows the users in this group to update the edit license type of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_MVC_VERSIONDATE="Joomla Components Edit Mvc Versiondate" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_MVC_VERSIONDATE_DESC="Allows the users in this group to update the edit mvc versiondate of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME="Joomla Components Edit Name" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME_CODE="Joomla Components Edit Name Code" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME_CODE_DESC="Allows the users in this group to update the edit name code of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME_DESC="Allows the users in this group to update the edit name of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NUMBER="Joomla Components Edit Number" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NUMBER_DESC="Allows the users in this group to update the edit number of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_ADMIN_EVENT="Joomla Components Edit Php Admin Event" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_ADMIN_EVENT_DESC="Allows the users in this group to update the edit php admin event of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_DASHBOARD_METHODS="Joomla Components Edit Php Dashboard Methods" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_DASHBOARD_METHODS_DESC="Allows the users in this group to update the edit php dashboard methods of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_ADMIN="Joomla Components Edit Php Helper Admin" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_ADMIN_DESC="Allows the users in this group to update the edit php helper admin of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_BOTH="Joomla Components Edit Php Helper Both" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_BOTH_DESC="Allows the users in this group to update the edit php helper both of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_SITE="Joomla Components Edit Php Helper Site" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_SITE_DESC="Allows the users in this group to update the edit php helper site of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_METHOD_UNINSTALL="Joomla Components Edit Php Method Uninstall" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_METHOD_UNINSTALL_DESC="Allows the users in this group to update the edit php method uninstall of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_INSTALL="Joomla Components Edit Php Postflight Install" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit php postflight install of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_UPDATE="Joomla Components Edit Php Postflight Update" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit php postflight update of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_INSTALL="Joomla Components Edit Php Preflight Install" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit php preflight install of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_UPDATE="Joomla Components Edit Php Preflight Update" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit php preflight update of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_SITE_EVENT="Joomla Components Edit Php Site Event" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_SITE_EVENT_DESC="Allows the users in this group to update the edit php site event of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_README="Joomla Components Edit Readme" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_README_DESC="Allows the users in this group to update the edit readme of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SALES_SERVER_FTP="Joomla Components Edit Sales Server Ftp" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SALES_SERVER_FTP_DESC="Allows the users in this group to update the edit sales server ftp of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SHORT_DESCRIPTION="Joomla Components Edit Short Description" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SHORT_DESCRIPTION_DESC="Allows the users in this group to update the edit short description of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL="Joomla Components Edit Sql" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL_DESC="Allows the users in this group to update the edit sql of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL_TWEAK="Joomla Components Edit Sql Tweak" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL_TWEAK_DESC="Allows the users in this group to update the edit sql tweak of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SYSTEM_NAME="Joomla Components Edit System Name" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SYSTEM_NAME_DESC="Allows the users in this group to update the edit system name of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_TOIGNORE="Joomla Components Edit Toignore" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_TOIGNORE_DESC="Allows the users in this group to update the edit toignore of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER="Joomla Components Edit Update Server" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_DESC="Allows the users in this group to update the edit update server of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_FTP="Joomla Components Edit Update Server Ftp" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_FTP_DESC="Allows the users in this group to update the edit update server ftp of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_TARGET="Joomla Components Edit Update Server Target" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_TARGET_DESC="Allows the users in this group to update the edit update server target of the joomla component" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION="Joomla Components Edit Version" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_UPDATE="Joomla Components Edit Version Update" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_UPDATE_DESC="Allows the users in this group to update the edit version update of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WEBSITE="Joomla Components Edit Website" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WEBSITE_DESC="Allows the users in this group to update the edit website of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_KEY="Joomla Components Edit Whmcs Key" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_KEY_DESC="Allows the users in this group to update the edit whmcs key of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_URL="Joomla Components Edit Whmcs Url" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_URL_DESC="Allows the users in this group to update the edit whmcs url of the joomla component" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT="Joomla Components Export" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT_DESC="Allows the users in this group to export export joomla components" COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_IMPORT="Joomla Components Import" @@ -2954,8 +3352,8 @@ Project duration: **###projectWeekTime### weeks** or **###projectMonthTime### mo * Ethereum: 0x243392daa3c9c8bc841fcacf7c7f72541cb16823 " COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_README_LABEL="Demo README (with all place-holders)" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_FTP_DESCRIPTION="Add your FTP signature in the given field and during compilation the file will be moved to the FTP folder. You still need to point the above update server url to the xml file on your FTP server for it to work correctly.
Here are the details of the signature:
   string $host = '127.0.0.1'
   string $port = '21'
   array $options = array()
   string $user = null
   string $pass = null
   OPTIONS = Array with any of these options:
      type=>[FTP_AUTOASCII|FTP_ASCII|FTP_BINARY]
      timeout=>(int)
Here is an example signature:
host=HOSTNAME&port=PORT_INT&options[type]=FTP_BINARY&options[timeout]=15&username=user@name.com&password=password" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_FTP_LABEL="The FTP Option" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_FTP_DESCRIPTION="During compilation the file will be moved to the FTP folder. You still need to point the above update server url to the xml file on your FTP server for it to work correctly." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_FTP_LABEL="Select the FTP server used for your update server." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_OTHER_DESCRIPTION="Not really sure what other options to add.... so let me know. For now this option does not really do anything except adding the link above to your component as an update server. So it really could be called the manual option, since you will need to set the update server your self. You still need to point the above update server url to the manually created xml file for it to work correctly." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_OTHER_LABEL="The Other Options" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_ZIP_DESCRIPTION="The update server XML file will be added to the zipped package during compilation. You still need to point the above update server url to the xml wherever you have placed the files online." @@ -3060,9 +3458,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_README_LABEL="README.md" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_RENAME_LABEL="Rename" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_REPLY="Reply" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP="Sales Server Ftp" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP_DESCRIPTION="The FTP details for the update server XML location. (string $host = '127.0.0.1', string $port = '21', array $options = array(), string $user = null, string $pass = null) OPTIONS = Array with any of these options: type=>[FTP_AUTOASCII|FTP_ASCII|FTP_BINARY], timeout=>(int)" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP_HINT="host=HOSTNAME&port=PORT_INT&options[type]=FTP_BINARY&options[timeout]=15&username=user@name.com&password=password" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP_LABEL="Sales Server FTP
(encrypted field)" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP_DESCRIPTION="Select your sales server (FTP) for this component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP_LABEL="Sales Server (FTP)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SAVE_COPY="Save Copy" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SAVE_NEW="Save New" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Joomla Component to customise the alias." @@ -3128,6 +3525,12 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_THUMBS_UP="Thumbs Up" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TITLE_DESCRIPTION="Enter contributor's title in relation to this component" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TITLE_HINT="Contributor's Role" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TITLE_LABEL="Job Title" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TOIGNORE="Toignore" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TOIGNORE_DESCRIPTION="Coma separated names of folders or files to ignore when updating the git files during compilations." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TOIGNORE_HINT="Coma separated names of folders or files" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TOIGNORE_LABEL="Folders or Files to Ignore" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TO_IGNORE_NOTE_DESCRIPTION="During compilation JCB deletes all files and folders from the git folder, and then adds the newly created files and folders back into the git folder. Yet there may be files or folders you may not want deleted, like the .git folder, since JCB does not dynamically create that folder and so it will not be placed back, but simply delete it, unless you add it in this text field below, so that it will be ignored, and therefore not deleted in the first place. You can add multiple folders and files, separated by commas. Like: .git, .hg" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TO_IGNORE_NOTE_LABEL="Folders or Files to Ignore" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TRANSLATION="Translation" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TREE="Tree" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TREE_TWO="Tree 2" @@ -3142,9 +3545,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATES_USED_IN_JOOMLA_UPDATER="Updates (u COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER="Update Server" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_DESCRIPTION="Enter Update Server URL" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP="Update Server Ftp" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP_DESCRIPTION="The FTP details for the update server XML location." -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP_HINT="host=HOSTNAME&port=PORT_INT&options[type]=FTP_BINARY&options[timeout]=15&username=user@name.com&password=password" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP_LABEL="Update Server FTP
(encrypted field)" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP_DESCRIPTION="Select your update server (FTP) for this component." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP_LABEL="Update Server (FTP)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_HINT="http://www.example.com/update/component.xml" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_LABEL="Update Server" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_TARGET="Update Server Target" @@ -4039,6 +4441,7 @@ COM_COMPONENTBUILDER_SUBMENU_DASHBOARD="Dashboard" COM_COMPONENTBUILDER_SUBMENU_DYNAMIC_GETS="Dynamic Gets" COM_COMPONENTBUILDER_SUBMENU_FIELDS="Fields" COM_COMPONENTBUILDER_SUBMENU_FIELDTYPES="Fieldtypes" +COM_COMPONENTBUILDER_SUBMENU_FTPS="FTP's" COM_COMPONENTBUILDER_SUBMENU_HELP_DOCUMENTS="Help Documents" COM_COMPONENTBUILDER_SUBMENU_JOOMLA_COMPONENTS="Joomla Components" COM_COMPONENTBUILDER_SUBMENU_LANGUAGES="Languages" diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini index 16073e5f2..553f4eb9c 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini @@ -1,5 +1,641 @@ COM_COMPONENTBUILDER="Component Builder" +COM_COMPONENTBUILDER_ADMIN_VIEWS_ACCESS="Admin Views Access" +COM_COMPONENTBUILDER_ADMIN_VIEWS_ACCESS_DESC="Allows the users in this group to access access admin views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_BATCH_USE="Admin Views Batch Use" +COM_COMPONENTBUILDER_ADMIN_VIEWS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch admin views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_CREATE="Admin Views Create" +COM_COMPONENTBUILDER_ADMIN_VIEWS_CREATE_DESC="Allows the users in this group to create create admin views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_ADD="Admin Views Dashboard Add" +COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_LIST="Admin Views Dashboard List" +COM_COMPONENTBUILDER_ADMIN_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_DELETE="Admin Views Delete" +COM_COMPONENTBUILDER_ADMIN_VIEWS_DELETE_DESC="Allows the users in this group to delete delete admin views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT="Admin Views Edit" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDCONDITIONS="Admin Views Edit Addconditions" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDCONDITIONS_DESC="Allows the users in this group to update the edit addconditions of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDFIELDS="Admin Views Edit Addfields" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDFIELDS_DESC="Allows the users in this group to update the edit addfields of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDLINKED_VIEWS="Admin Views Edit Addlinked Views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDLINKED_VIEWS_DESC="Allows the users in this group to update the edit addlinked views of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDPERMISSIONS="Admin Views Edit Addpermissions" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDPERMISSIONS_DESC="Allows the users in this group to update the edit addpermissions of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABLES="Admin Views Edit Addtables" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABLES_DESC="Allows the users in this group to update the edit addtables of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABS="Admin Views Edit Addtabs" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADDTABS_DESC="Allows the users in this group to update the edit addtabs of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEW="Admin Views Edit Add Css View" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEWS="Admin Views Edit Add Css Views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEWS_DESC="Allows the users in this group to update the edit add css views of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CSS_VIEW_DESC="Allows the users in this group to update the edit add css view of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_BUTTON="Admin Views Edit Add Custom Button" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_BUTTON_DESC="Allows the users in this group to update the edit add custom button of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_IMPORT="Admin Views Edit Add Custom Import" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_CUSTOM_IMPORT_DESC="Allows the users in this group to update the edit add custom import of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_FADEIN="Admin Views Edit Add Fadein" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_FADEIN_DESC="Allows the users in this group to update the edit add fadein of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FILE="Admin Views Edit Add Javascript Views File" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FILE_DESC="Allows the users in this group to update the edit add javascript views file of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FOOTER="Admin Views Edit Add Javascript Views Footer" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEWS_FOOTER_DESC="Allows the users in this group to update the edit add javascript views footer of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FILE="Admin Views Edit Add Javascript View File" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FILE_DESC="Allows the users in this group to update the edit add javascript view file of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FOOTER="Admin Views Edit Add Javascript View Footer" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_JAVASCRIPT_VIEW_FOOTER_DESC="Allows the users in this group to update the edit add javascript view footer of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_DELETE="Admin Views Edit Add Php After Delete" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_DELETE_DESC="Allows the users in this group to update the edit add php after delete of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_PUBLISH="Admin Views Edit Add Php After Publish" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AFTER_PUBLISH_DESC="Allows the users in this group to update the edit add php after publish of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AJAX="Admin Views Edit Add Php Ajax" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_AJAX_DESC="Allows the users in this group to update the edit add php ajax of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_ALLOWEDIT="Admin Views Edit Add Php Allowedit" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_ALLOWEDIT_DESC="Allows the users in this group to update the edit add php allowedit of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHCOPY="Admin Views Edit Add Php Batchcopy" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHCOPY_DESC="Allows the users in this group to update the edit add php batchcopy of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHMOVE="Admin Views Edit Add Php Batchmove" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BATCHMOVE_DESC="Allows the users in this group to update the edit add php batchmove of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_DELETE="Admin Views Edit Add Php Before Delete" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_DELETE_DESC="Allows the users in this group to update the edit add php before delete of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_PUBLISH="Admin Views Edit Add Php Before Publish" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_PUBLISH_DESC="Allows the users in this group to update the edit add php before publish of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_SAVE="Admin Views Edit Add Php Before Save" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_BEFORE_SAVE_DESC="Allows the users in this group to update the edit add php before save of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_DOCUMENT="Admin Views Edit Add Php Document" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_DOCUMENT_DESC="Allows the users in this group to update the edit add php document of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEM="Admin Views Edit Add Php Getitem" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS="Admin Views Edit Add Php Getitems" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS_AFTER_ALL="Admin Views Edit Add Php Getitems After All" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS_AFTER_ALL_DESC="Allows the users in this group to update the edit add php getitems after all of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEMS_DESC="Allows the users in this group to update the edit add php getitems of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETITEM_DESC="Allows the users in this group to update the edit add php getitem of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETLISTQUERY="Admin Views Edit Add Php Getlistquery" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_GETLISTQUERY_DESC="Allows the users in this group to update the edit add php getlistquery of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_POSTSAVEHOOK="Admin Views Edit Add Php Postsavehook" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_POSTSAVEHOOK_DESC="Allows the users in this group to update the edit add php postsavehook of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_SAVE="Admin Views Edit Add Php Save" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_PHP_SAVE_DESC="Allows the users in this group to update the edit add php save of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_SQL="Admin Views Edit Add Sql" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ADD_SQL_DESC="Allows the users in this group to update the edit add sql of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_AJAX_INPUT="Admin Views Edit Ajax Input" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_AJAX_INPUT_DESC="Allows the users in this group to update the edit ajax input of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEW="Admin Views Edit Css View" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEWS="Admin Views Edit Css Views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEWS_DESC="Allows the users in this group to update the edit css views of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CSS_VIEW_DESC="Allows the users in this group to update the edit css view of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CUSTOM_BUTTON="Admin Views Edit Custom Button" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_CUSTOM_BUTTON_DESC="Allows the users in this group to update the edit custom button of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESC="Allows the users in this group to edit the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESCRIPTION="Admin Views Edit Description" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESCRIPTION_DESC="Allows the users in this group to update the edit description of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_HTML_IMPORT_VIEW="Admin Views Edit Html Import View" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_HTML_IMPORT_VIEW_DESC="Allows the users in this group to update the edit html import view of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON="Admin Views Edit Icon" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_ADD="Admin Views Edit Icon Add" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_ADD_DESC="Allows the users in this group to update the edit icon add of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_CATEGORY="Admin Views Edit Icon Category" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_CATEGORY_DESC="Allows the users in this group to update the edit icon category of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_ICON_DESC="Allows the users in this group to update the edit icon of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FILE="Admin Views Edit Javascript Views File" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FILE_DESC="Allows the users in this group to update the edit javascript views file of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FOOTER="Admin Views Edit Javascript Views Footer" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEWS_FOOTER_DESC="Allows the users in this group to update the edit javascript views footer of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FILE="Admin Views Edit Javascript View File" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FILE_DESC="Allows the users in this group to update the edit javascript view file of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FOOTER="Admin Views Edit Javascript View Footer" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_JAVASCRIPT_VIEW_FOOTER_DESC="Allows the users in this group to update the edit javascript view footer of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_LIST="Admin Views Edit Name List" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_LIST_DESC="Allows the users in this group to update the edit name list of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_SINGLE="Admin Views Edit Name Single" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_NAME_SINGLE_DESC="Allows the users in this group to update the edit name single of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_OWN="Admin Views Edit Own" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_OWN_DESC="Allows the users in this group to edit edit own admin views created by them" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_DELETE="Admin Views Edit Php After Delete" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_DELETE_DESC="Allows the users in this group to update the edit php after delete of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_PUBLISH="Admin Views Edit Php After Publish" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AFTER_PUBLISH_DESC="Allows the users in this group to update the edit php after publish of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AJAXMETHOD="Admin Views Edit Php Ajaxmethod" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_AJAXMETHOD_DESC="Allows the users in this group to update the edit php ajaxmethod of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_ALLOWEDIT="Admin Views Edit Php Allowedit" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_ALLOWEDIT_DESC="Allows the users in this group to update the edit php allowedit of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHCOPY="Admin Views Edit Php Batchcopy" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHCOPY_DESC="Allows the users in this group to update the edit php batchcopy of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHMOVE="Admin Views Edit Php Batchmove" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BATCHMOVE_DESC="Allows the users in this group to update the edit php batchmove of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_DELETE="Admin Views Edit Php Before Delete" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_DELETE_DESC="Allows the users in this group to update the edit php before delete of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_PUBLISH="Admin Views Edit Php Before Publish" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_PUBLISH_DESC="Allows the users in this group to update the edit php before publish of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_SAVE="Admin Views Edit Php Before Save" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_BEFORE_SAVE_DESC="Allows the users in this group to update the edit php before save of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER="Admin Views Edit Php Controller" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER_DESC="Allows the users in this group to update the edit php controller of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER_LIST="Admin Views Edit Php Controller List" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_CONTROLLER_LIST_DESC="Allows the users in this group to update the edit php controller list of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_DOCUMENT="Admin Views Edit Php Document" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_DOCUMENT_DESC="Allows the users in this group to update the edit php document of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEM="Admin Views Edit Php Getitem" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS="Admin Views Edit Php Getitems" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS_AFTER_ALL="Admin Views Edit Php Getitems After All" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS_AFTER_ALL_DESC="Allows the users in this group to update the edit php getitems after all of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEMS_DESC="Allows the users in this group to update the edit php getitems of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETITEM_DESC="Allows the users in this group to update the edit php getitem of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETLISTQUERY="Admin Views Edit Php Getlistquery" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_GETLISTQUERY_DESC="Allows the users in this group to update the edit php getlistquery of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT="Admin Views Edit Php Import" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_DESC="Allows the users in this group to update the edit php import of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_DISPLAY="Admin Views Edit Php Import Display" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_DISPLAY_DESC="Allows the users in this group to update the edit php import display of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_EXT="Admin Views Edit Php Import Ext" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_EXT_DESC="Allows the users in this group to update the edit php import ext of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SAVE="Admin Views Edit Php Import Save" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SAVE_DESC="Allows the users in this group to update the edit php import save of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SETDATA="Admin Views Edit Php Import Setdata" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_IMPORT_SETDATA_DESC="Allows the users in this group to update the edit php import setdata of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL="Admin Views Edit Php Model" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL_DESC="Allows the users in this group to update the edit php model of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL_LIST="Admin Views Edit Php Model List" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_MODEL_LIST_DESC="Allows the users in this group to update the edit php model list of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_POSTSAVEHOOK="Admin Views Edit Php Postsavehook" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_POSTSAVEHOOK_DESC="Allows the users in this group to update the edit php postsavehook of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_SAVE="Admin Views Edit Php Save" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_PHP_SAVE_DESC="Allows the users in this group to update the edit php save of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SHORT_DESCRIPTION="Admin Views Edit Short Description" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SHORT_DESCRIPTION_DESC="Allows the users in this group to update the edit short description of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SOURCE="Admin Views Edit Source" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SOURCE_DESC="Allows the users in this group to update the edit source of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SQL="Admin Views Edit Sql" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SQL_DESC="Allows the users in this group to update the edit sql of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_STATE="Admin Views Edit State" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_STATE_DESC="Allows the users in this group to update the state of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SYSTEM_NAME="Admin Views Edit System Name" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_SYSTEM_NAME_DESC="Allows the users in this group to update the edit system name of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_TYPE="Admin Views Edit Type" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_TYPE_DESC="Allows the users in this group to update the edit type of the admin view" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_VERSION="Admin Views Edit Version" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version admin views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EXPORT="Admin Views Export" +COM_COMPONENTBUILDER_ADMIN_VIEWS_EXPORT_DESC="Allows the users in this group to export export admin views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_IMPORT="Admin Views Import" +COM_COMPONENTBUILDER_ADMIN_VIEWS_IMPORT_DESC="Allows the users in this group to import import admin views" +COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU="Admin Views Submenu" +COM_COMPONENTBUILDER_ADMIN_VIEWS_SUBMENU_DESC="Allows the users in this group to update the submenu of the admin view" +COM_COMPONENTBUILDER_COMPILER_ACCESS="Compiler Access" +COM_COMPONENTBUILDER_COMPILER_ACCESS_DESC=" Allows the users in this group to access compiler." +COM_COMPONENTBUILDER_COMPILER_CLEAR_TMP_BUTTON_ACCESS="Compiler Clear tmp Button Access" +COM_COMPONENTBUILDER_COMPILER_CLEAR_TMP_BUTTON_ACCESS_DESC=" Allows the users in this group to access the clear tmp button." +COM_COMPONENTBUILDER_COMPILER_DASHBOARD_LIST="Compiler Dashboard List" +COM_COMPONENTBUILDER_COMPILER_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the Compiler" +COM_COMPONENTBUILDER_COMPILER_SUBMENU="Compiler Submenu" +COM_COMPONENTBUILDER_COMPILER_SUBMENU_DESC="Allows the users in this group to update the submenu of the Compiler" COM_COMPONENTBUILDER_CONFIGURATION="Component Builder Configuration" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_ACCESS="Custom Admin Views Access" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_ACCESS_DESC="Allows the users in this group to access access custom admin views" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_BATCH_USE="Custom Admin Views Batch Use" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch custom admin views" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_CREATE="Custom Admin Views Create" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_CREATE_DESC="Allows the users in this group to create create custom admin views" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_ADD="Custom Admin Views Dashboard Add" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the custom admin view" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_LIST="Custom Admin Views Dashboard List" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the custom admin view" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DELETE="Custom Admin Views Delete" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_DELETE_DESC="Allows the users in this group to delete delete custom admin views" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EDIT="Custom Admin Views Edit" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EDIT_DESC="Allows the users in this group to edit the custom admin view" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EDIT_OWN="Custom Admin Views Edit Own" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EDIT_OWN_DESC="Allows the users in this group to edit edit own custom admin views created by them" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EDIT_STATE="Custom Admin Views Edit State" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EDIT_STATE_DESC="Allows the users in this group to update the state of the custom admin view" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EDIT_VERSION="Custom Admin Views Edit Version" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version custom admin views" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EXPORT="Custom Admin Views Export" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_EXPORT_DESC="Allows the users in this group to export export custom admin views" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_IMPORT="Custom Admin Views Import" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_IMPORT_DESC="Allows the users in this group to import import custom admin views" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_SUBMENU="Custom Admin Views Submenu" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEWS_SUBMENU_DESC="Allows the users in this group to update the submenu of the custom admin view" +COM_COMPONENTBUILDER_CUSTOM_CODES_ACCESS="Custom Codes Access" +COM_COMPONENTBUILDER_CUSTOM_CODES_ACCESS_DESC="Allows the users in this group to access access custom codes" +COM_COMPONENTBUILDER_CUSTOM_CODES_BATCH_USE="Custom Codes Batch Use" +COM_COMPONENTBUILDER_CUSTOM_CODES_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch custom codes" +COM_COMPONENTBUILDER_CUSTOM_CODES_CREATE="Custom Codes Create" +COM_COMPONENTBUILDER_CUSTOM_CODES_CREATE_DESC="Allows the users in this group to create create custom codes" +COM_COMPONENTBUILDER_CUSTOM_CODES_DASHBOARD_LIST="Custom Codes Dashboard List" +COM_COMPONENTBUILDER_CUSTOM_CODES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the custom code" +COM_COMPONENTBUILDER_CUSTOM_CODES_DELETE="Custom Codes Delete" +COM_COMPONENTBUILDER_CUSTOM_CODES_DELETE_DESC="Allows the users in this group to delete delete custom codes" +COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT="Custom Codes Edit" +COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT_CREATED_BY="Custom Codes Edit Created By" +COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by custom codes" +COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT_CREATED_DATE="Custom Codes Edit Created Date" +COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created custom codes" +COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT_DESC="Allows the users in this group to edit the custom code" +COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT_OWN="Custom Codes Edit Own" +COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT_OWN_DESC="Allows the users in this group to edit edit own custom codes created by them" +COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT_STATE="Custom Codes Edit State" +COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT_STATE_DESC="Allows the users in this group to update the state of the custom code" +COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT_VERSION="Custom Codes Edit Version" +COM_COMPONENTBUILDER_CUSTOM_CODES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version custom codes" +COM_COMPONENTBUILDER_CUSTOM_CODES_EXPORT="Custom Codes Export" +COM_COMPONENTBUILDER_CUSTOM_CODES_EXPORT_DESC="Allows the users in this group to export export custom codes" +COM_COMPONENTBUILDER_CUSTOM_CODES_IMPORT="Custom Codes Import" +COM_COMPONENTBUILDER_CUSTOM_CODES_IMPORT_DESC="Allows the users in this group to import import custom codes" +COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU="Custom Codes Submenu" +COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU_DESC="Allows the users in this group to update the submenu of the custom code" +COM_COMPONENTBUILDER_DYNAMIC_GETS_ACCESS="Dynamic Gets Access" +COM_COMPONENTBUILDER_DYNAMIC_GETS_ACCESS_DESC="Allows the users in this group to access access dynamic gets" +COM_COMPONENTBUILDER_DYNAMIC_GETS_BATCH_USE="Dynamic Gets Batch Use" +COM_COMPONENTBUILDER_DYNAMIC_GETS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch dynamic gets" +COM_COMPONENTBUILDER_DYNAMIC_GETS_CREATE="Dynamic Gets Create" +COM_COMPONENTBUILDER_DYNAMIC_GETS_CREATE_DESC="Allows the users in this group to create create dynamic gets" +COM_COMPONENTBUILDER_DYNAMIC_GETS_DASHBOARD_ADD="Dynamic Gets Dashboard Add" +COM_COMPONENTBUILDER_DYNAMIC_GETS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the dynamic get" +COM_COMPONENTBUILDER_DYNAMIC_GETS_DASHBOARD_LIST="Dynamic Gets Dashboard List" +COM_COMPONENTBUILDER_DYNAMIC_GETS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the dynamic get" +COM_COMPONENTBUILDER_DYNAMIC_GETS_DELETE="Dynamic Gets Delete" +COM_COMPONENTBUILDER_DYNAMIC_GETS_DELETE_DESC="Allows the users in this group to delete delete dynamic gets" +COM_COMPONENTBUILDER_DYNAMIC_GETS_EDIT="Dynamic Gets Edit" +COM_COMPONENTBUILDER_DYNAMIC_GETS_EDIT_DESC="Allows the users in this group to edit the dynamic get" +COM_COMPONENTBUILDER_DYNAMIC_GETS_EDIT_OWN="Dynamic Gets Edit Own" +COM_COMPONENTBUILDER_DYNAMIC_GETS_EDIT_OWN_DESC="Allows the users in this group to edit edit own dynamic gets created by them" +COM_COMPONENTBUILDER_DYNAMIC_GETS_EDIT_STATE="Dynamic Gets Edit State" +COM_COMPONENTBUILDER_DYNAMIC_GETS_EDIT_STATE_DESC="Allows the users in this group to update the state of the dynamic get" +COM_COMPONENTBUILDER_DYNAMIC_GETS_EDIT_VERSION="Dynamic Gets Edit Version" +COM_COMPONENTBUILDER_DYNAMIC_GETS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version dynamic gets" +COM_COMPONENTBUILDER_DYNAMIC_GETS_EXPORT="Dynamic Gets Export" +COM_COMPONENTBUILDER_DYNAMIC_GETS_EXPORT_DESC="Allows the users in this group to export export dynamic gets" +COM_COMPONENTBUILDER_DYNAMIC_GETS_IMPORT="Dynamic Gets Import" +COM_COMPONENTBUILDER_DYNAMIC_GETS_IMPORT_DESC="Allows the users in this group to import import dynamic gets" +COM_COMPONENTBUILDER_DYNAMIC_GETS_SUBMENU="Dynamic Gets Submenu" +COM_COMPONENTBUILDER_DYNAMIC_GETS_SUBMENU_DESC="Allows the users in this group to update the submenu of the dynamic get" +COM_COMPONENTBUILDER_EDIT_CREATED_BY="Edit Created By" +COM_COMPONENTBUILDER_EDIT_CREATED_BY_DESC=" Allows users in this group to edit created by." +COM_COMPONENTBUILDER_EDIT_CREATED_DATE="Edit Created Date" +COM_COMPONENTBUILDER_EDIT_CREATED_DATE_DESC=" Allows users in this group to edit created date." +COM_COMPONENTBUILDER_EDIT_VERSIONS="Edit Version" +COM_COMPONENTBUILDER_EDIT_VERSIONS_DESC=" Allows users in this group to edit versions." +COM_COMPONENTBUILDER_EXPORT_DATA="Export Data" +COM_COMPONENTBUILDER_EXPORT_DATA_DESC=" Allows users in this group to export data." +COM_COMPONENTBUILDER_FIELDS_ACCESS="Fields Access" +COM_COMPONENTBUILDER_FIELDS_ACCESS_DESC="Allows the users in this group to access access fields" +COM_COMPONENTBUILDER_FIELDS_BATCH_USE="Fields Batch Use" +COM_COMPONENTBUILDER_FIELDS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch fields" +COM_COMPONENTBUILDER_FIELDS_CREATE="Fields Create" +COM_COMPONENTBUILDER_FIELDS_CREATE_DESC="Allows the users in this group to create create fields" +COM_COMPONENTBUILDER_FIELDS_DASHBOARD_ADD="Fields Dashboard Add" +COM_COMPONENTBUILDER_FIELDS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the field" +COM_COMPONENTBUILDER_FIELDS_DASHBOARD_LIST="Fields Dashboard List" +COM_COMPONENTBUILDER_FIELDS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the field" +COM_COMPONENTBUILDER_FIELDS_DELETE="Fields Delete" +COM_COMPONENTBUILDER_FIELDS_DELETE_DESC="Allows the users in this group to delete delete fields" +COM_COMPONENTBUILDER_FIELDS_EDIT="Fields Edit" +COM_COMPONENTBUILDER_FIELDS_EDIT_DESC="Allows the users in this group to edit the field" +COM_COMPONENTBUILDER_FIELDS_EDIT_OWN="Fields Edit Own" +COM_COMPONENTBUILDER_FIELDS_EDIT_OWN_DESC="Allows the users in this group to edit edit own fields created by them" +COM_COMPONENTBUILDER_FIELDS_EDIT_STATE="Fields Edit State" +COM_COMPONENTBUILDER_FIELDS_EDIT_STATE_DESC="Allows the users in this group to update the state of the field" +COM_COMPONENTBUILDER_FIELDS_EDIT_VERSION="Fields Edit Version" +COM_COMPONENTBUILDER_FIELDS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version fields" +COM_COMPONENTBUILDER_FIELDS_EXPORT="Fields Export" +COM_COMPONENTBUILDER_FIELDS_EXPORT_DESC="Allows the users in this group to export export fields" +COM_COMPONENTBUILDER_FIELDS_IMPORT="Fields Import" +COM_COMPONENTBUILDER_FIELDS_IMPORT_DESC="Allows the users in this group to import import fields" +COM_COMPONENTBUILDER_FIELDS_SUBMENU="Fields Submenu" +COM_COMPONENTBUILDER_FIELDS_SUBMENU_DESC="Allows the users in this group to update the submenu of the field" +COM_COMPONENTBUILDER_FIELDTYPES_ACCESS="Fieldtypes Access" +COM_COMPONENTBUILDER_FIELDTYPES_ACCESS_DESC="Allows the users in this group to access access fieldtypes" +COM_COMPONENTBUILDER_FIELDTYPES_BATCH_USE="Fieldtypes Batch Use" +COM_COMPONENTBUILDER_FIELDTYPES_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch fieldtypes" +COM_COMPONENTBUILDER_FIELDTYPES_CREATE="Fieldtypes Create" +COM_COMPONENTBUILDER_FIELDTYPES_CREATE_DESC="Allows the users in this group to create create fieldtypes" +COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_ADD="Fieldtypes Dashboard Add" +COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the fieldtype" +COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_LIST="Fieldtypes Dashboard List" +COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the fieldtype" +COM_COMPONENTBUILDER_FIELDTYPES_DELETE="Fieldtypes Delete" +COM_COMPONENTBUILDER_FIELDTYPES_DELETE_DESC="Allows the users in this group to delete delete fieldtypes" +COM_COMPONENTBUILDER_FIELDTYPES_EDIT="Fieldtypes Edit" +COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESC="Allows the users in this group to edit the fieldtype" +COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN="Fieldtypes Edit Own" +COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN_DESC="Allows the users in this group to edit edit own fieldtypes created by them" +COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE="Fieldtypes Edit State" +COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE_DESC="Allows the users in this group to update the state of the fieldtype" +COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION="Fieldtypes Edit Version" +COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version fieldtypes" +COM_COMPONENTBUILDER_FIELDTYPES_EXPORT="Fieldtypes Export" +COM_COMPONENTBUILDER_FIELDTYPES_EXPORT_DESC="Allows the users in this group to export export fieldtypes" +COM_COMPONENTBUILDER_FIELDTYPES_IMPORT="Fieldtypes Import" +COM_COMPONENTBUILDER_FIELDTYPES_IMPORT_DESC="Allows the users in this group to import import fieldtypes" +COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU="Fieldtypes Submenu" +COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU_DESC="Allows the users in this group to update the submenu of the fieldtype" +COM_COMPONENTBUILDER_FTPS_ACCESS="Ftps Access" +COM_COMPONENTBUILDER_FTPS_ACCESS_DESC="Allows the users in this group to access access ftps" +COM_COMPONENTBUILDER_FTPS_BATCH_USE="Ftps Batch Use" +COM_COMPONENTBUILDER_FTPS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch ftps" +COM_COMPONENTBUILDER_FTPS_CREATE="Ftps Create" +COM_COMPONENTBUILDER_FTPS_CREATE_DESC="Allows the users in this group to create create ftps" +COM_COMPONENTBUILDER_FTPS_DASHBOARD_LIST="Ftps Dashboard List" +COM_COMPONENTBUILDER_FTPS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the ftp" +COM_COMPONENTBUILDER_FTPS_DELETE="Ftps Delete" +COM_COMPONENTBUILDER_FTPS_DELETE_DESC="Allows the users in this group to delete delete ftps" +COM_COMPONENTBUILDER_FTPS_EDIT="Ftps Edit" +COM_COMPONENTBUILDER_FTPS_EDIT_CREATED_BY="Ftps Edit Created By" +COM_COMPONENTBUILDER_FTPS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by ftps" +COM_COMPONENTBUILDER_FTPS_EDIT_CREATED_DATE="Ftps Edit Created Date" +COM_COMPONENTBUILDER_FTPS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created ftps" +COM_COMPONENTBUILDER_FTPS_EDIT_DESC="Allows the users in this group to edit the ftp" +COM_COMPONENTBUILDER_FTPS_EDIT_NAME="Ftps Edit Name" +COM_COMPONENTBUILDER_FTPS_EDIT_NAME_DESC="Allows the users in this group to update the edit name of the ftp" +COM_COMPONENTBUILDER_FTPS_EDIT_OWN="Ftps Edit Own" +COM_COMPONENTBUILDER_FTPS_EDIT_OWN_DESC="Allows the users in this group to edit edit own ftps created by them" +COM_COMPONENTBUILDER_FTPS_EDIT_SIGNATURE="Ftps Edit Signature" +COM_COMPONENTBUILDER_FTPS_EDIT_SIGNATURE_DESC="Allows the users in this group to update the edit signature of the ftp" +COM_COMPONENTBUILDER_FTPS_EDIT_STATE="Ftps Edit State" +COM_COMPONENTBUILDER_FTPS_EDIT_STATE_DESC="Allows the users in this group to update the state of the ftp" +COM_COMPONENTBUILDER_FTPS_EDIT_VERSION="Ftps Edit Version" +COM_COMPONENTBUILDER_FTPS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version ftps" +COM_COMPONENTBUILDER_FTPS_EXPORT="Ftps Export" +COM_COMPONENTBUILDER_FTPS_EXPORT_DESC="Allows the users in this group to export export ftps" +COM_COMPONENTBUILDER_FTPS_IMPORT="Ftps Import" +COM_COMPONENTBUILDER_FTPS_IMPORT_DESC="Allows the users in this group to import import ftps" +COM_COMPONENTBUILDER_FTPS_SUBMENU="Ftps Submenu" +COM_COMPONENTBUILDER_FTPS_SUBMENU_DESC="Allows the users in this group to update the submenu of the ftp" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_ACCESS="Help Documents Access" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_ACCESS_DESC="Allows the users in this group to access access help documents" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_BATCH_USE="Help Documents Batch Use" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch help documents" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_CREATE="Help Documents Create" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_CREATE_DESC="Allows the users in this group to create create help documents" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_DASHBOARD_ADD="Help Documents Dashboard Add" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the help document" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_DASHBOARD_LIST="Help Documents Dashboard List" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the help document" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_DELETE="Help Documents Delete" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_DELETE_DESC="Allows the users in this group to delete delete help documents" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT="Help Documents Edit" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT_DESC="Allows the users in this group to edit the help document" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT_OWN="Help Documents Edit Own" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT_OWN_DESC="Allows the users in this group to edit edit own help documents created by them" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT_STATE="Help Documents Edit State" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT_STATE_DESC="Allows the users in this group to update the state of the help document" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT_VERSION="Help Documents Edit Version" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version help documents" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_EXPORT="Help Documents Export" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_EXPORT_DESC="Allows the users in this group to export export help documents" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT="Help Documents Import" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT_DESC="Allows the users in this group to import import help documents" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu" +COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to update the submenu of the help document" +COM_COMPONENTBUILDER_IMPORT_DATA="Import Data" +COM_COMPONENTBUILDER_IMPORT_DATA_DESC=" Allows users in this group to import data." +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS="Joomla Components Access" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS_DESC="Allows the users in this group to access access joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE="Joomla Components Batch Use" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD="Joomla Components Dashboard Add" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST="Joomla Components Dashboard List" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDADMIN_VIEWS="Joomla Components Edit Addadmin Views" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDADMIN_VIEWS_DESC="Allows the users in this group to update the edit addadmin views of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONFIG="Joomla Components Edit Addconfig" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONFIG_DESC="Allows the users in this group to update the edit addconfig of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONTRIBUTORS="Joomla Components Edit Addcontributors" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCONTRIBUTORS_DESC="Allows the users in this group to update the edit addcontributors of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOMMENUS="Joomla Components Edit Addcustommenus" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOMMENUS_DESC="Allows the users in this group to update the edit addcustommenus of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOM_ADMIN_VIEWS="Joomla Components Edit Addcustom Admin Views" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDCUSTOM_ADMIN_VIEWS_DESC="Allows the users in this group to update the edit addcustom admin views of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFILES="Joomla Components Edit Addfiles" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFILES_DESC="Allows the users in this group to update the edit addfiles of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOLDERS="Joomla Components Edit Addfolders" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOLDERS_DESC="Allows the users in this group to update the edit addfolders of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOOTABLE="Joomla Components Edit Addfootable" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDFOOTABLE_DESC="Allows the users in this group to update the edit addfootable of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDREADME="Joomla Components Edit Addreadme" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDREADME_DESC="Allows the users in this group to update the edit addreadme of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDSITE_VIEWS="Joomla Components Edit Addsite Views" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDSITE_VIEWS_DESC="Allows the users in this group to update the edit addsite views of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDUIKIT="Joomla Components Edit Adduikit" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADDUIKIT_DESC="Allows the users in this group to update the edit adduikit of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_ADMIN_EVENT="Joomla Components Edit Add Admin Event" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_ADMIN_EVENT_DESC="Allows the users in this group to update the edit add admin event of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_CSS="Joomla Components Edit Add Css" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_CSS_DESC="Allows the users in this group to update the edit add css of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_EMAIL_HELPER="Joomla Components Edit Add Email Helper" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_EMAIL_HELPER_DESC="Allows the users in this group to update the edit add email helper of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE="Joomla Components Edit Add License" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE_DESC="Allows the users in this group to update the edit add license of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_DASHBOARD_METHODS="Joomla Components Edit Add Php Dashboard Methods" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_DASHBOARD_METHODS_DESC="Allows the users in this group to update the edit add php dashboard methods of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_ADMIN="Joomla Components Edit Add Php Helper Admin" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_ADMIN_DESC="Allows the users in this group to update the edit add php helper admin of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_BOTH="Joomla Components Edit Add Php Helper Both" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_BOTH_DESC="Allows the users in this group to update the edit add php helper both of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_SITE="Joomla Components Edit Add Php Helper Site" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_HELPER_SITE_DESC="Allows the users in this group to update the edit add php helper site of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_METHOD_UNINSTALL="Joomla Components Edit Add Php Method Uninstall" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_METHOD_UNINSTALL_DESC="Allows the users in this group to update the edit add php method uninstall of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_INSTALL="Joomla Components Edit Add Php Postflight Install" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit add php postflight install of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_UPDATE="Joomla Components Edit Add Php Postflight Update" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_POSTFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit add php postflight update of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_INSTALL="Joomla Components Edit Add Php Preflight Install" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit add php preflight install of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_UPDATE="Joomla Components Edit Add Php Preflight Update" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_PREFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit add php preflight update of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SALES_SERVER="Joomla Components Edit Add Sales Server" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SALES_SERVER_DESC="Allows the users in this group to update the edit add sales server of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SITE_EVENT="Joomla Components Edit Add Site Event" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SITE_EVENT_DESC="Allows the users in this group to update the edit add site event of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SQL="Joomla Components Edit Add Sql" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_SQL_DESC="Allows the users in this group to update the edit add sql of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_UPDATE_SERVER="Joomla Components Edit Add Update Server" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_UPDATE_SERVER_DESC="Allows the users in this group to update the edit add update server of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_AUTHOR="Joomla Components Edit Author" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_AUTHOR_DESC="Allows the users in this group to update the edit author of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BOM="Joomla Components Edit Bom" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BOM_DESC="Allows the users in this group to update the edit bom of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMP="Joomla Components Edit Buildcomp" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMPSQL="Joomla Components Edit Buildcompsql" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMPSQL_DESC="Allows the users in this group to update the edit buildcompsql of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_BUILDCOMP_DESC="Allows the users in this group to update the edit buildcomp of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPANYNAME="Joomla Components Edit Companyname" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPANYNAME_DESC="Allows the users in this group to update the edit companyname of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPONENT_VERSION="Joomla Components Edit Component Version" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COMPONENT_VERSION_DESC="Allows the users in this group to update the edit component version of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COPYRIGHT="Joomla Components Edit Copyright" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_COPYRIGHT_DESC="Allows the users in this group to update the edit copyright of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATUSERHELPER="Joomla Components Edit Creatuserhelper" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CREATUSERHELPER_DESC="Allows the users in this group to update the edit creatuserhelper of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CSS="Joomla Components Edit Css" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_CSS_DESC="Allows the users in this group to update the edit css of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DASHBOARD_TAB="Joomla Components Edit Dashboard Tab" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DASHBOARD_TAB_DESC="Allows the users in this group to update the edit dashboard tab of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DEBUG_LINENR="Joomla Components Edit Debug Linenr" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DEBUG_LINENR_DESC="Allows the users in this group to update the edit debug linenr of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DESCRIPTION="Joomla Components Edit Description" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_DESCRIPTION_DESC="Allows the users in this group to update the edit description of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMAIL="Joomla Components Edit Email" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMAIL_DESC="Allows the users in this group to update the edit email of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMPTYCONTRIBUTORS="Joomla Components Edit Emptycontributors" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EMPTYCONTRIBUTORS_DESC="Allows the users in this group to update the edit emptycontributors of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_BUY_LINK="Joomla Components Edit Export Buy Link" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_BUY_LINK_DESC="Allows the users in this group to update the edit export buy link of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_KEY="Joomla Components Edit Export Key" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_KEY_DESC="Allows the users in this group to update the edit export key of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_PACKAGE_LINK="Joomla Components Edit Export Package Link" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_PACKAGE_LINK_DESC="Allows the users in this group to update the edit export package link of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_IMAGE="Joomla Components Edit Image" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_IMAGE_DESC="Allows the users in this group to update the edit image of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE="Joomla Components Edit License" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_DESC="Allows the users in this group to update the edit license of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE="Joomla Components Edit License Type" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE_DESC="Allows the users in this group to update the edit license type of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_MVC_VERSIONDATE="Joomla Components Edit Mvc Versiondate" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_MVC_VERSIONDATE_DESC="Allows the users in this group to update the edit mvc versiondate of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME="Joomla Components Edit Name" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME_CODE="Joomla Components Edit Name Code" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME_CODE_DESC="Allows the users in this group to update the edit name code of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NAME_DESC="Allows the users in this group to update the edit name of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NUMBER="Joomla Components Edit Number" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_NUMBER_DESC="Allows the users in this group to update the edit number of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_ADMIN_EVENT="Joomla Components Edit Php Admin Event" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_ADMIN_EVENT_DESC="Allows the users in this group to update the edit php admin event of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_DASHBOARD_METHODS="Joomla Components Edit Php Dashboard Methods" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_DASHBOARD_METHODS_DESC="Allows the users in this group to update the edit php dashboard methods of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_ADMIN="Joomla Components Edit Php Helper Admin" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_ADMIN_DESC="Allows the users in this group to update the edit php helper admin of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_BOTH="Joomla Components Edit Php Helper Both" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_BOTH_DESC="Allows the users in this group to update the edit php helper both of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_SITE="Joomla Components Edit Php Helper Site" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_HELPER_SITE_DESC="Allows the users in this group to update the edit php helper site of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_METHOD_UNINSTALL="Joomla Components Edit Php Method Uninstall" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_METHOD_UNINSTALL_DESC="Allows the users in this group to update the edit php method uninstall of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_INSTALL="Joomla Components Edit Php Postflight Install" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit php postflight install of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_UPDATE="Joomla Components Edit Php Postflight Update" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_POSTFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit php postflight update of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_INSTALL="Joomla Components Edit Php Preflight Install" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_INSTALL_DESC="Allows the users in this group to update the edit php preflight install of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_UPDATE="Joomla Components Edit Php Preflight Update" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_PREFLIGHT_UPDATE_DESC="Allows the users in this group to update the edit php preflight update of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_SITE_EVENT="Joomla Components Edit Php Site Event" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_PHP_SITE_EVENT_DESC="Allows the users in this group to update the edit php site event of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_README="Joomla Components Edit Readme" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_README_DESC="Allows the users in this group to update the edit readme of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SALES_SERVER_FTP="Joomla Components Edit Sales Server Ftp" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SALES_SERVER_FTP_DESC="Allows the users in this group to update the edit sales server ftp of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SHORT_DESCRIPTION="Joomla Components Edit Short Description" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SHORT_DESCRIPTION_DESC="Allows the users in this group to update the edit short description of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL="Joomla Components Edit Sql" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL_DESC="Allows the users in this group to update the edit sql of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL_TWEAK="Joomla Components Edit Sql Tweak" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SQL_TWEAK_DESC="Allows the users in this group to update the edit sql tweak of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SYSTEM_NAME="Joomla Components Edit System Name" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_SYSTEM_NAME_DESC="Allows the users in this group to update the edit system name of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_TOIGNORE="Joomla Components Edit Toignore" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_TOIGNORE_DESC="Allows the users in this group to update the edit toignore of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER="Joomla Components Edit Update Server" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_DESC="Allows the users in this group to update the edit update server of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_FTP="Joomla Components Edit Update Server Ftp" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_FTP_DESC="Allows the users in this group to update the edit update server ftp of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_TARGET="Joomla Components Edit Update Server Target" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_UPDATE_SERVER_TARGET_DESC="Allows the users in this group to update the edit update server target of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION="Joomla Components Edit Version" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_UPDATE="Joomla Components Edit Version Update" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_UPDATE_DESC="Allows the users in this group to update the edit version update of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WEBSITE="Joomla Components Edit Website" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WEBSITE_DESC="Allows the users in this group to update the edit website of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_KEY="Joomla Components Edit Whmcs Key" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_KEY_DESC="Allows the users in this group to update the edit whmcs key of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_URL="Joomla Components Edit Whmcs Url" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_WHMCS_URL_DESC="Allows the users in this group to update the edit whmcs url of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT="Joomla Components Export" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT_DESC="Allows the users in this group to export export joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_IMPORT="Joomla Components Import" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_IMPORT_DESC="Allows the users in this group to import import joomla components" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU="Joomla Components Submenu" +COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU_DESC="Allows the users in this group to update the submenu of the joomla component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS="Joomla Component Backup Button Access" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BACKUP_BUTTON_ACCESS_DESC=" Allows the users in this group to access the backup button." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_COMPONENTS_BUTTON_ACCESS="Joomla Component Export Components Button Access" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_COMPONENTS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the export components button." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_COMPONENTS_BUTTON_ACCESS="Joomla Component Import Components Button Access" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_COMPONENTS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the import components button." +COM_COMPONENTBUILDER_LANGUAGES_ACCESS="Languages Access" +COM_COMPONENTBUILDER_LANGUAGES_ACCESS_DESC="Allows the users in this group to access access languages" +COM_COMPONENTBUILDER_LANGUAGES_BATCH_USE="Languages Batch Use" +COM_COMPONENTBUILDER_LANGUAGES_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch languages" +COM_COMPONENTBUILDER_LANGUAGES_CREATE="Languages Create" +COM_COMPONENTBUILDER_LANGUAGES_CREATE_DESC="Allows the users in this group to create create languages" +COM_COMPONENTBUILDER_LANGUAGES_DELETE="Languages Delete" +COM_COMPONENTBUILDER_LANGUAGES_DELETE_DESC="Allows the users in this group to delete delete languages" +COM_COMPONENTBUILDER_LANGUAGES_EDIT="Languages Edit" +COM_COMPONENTBUILDER_LANGUAGES_EDIT_DESC="Allows the users in this group to edit the language" +COM_COMPONENTBUILDER_LANGUAGES_EDIT_OWN="Languages Edit Own" +COM_COMPONENTBUILDER_LANGUAGES_EDIT_OWN_DESC="Allows the users in this group to edit edit own languages created by them" +COM_COMPONENTBUILDER_LANGUAGES_EDIT_STATE="Languages Edit State" +COM_COMPONENTBUILDER_LANGUAGES_EDIT_STATE_DESC="Allows the users in this group to update the state of the language" +COM_COMPONENTBUILDER_LANGUAGES_EDIT_VERSION="Languages Edit Version" +COM_COMPONENTBUILDER_LANGUAGES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version languages" +COM_COMPONENTBUILDER_LANGUAGES_EXPORT="Languages Export" +COM_COMPONENTBUILDER_LANGUAGES_EXPORT_DESC="Allows the users in this group to export export languages" +COM_COMPONENTBUILDER_LANGUAGES_IMPORT="Languages Import" +COM_COMPONENTBUILDER_LANGUAGES_IMPORT_DESC="Allows the users in this group to import import languages" +COM_COMPONENTBUILDER_LANGUAGES_SUBMENU="Languages Submenu" +COM_COMPONENTBUILDER_LANGUAGES_SUBMENU_DESC="Allows the users in this group to update the submenu of the language" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_ACCESS="Language Translations Access" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_ACCESS_DESC="Allows the users in this group to access access language translations" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_BATCH_USE="Language Translations Batch Use" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch language translations" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_CREATE="Language Translations Create" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_CREATE_DESC="Allows the users in this group to create create language translations" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_DASHBOARD_LIST="Language Translations Dashboard List" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the language translation" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_DELETE="Language Translations Delete" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_DELETE_DESC="Allows the users in this group to delete delete language translations" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_EDIT="Language Translations Edit" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_EDIT_DESC="Allows the users in this group to edit the language translation" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_EDIT_OWN="Language Translations Edit Own" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_EDIT_OWN_DESC="Allows the users in this group to edit edit own language translations created by them" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_EDIT_STATE="Language Translations Edit State" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_EDIT_STATE_DESC="Allows the users in this group to update the state of the language translation" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_EDIT_VERSION="Language Translations Edit Version" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version language translations" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_EXPORT="Language Translations Export" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_EXPORT_DESC="Allows the users in this group to export export language translations" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_IMPORT="Language Translations Import" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_IMPORT_DESC="Allows the users in this group to import import language translations" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_SUBMENU="Language Translations Submenu" +COM_COMPONENTBUILDER_LANGUAGE_TRANSLATIONS_SUBMENU_DESC="Allows the users in this group to update the submenu of the language translation" +COM_COMPONENTBUILDER_LAYOUTS_ACCESS="Layouts Access" +COM_COMPONENTBUILDER_LAYOUTS_ACCESS_DESC="Allows the users in this group to access access layouts" +COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE="Layouts Batch Use" +COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch layouts" +COM_COMPONENTBUILDER_LAYOUTS_CREATE="Layouts Create" +COM_COMPONENTBUILDER_LAYOUTS_CREATE_DESC="Allows the users in this group to create create layouts" +COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_ADD="Layouts Dashboard Add" +COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the layout" +COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_LIST="Layouts Dashboard List" +COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the layout" +COM_COMPONENTBUILDER_LAYOUTS_DELETE="Layouts Delete" +COM_COMPONENTBUILDER_LAYOUTS_DELETE_DESC="Allows the users in this group to delete delete layouts" +COM_COMPONENTBUILDER_LAYOUTS_EDIT="Layouts Edit" +COM_COMPONENTBUILDER_LAYOUTS_EDIT_DESC="Allows the users in this group to edit the layout" +COM_COMPONENTBUILDER_LAYOUTS_EDIT_OWN="Layouts Edit Own" +COM_COMPONENTBUILDER_LAYOUTS_EDIT_OWN_DESC="Allows the users in this group to edit edit own layouts created by them" +COM_COMPONENTBUILDER_LAYOUTS_EDIT_STATE="Layouts Edit State" +COM_COMPONENTBUILDER_LAYOUTS_EDIT_STATE_DESC="Allows the users in this group to update the state of the layout" +COM_COMPONENTBUILDER_LAYOUTS_EDIT_VERSION="Layouts Edit Version" +COM_COMPONENTBUILDER_LAYOUTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version layouts" +COM_COMPONENTBUILDER_LAYOUTS_EXPORT="Layouts Export" +COM_COMPONENTBUILDER_LAYOUTS_EXPORT_DESC="Allows the users in this group to export export layouts" +COM_COMPONENTBUILDER_LAYOUTS_IMPORT="Layouts Import" +COM_COMPONENTBUILDER_LAYOUTS_IMPORT_DESC="Allows the users in this group to import import layouts" +COM_COMPONENTBUILDER_LAYOUTS_SUBMENU="Layouts Submenu" +COM_COMPONENTBUILDER_LAYOUTS_SUBMENU_DESC="Allows the users in this group to update the submenu of the layout" COM_COMPONENTBUILDER_MENU="» Component Builder" COM_COMPONENTBUILDER_MENU_ADMIN_VIEWS="Admin Views" COM_COMPONENTBUILDER_MENU_COMPILER="Compiler" @@ -15,3 +651,83 @@ COM_COMPONENTBUILDER_MENU_LAYOUTS="Layouts" COM_COMPONENTBUILDER_MENU_SITE_VIEWS="Site Views" COM_COMPONENTBUILDER_MENU_SNIPPETS="Snippets" COM_COMPONENTBUILDER_MENU_TEMPLATES="Templates" +COM_COMPONENTBUILDER_SITE_VIEWS_ACCESS="Site Views Access" +COM_COMPONENTBUILDER_SITE_VIEWS_ACCESS_DESC="Allows the users in this group to access access site views" +COM_COMPONENTBUILDER_SITE_VIEWS_BATCH_USE="Site Views Batch Use" +COM_COMPONENTBUILDER_SITE_VIEWS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch site views" +COM_COMPONENTBUILDER_SITE_VIEWS_CREATE="Site Views Create" +COM_COMPONENTBUILDER_SITE_VIEWS_CREATE_DESC="Allows the users in this group to create create site views" +COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_ADD="Site Views Dashboard Add" +COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the site view" +COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_LIST="Site Views Dashboard List" +COM_COMPONENTBUILDER_SITE_VIEWS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the site view" +COM_COMPONENTBUILDER_SITE_VIEWS_DELETE="Site Views Delete" +COM_COMPONENTBUILDER_SITE_VIEWS_DELETE_DESC="Allows the users in this group to delete delete site views" +COM_COMPONENTBUILDER_SITE_VIEWS_EDIT="Site Views Edit" +COM_COMPONENTBUILDER_SITE_VIEWS_EDIT_DESC="Allows the users in this group to edit the site view" +COM_COMPONENTBUILDER_SITE_VIEWS_EDIT_OWN="Site Views Edit Own" +COM_COMPONENTBUILDER_SITE_VIEWS_EDIT_OWN_DESC="Allows the users in this group to edit edit own site views created by them" +COM_COMPONENTBUILDER_SITE_VIEWS_EDIT_STATE="Site Views Edit State" +COM_COMPONENTBUILDER_SITE_VIEWS_EDIT_STATE_DESC="Allows the users in this group to update the state of the site view" +COM_COMPONENTBUILDER_SITE_VIEWS_EDIT_VERSION="Site Views Edit Version" +COM_COMPONENTBUILDER_SITE_VIEWS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version site views" +COM_COMPONENTBUILDER_SITE_VIEWS_EXPORT="Site Views Export" +COM_COMPONENTBUILDER_SITE_VIEWS_EXPORT_DESC="Allows the users in this group to export export site views" +COM_COMPONENTBUILDER_SITE_VIEWS_IMPORT="Site Views Import" +COM_COMPONENTBUILDER_SITE_VIEWS_IMPORT_DESC="Allows the users in this group to import import site views" +COM_COMPONENTBUILDER_SITE_VIEWS_SUBMENU="Site Views Submenu" +COM_COMPONENTBUILDER_SITE_VIEWS_SUBMENU_DESC="Allows the users in this group to update the submenu of the site view" +COM_COMPONENTBUILDER_SNIPPETS_ACCESS="Snippets Access" +COM_COMPONENTBUILDER_SNIPPETS_ACCESS_DESC="Allows the users in this group to access access snippets" +COM_COMPONENTBUILDER_SNIPPETS_BATCH_USE="Snippets Batch Use" +COM_COMPONENTBUILDER_SNIPPETS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch snippets" +COM_COMPONENTBUILDER_SNIPPETS_CREATE="Snippets Create" +COM_COMPONENTBUILDER_SNIPPETS_CREATE_DESC="Allows the users in this group to create create snippets" +COM_COMPONENTBUILDER_SNIPPETS_DASHBOARD_ADD="Snippets Dashboard Add" +COM_COMPONENTBUILDER_SNIPPETS_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the snippet" +COM_COMPONENTBUILDER_SNIPPETS_DASHBOARD_LIST="Snippets Dashboard List" +COM_COMPONENTBUILDER_SNIPPETS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the snippet" +COM_COMPONENTBUILDER_SNIPPETS_DELETE="Snippets Delete" +COM_COMPONENTBUILDER_SNIPPETS_DELETE_DESC="Allows the users in this group to delete delete snippets" +COM_COMPONENTBUILDER_SNIPPETS_EDIT="Snippets Edit" +COM_COMPONENTBUILDER_SNIPPETS_EDIT_DESC="Allows the users in this group to edit the snippet" +COM_COMPONENTBUILDER_SNIPPETS_EDIT_OWN="Snippets Edit Own" +COM_COMPONENTBUILDER_SNIPPETS_EDIT_OWN_DESC="Allows the users in this group to edit edit own snippets created by them" +COM_COMPONENTBUILDER_SNIPPETS_EDIT_STATE="Snippets Edit State" +COM_COMPONENTBUILDER_SNIPPETS_EDIT_STATE_DESC="Allows the users in this group to update the state of the snippet" +COM_COMPONENTBUILDER_SNIPPETS_EDIT_VERSION="Snippets Edit Version" +COM_COMPONENTBUILDER_SNIPPETS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version snippets" +COM_COMPONENTBUILDER_SNIPPETS_EXPORT="Snippets Export" +COM_COMPONENTBUILDER_SNIPPETS_EXPORT_DESC="Allows the users in this group to export export snippets" +COM_COMPONENTBUILDER_SNIPPETS_IMPORT="Snippets Import" +COM_COMPONENTBUILDER_SNIPPETS_IMPORT_DESC="Allows the users in this group to import import snippets" +COM_COMPONENTBUILDER_SNIPPETS_SUBMENU="Snippets Submenu" +COM_COMPONENTBUILDER_SNIPPETS_SUBMENU_DESC="Allows the users in this group to update the submenu of the snippet" +COM_COMPONENTBUILDER_TEMPLATES_ACCESS="Templates Access" +COM_COMPONENTBUILDER_TEMPLATES_ACCESS_DESC="Allows the users in this group to access access templates" +COM_COMPONENTBUILDER_TEMPLATES_BATCH_USE="Templates Batch Use" +COM_COMPONENTBUILDER_TEMPLATES_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch templates" +COM_COMPONENTBUILDER_TEMPLATES_CREATE="Templates Create" +COM_COMPONENTBUILDER_TEMPLATES_CREATE_DESC="Allows the users in this group to create create templates" +COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_ADD="Templates Dashboard Add" +COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_ADD_DESC="Allows the users in this group to update the dashboard add of the template" +COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_LIST="Templates Dashboard List" +COM_COMPONENTBUILDER_TEMPLATES_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the template" +COM_COMPONENTBUILDER_TEMPLATES_DELETE="Templates Delete" +COM_COMPONENTBUILDER_TEMPLATES_DELETE_DESC="Allows the users in this group to delete delete templates" +COM_COMPONENTBUILDER_TEMPLATES_EDIT="Templates Edit" +COM_COMPONENTBUILDER_TEMPLATES_EDIT_DESC="Allows the users in this group to edit the template" +COM_COMPONENTBUILDER_TEMPLATES_EDIT_OWN="Templates Edit Own" +COM_COMPONENTBUILDER_TEMPLATES_EDIT_OWN_DESC="Allows the users in this group to edit edit own templates created by them" +COM_COMPONENTBUILDER_TEMPLATES_EDIT_STATE="Templates Edit State" +COM_COMPONENTBUILDER_TEMPLATES_EDIT_STATE_DESC="Allows the users in this group to update the state of the template" +COM_COMPONENTBUILDER_TEMPLATES_EDIT_VERSION="Templates Edit Version" +COM_COMPONENTBUILDER_TEMPLATES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version templates" +COM_COMPONENTBUILDER_TEMPLATES_EXPORT="Templates Export" +COM_COMPONENTBUILDER_TEMPLATES_EXPORT_DESC="Allows the users in this group to export export templates" +COM_COMPONENTBUILDER_TEMPLATES_IMPORT="Templates Import" +COM_COMPONENTBUILDER_TEMPLATES_IMPORT_DESC="Allows the users in this group to import import templates" +COM_COMPONENTBUILDER_TEMPLATES_SUBMENU="Templates Submenu" +COM_COMPONENTBUILDER_TEMPLATES_SUBMENU_DESC="Allows the users in this group to update the submenu of the template" +COM_COMPONENTBUILDER_USE_BATCH="Use Batch" +COM_COMPONENTBUILDER_USE_BATCH_DESC=" Allows users in this group to use batch copy/update method." diff --git a/admin/layouts/admin_view/css_fullwidth.php b/admin/layouts/admin_view/css_fullwidth.php index 87dcb3953..792161cee 100644 --- a/admin/layouts/admin_view/css_fullwidth.php +++ b/admin/layouts/admin_view/css_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage css_fullwidth.php diff --git a/admin/layouts/admin_view/custom_buttons_fullwidth.php b/admin/layouts/admin_view/custom_buttons_fullwidth.php index 60e3d419a..9a162d398 100644 --- a/admin/layouts/admin_view/custom_buttons_fullwidth.php +++ b/admin/layouts/admin_view/custom_buttons_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_fullwidth.php diff --git a/admin/layouts/admin_view/custom_buttons_left.php b/admin/layouts/admin_view/custom_buttons_left.php index 8445d42dd..2a9728564 100644 --- a/admin/layouts/admin_view/custom_buttons_left.php +++ b/admin/layouts/admin_view/custom_buttons_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_left.php diff --git a/admin/layouts/admin_view/custom_import_fullwidth.php b/admin/layouts/admin_view/custom_import_fullwidth.php index cdf958976..d5535a9ee 100644 --- a/admin/layouts/admin_view/custom_import_fullwidth.php +++ b/admin/layouts/admin_view/custom_import_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_import_fullwidth.php diff --git a/admin/layouts/admin_view/fields_fullwidth.php b/admin/layouts/admin_view/fields_fullwidth.php index 9763a520b..59e225c67 100644 --- a/admin/layouts/admin_view/fields_fullwidth.php +++ b/admin/layouts/admin_view/fields_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage fields_fullwidth.php @@ -28,7 +28,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->vxxfields; +$items = $displayData->vxyfields; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit"; diff --git a/admin/layouts/admin_view/javascript_fullwidth.php b/admin/layouts/admin_view/javascript_fullwidth.php index 6000be73f..24ae69e46 100644 --- a/admin/layouts/admin_view/javascript_fullwidth.php +++ b/admin/layouts/admin_view/javascript_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage javascript_fullwidth.php diff --git a/admin/layouts/admin_view/linked_components_fullwidth.php b/admin/layouts/admin_view/linked_components_fullwidth.php index b83ca9ca5..170149af1 100644 --- a/admin/layouts/admin_view/linked_components_fullwidth.php +++ b/admin/layouts/admin_view/linked_components_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage linked_components_fullwidth.php @@ -28,7 +28,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->vxylinked_components; +$items = $displayData->vxzlinked_components; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit"; diff --git a/admin/layouts/admin_view/mysql_fullwidth.php b/admin/layouts/admin_view/mysql_fullwidth.php index ee20e1f96..33f7404ba 100644 --- a/admin/layouts/admin_view/mysql_fullwidth.php +++ b/admin/layouts/admin_view/mysql_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage mysql_fullwidth.php diff --git a/admin/layouts/admin_view/mysql_left.php b/admin/layouts/admin_view/mysql_left.php index 8dd8f0bf8..c25b2f16b 100644 --- a/admin/layouts/admin_view/mysql_left.php +++ b/admin/layouts/admin_view/mysql_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage mysql_left.php diff --git a/admin/layouts/admin_view/php_fullwidth.php b/admin/layouts/admin_view/php_fullwidth.php index e56140549..2d0f17260 100644 --- a/admin/layouts/admin_view/php_fullwidth.php +++ b/admin/layouts/admin_view/php_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage php_fullwidth.php @@ -41,6 +41,8 @@ $fields = $displayData->get('fields') ?: array( 'php_getitems_after_all', 'add_php_getlistquery', 'php_getlistquery', + 'add_php_before_save', + 'php_before_save', 'add_php_save', 'php_save', 'add_php_postsavehook', diff --git a/admin/layouts/admin_view/publishing.php b/admin/layouts/admin_view/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/admin_view/publishing.php +++ b/admin/layouts/admin_view/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/admin_view/publlshing.php b/admin/layouts/admin_view/publlshing.php index 6754d5e40..8e6b361d7 100644 --- a/admin/layouts/admin_view/publlshing.php +++ b/admin/layouts/admin_view/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/admin_view/settings_above.php b/admin/layouts/admin_view/settings_above.php index a115e48f1..ecf0c62c4 100644 --- a/admin/layouts/admin_view/settings_above.php +++ b/admin/layouts/admin_view/settings_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage settings_above.php diff --git a/admin/layouts/admin_view/settings_left.php b/admin/layouts/admin_view/settings_left.php index 339194593..5a6cb770d 100644 --- a/admin/layouts/admin_view/settings_left.php +++ b/admin/layouts/admin_view/settings_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage settings_left.php diff --git a/admin/layouts/admin_view/settings_right.php b/admin/layouts/admin_view/settings_right.php index 116d3130b..1e059a6f2 100644 --- a/admin/layouts/admin_view/settings_right.php +++ b/admin/layouts/admin_view/settings_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage settings_right.php diff --git a/admin/layouts/admin_view/settings_under.php b/admin/layouts/admin_view/settings_under.php index 6bef75787..e20328063 100644 --- a/admin/layouts/admin_view/settings_under.php +++ b/admin/layouts/admin_view/settings_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage settings_under.php diff --git a/admin/layouts/batchselection.php b/admin/layouts/batchselection.php index 6d7fde348..329e67033 100644 --- a/admin/layouts/batchselection.php +++ b/admin/layouts/batchselection.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage batchselection.php diff --git a/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php b/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php index 7b8036fe9..23ee3917f 100644 --- a/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php +++ b/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_fullwidth.php diff --git a/admin/layouts/custom_admin_view/custom_buttons_left.php b/admin/layouts/custom_admin_view/custom_buttons_left.php index 8445d42dd..2a9728564 100644 --- a/admin/layouts/custom_admin_view/custom_buttons_left.php +++ b/admin/layouts/custom_admin_view/custom_buttons_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_left.php diff --git a/admin/layouts/custom_admin_view/custom_script_fullwidth.php b/admin/layouts/custom_admin_view/custom_script_fullwidth.php index ffb03d916..4082edad1 100644 --- a/admin/layouts/custom_admin_view/custom_script_fullwidth.php +++ b/admin/layouts/custom_admin_view/custom_script_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_script_fullwidth.php diff --git a/admin/layouts/custom_admin_view/details_above.php b/admin/layouts/custom_admin_view/details_above.php index 98a185f4c..9f0760397 100644 --- a/admin/layouts/custom_admin_view/details_above.php +++ b/admin/layouts/custom_admin_view/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/custom_admin_view/details_fullwidth.php b/admin/layouts/custom_admin_view/details_fullwidth.php index ab21e7e30..b11e3454e 100644 --- a/admin/layouts/custom_admin_view/details_fullwidth.php +++ b/admin/layouts/custom_admin_view/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/custom_admin_view/details_left.php b/admin/layouts/custom_admin_view/details_left.php index 66c8b3945..c184f5192 100644 --- a/admin/layouts/custom_admin_view/details_left.php +++ b/admin/layouts/custom_admin_view/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/custom_admin_view/details_right.php b/admin/layouts/custom_admin_view/details_right.php index d2ac727d1..8f4c61419 100644 --- a/admin/layouts/custom_admin_view/details_right.php +++ b/admin/layouts/custom_admin_view/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/custom_admin_view/details_rightside.php b/admin/layouts/custom_admin_view/details_rightside.php index ae2c72025..89eb80caa 100644 --- a/admin/layouts/custom_admin_view/details_rightside.php +++ b/admin/layouts/custom_admin_view/details_rightside.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_rightside.php diff --git a/admin/layouts/custom_admin_view/details_under.php b/admin/layouts/custom_admin_view/details_under.php index 894a6aa44..f9ac2d99d 100644 --- a/admin/layouts/custom_admin_view/details_under.php +++ b/admin/layouts/custom_admin_view/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/custom_admin_view/linked_components_fullwidth.php b/admin/layouts/custom_admin_view/linked_components_fullwidth.php index 72cfb66fb..680ee31c5 100644 --- a/admin/layouts/custom_admin_view/linked_components_fullwidth.php +++ b/admin/layouts/custom_admin_view/linked_components_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage linked_components_fullwidth.php @@ -28,7 +28,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->vyilinked_components; +$items = $displayData->vyjlinked_components; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit"; diff --git a/admin/layouts/custom_admin_view/publishing.php b/admin/layouts/custom_admin_view/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/custom_admin_view/publishing.php +++ b/admin/layouts/custom_admin_view/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/custom_admin_view/publlshing.php b/admin/layouts/custom_admin_view/publlshing.php index 6754d5e40..8e6b361d7 100644 --- a/admin/layouts/custom_admin_view/publlshing.php +++ b/admin/layouts/custom_admin_view/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/custom_code/details_above.php b/admin/layouts/custom_code/details_above.php index 82a12e6cf..c90697b31 100644 --- a/admin/layouts/custom_code/details_above.php +++ b/admin/layouts/custom_code/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/custom_code/details_fullwidth.php b/admin/layouts/custom_code/details_fullwidth.php index af796cf88..5c08abae4 100644 --- a/admin/layouts/custom_code/details_fullwidth.php +++ b/admin/layouts/custom_code/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/custom_code/details_left.php b/admin/layouts/custom_code/details_left.php index 91bfbd0bc..93b9da53e 100644 --- a/admin/layouts/custom_code/details_left.php +++ b/admin/layouts/custom_code/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/custom_code/details_right.php b/admin/layouts/custom_code/details_right.php index e25b1ff87..de9e30be5 100644 --- a/admin/layouts/custom_code/details_right.php +++ b/admin/layouts/custom_code/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/custom_code/details_under.php b/admin/layouts/custom_code/details_under.php index 894a6aa44..f9ac2d99d 100644 --- a/admin/layouts/custom_code/details_under.php +++ b/admin/layouts/custom_code/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/custom_code/publishing.php b/admin/layouts/custom_code/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/custom_code/publishing.php +++ b/admin/layouts/custom_code/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/custom_code/publlshing.php b/admin/layouts/custom_code/publlshing.php index 6754d5e40..8e6b361d7 100644 --- a/admin/layouts/custom_code/publlshing.php +++ b/admin/layouts/custom_code/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/dynamic_get/abacus_fullwidth.php b/admin/layouts/dynamic_get/abacus_fullwidth.php index cac0d9c17..2d855a878 100644 --- a/admin/layouts/dynamic_get/abacus_fullwidth.php +++ b/admin/layouts/dynamic_get/abacus_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage abacus_fullwidth.php diff --git a/admin/layouts/dynamic_get/abacus_left.php b/admin/layouts/dynamic_get/abacus_left.php index f344db730..4c9006f37 100644 --- a/admin/layouts/dynamic_get/abacus_left.php +++ b/admin/layouts/dynamic_get/abacus_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage abacus_left.php diff --git a/admin/layouts/dynamic_get/custom_script_fullwidth.php b/admin/layouts/dynamic_get/custom_script_fullwidth.php index 9cc58efd5..2b47c43d5 100644 --- a/admin/layouts/dynamic_get/custom_script_fullwidth.php +++ b/admin/layouts/dynamic_get/custom_script_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_script_fullwidth.php diff --git a/admin/layouts/dynamic_get/gettable_above.php b/admin/layouts/dynamic_get/gettable_above.php index 18ce49833..8c743b424 100644 --- a/admin/layouts/dynamic_get/gettable_above.php +++ b/admin/layouts/dynamic_get/gettable_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage gettable_above.php diff --git a/admin/layouts/dynamic_get/gettable_fullwidth.php b/admin/layouts/dynamic_get/gettable_fullwidth.php index 502778f2b..4a56f4867 100644 --- a/admin/layouts/dynamic_get/gettable_fullwidth.php +++ b/admin/layouts/dynamic_get/gettable_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage gettable_fullwidth.php diff --git a/admin/layouts/dynamic_get/gettable_left.php b/admin/layouts/dynamic_get/gettable_left.php index 54e219092..1617ce45e 100644 --- a/admin/layouts/dynamic_get/gettable_left.php +++ b/admin/layouts/dynamic_get/gettable_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage gettable_left.php diff --git a/admin/layouts/dynamic_get/gettable_right.php b/admin/layouts/dynamic_get/gettable_right.php index ccb630088..8e6c7bbc1 100644 --- a/admin/layouts/dynamic_get/gettable_right.php +++ b/admin/layouts/dynamic_get/gettable_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage gettable_right.php diff --git a/admin/layouts/dynamic_get/gettable_under.php b/admin/layouts/dynamic_get/gettable_under.php index e0701ce78..fd52dadd2 100644 --- a/admin/layouts/dynamic_get/gettable_under.php +++ b/admin/layouts/dynamic_get/gettable_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage gettable_under.php diff --git a/admin/layouts/dynamic_get/publishing.php b/admin/layouts/dynamic_get/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/dynamic_get/publishing.php +++ b/admin/layouts/dynamic_get/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/dynamic_get/publlshing.php b/admin/layouts/dynamic_get/publlshing.php index 6754d5e40..8e6b361d7 100644 --- a/admin/layouts/dynamic_get/publlshing.php +++ b/admin/layouts/dynamic_get/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/field/details_fullwidth.php b/admin/layouts/field/details_fullwidth.php index 77a28ad98..e99e07d45 100644 --- a/admin/layouts/field/details_fullwidth.php +++ b/admin/layouts/field/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/field/details_left.php b/admin/layouts/field/details_left.php index 7db6d741a..c21ef15ac 100644 --- a/admin/layouts/field/details_left.php +++ b/admin/layouts/field/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/field/details_right.php b/admin/layouts/field/details_right.php index c9d064537..9271ad508 100644 --- a/admin/layouts/field/details_right.php +++ b/admin/layouts/field/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/field/details_under.php b/admin/layouts/field/details_under.php index 894a6aa44..f9ac2d99d 100644 --- a/admin/layouts/field/details_under.php +++ b/admin/layouts/field/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/field/linked_admin_views_fullwidth.php b/admin/layouts/field/linked_admin_views_fullwidth.php index e65944b6a..3d350b3d9 100644 --- a/admin/layouts/field/linked_admin_views_fullwidth.php +++ b/admin/layouts/field/linked_admin_views_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage linked_admin_views_fullwidth.php @@ -28,7 +28,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->waalinked_admin_views; +$items = $displayData->wablinked_admin_views; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=admin_views&task=admin_view.edit"; diff --git a/admin/layouts/field/publishing.php b/admin/layouts/field/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/field/publishing.php +++ b/admin/layouts/field/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/field/publlshing.php b/admin/layouts/field/publlshing.php index 6754d5e40..8e6b361d7 100644 --- a/admin/layouts/field/publlshing.php +++ b/admin/layouts/field/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/field/scripts_left.php b/admin/layouts/field/scripts_left.php index 50bfc1e19..00d5148de 100644 --- a/admin/layouts/field/scripts_left.php +++ b/admin/layouts/field/scripts_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage scripts_left.php diff --git a/admin/layouts/field/scripts_right.php b/admin/layouts/field/scripts_right.php index dba655afc..5fa8b29bb 100644 --- a/admin/layouts/field/scripts_right.php +++ b/admin/layouts/field/scripts_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage scripts_right.php diff --git a/admin/layouts/fieldtype/details_left.php b/admin/layouts/fieldtype/details_left.php index 2694ea2ff..438163ec5 100644 --- a/admin/layouts/fieldtype/details_left.php +++ b/admin/layouts/fieldtype/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/fieldtype/details_right.php b/admin/layouts/fieldtype/details_right.php index c3dfc06c5..93c2a99db 100644 --- a/admin/layouts/fieldtype/details_right.php +++ b/admin/layouts/fieldtype/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/fieldtype/fields_fullwidth.php b/admin/layouts/fieldtype/fields_fullwidth.php index 9bee0c30f..e0e36afd0 100644 --- a/admin/layouts/fieldtype/fields_fullwidth.php +++ b/admin/layouts/fieldtype/fields_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage fields_fullwidth.php @@ -28,7 +28,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->wabfields; +$items = $displayData->wacfields; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit"; diff --git a/admin/layouts/fieldtype/publishing.php b/admin/layouts/fieldtype/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/fieldtype/publishing.php +++ b/admin/layouts/fieldtype/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/fieldtype/publlshing.php b/admin/layouts/fieldtype/publlshing.php index 6754d5e40..8e6b361d7 100644 --- a/admin/layouts/fieldtype/publlshing.php +++ b/admin/layouts/fieldtype/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/ftp/details_above.php b/admin/layouts/ftp/details_above.php new file mode 100644 index 000000000..fcebf4092 --- /dev/null +++ b/admin/layouts/ftp/details_above.php @@ -0,0 +1,41 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = array( + 'name' +); + +?> +
+ renderField($field); + } ?> +
diff --git a/admin/layouts/ftp/details_fullwidth.php b/admin/layouts/ftp/details_fullwidth.php new file mode 100644 index 000000000..7947ac0db --- /dev/null +++ b/admin/layouts/ftp/details_fullwidth.php @@ -0,0 +1,49 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'note_ftp_signature', + 'signature' +); + +?> +
+ +
+
+ getLabel($field); ?> +
+
+ getInput($field); ?> +
+
+ +
diff --git a/admin/layouts/ftp/index.html b/admin/layouts/ftp/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/layouts/ftp/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/layouts/ftp/linked_components_fullwidth.php b/admin/layouts/ftp/linked_components_fullwidth.php new file mode 100644 index 000000000..69a3fbca9 --- /dev/null +++ b/admin/layouts/ftp/linked_components_fullwidth.php @@ -0,0 +1,138 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +// set the defaults +$items = $displayData->wadlinked_components; +$user = JFactory::getUser(); +$id = $displayData->item->id; +$edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit"; + +?> +
+ + + + + + + + + + + + + + + + $item): ?> + authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0; + $userChkOut = JFactory::getUser($item->checked_out); + $canDo = ComponentbuilderHelper::getActions('joomla_component',$item,'joomla_components'); + ?> + + + + + + + + published == 1):?> + + published == 0):?> + + published == 2):?> + + published == -2):?> + + + + + + +
+ + + + + + + + + + + + + + + +
+ get('core.edit')): ?> + escape($item->system_name); ?> + checked_out): ?> + name, $item->checked_out_time, 'joomla_components.', $canCheckin); ?> + + +
escape($item->system_name); ?>
+ +
+ escape($item->name_code); ?> + + escape($item->component_version); ?> + + escape($item->short_description); ?> + + escape($item->companyname); ?> + + escape($item->author); ?> + + + + + + + + + + + + + + + + + + id; ?> +
+ +
+ +
+ +
diff --git a/admin/layouts/ftp/publishing.php b/admin/layouts/ftp/publishing.php new file mode 100644 index 000000000..b8c21a1b5 --- /dev/null +++ b/admin/layouts/ftp/publishing.php @@ -0,0 +1,58 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$app = JFactory::getApplication(); +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'created', + 'created_by', + 'modified', + 'modified_by' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/ftp/publlshing.php b/admin/layouts/ftp/publlshing.php new file mode 100644 index 000000000..8e6b361d7 --- /dev/null +++ b/admin/layouts/ftp/publlshing.php @@ -0,0 +1,60 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$app = JFactory::getApplication(); +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'published', + 'ordering', + 'access', + 'version', + 'hits', + 'id' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/layouts/help_document/details_above.php b/admin/layouts/help_document/details_above.php index 5041198e2..e1d6b0d4f 100644 --- a/admin/layouts/help_document/details_above.php +++ b/admin/layouts/help_document/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/help_document/details_fullwidth.php b/admin/layouts/help_document/details_fullwidth.php index 95e5f7e68..052993e77 100644 --- a/admin/layouts/help_document/details_fullwidth.php +++ b/admin/layouts/help_document/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/help_document/details_left.php b/admin/layouts/help_document/details_left.php index f0958e010..3e4cd8b48 100644 --- a/admin/layouts/help_document/details_left.php +++ b/admin/layouts/help_document/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/help_document/details_right.php b/admin/layouts/help_document/details_right.php index b46b10d35..b4408e463 100644 --- a/admin/layouts/help_document/details_right.php +++ b/admin/layouts/help_document/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/help_document/details_under.php b/admin/layouts/help_document/details_under.php index 894a6aa44..f9ac2d99d 100644 --- a/admin/layouts/help_document/details_under.php +++ b/admin/layouts/help_document/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/help_document/publishing.php b/admin/layouts/help_document/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/help_document/publishing.php +++ b/admin/layouts/help_document/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/help_document/publlshing.php b/admin/layouts/help_document/publlshing.php index 044e99e91..d6d1bf9fc 100644 --- a/admin/layouts/help_document/publlshing.php +++ b/admin/layouts/help_document/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/joomla_component/admin_views_fullwidth.php b/admin/layouts/joomla_component/admin_views_fullwidth.php index b38a77408..0062b040a 100644 --- a/admin/layouts/joomla_component/admin_views_fullwidth.php +++ b/admin/layouts/joomla_component/admin_views_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_views_fullwidth.php diff --git a/admin/layouts/joomla_component/custom_admin_views_fullwidth.php b/admin/layouts/joomla_component/custom_admin_views_fullwidth.php index 3db83f7bd..bb636bcb0 100644 --- a/admin/layouts/joomla_component/custom_admin_views_fullwidth.php +++ b/admin/layouts/joomla_component/custom_admin_views_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_admin_views_fullwidth.php diff --git a/admin/layouts/joomla_component/details_above.php b/admin/layouts/joomla_component/details_above.php index 98a185f4c..9f0760397 100644 --- a/admin/layouts/joomla_component/details_above.php +++ b/admin/layouts/joomla_component/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/joomla_component/details_left.php b/admin/layouts/joomla_component/details_left.php index 6b027dc1f..073df828d 100644 --- a/admin/layouts/joomla_component/details_left.php +++ b/admin/layouts/joomla_component/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/joomla_component/details_right.php b/admin/layouts/joomla_component/details_right.php index 34e08195b..908b9ed90 100644 --- a/admin/layouts/joomla_component/details_right.php +++ b/admin/layouts/joomla_component/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/joomla_component/details_under.php b/admin/layouts/joomla_component/details_under.php index 894a6aa44..f9ac2d99d 100644 --- a/admin/layouts/joomla_component/details_under.php +++ b/admin/layouts/joomla_component/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php b/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php index 3f01dbe60..5926122b7 100644 --- a/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php +++ b/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage dynamic_build_beta_fullwidth.php diff --git a/admin/layouts/joomla_component/dynamic_integration_fullwidth.php b/admin/layouts/joomla_component/dynamic_integration_fullwidth.php index ad8733b9f..be9c1fd80 100644 --- a/admin/layouts/joomla_component/dynamic_integration_fullwidth.php +++ b/admin/layouts/joomla_component/dynamic_integration_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage dynamic_integration_fullwidth.php diff --git a/admin/layouts/joomla_component/libs_helpers_fullwidth.php b/admin/layouts/joomla_component/libs_helpers_fullwidth.php index e28b33dcb..25bd81e08 100644 --- a/admin/layouts/joomla_component/libs_helpers_fullwidth.php +++ b/admin/layouts/joomla_component/libs_helpers_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage libs_helpers_fullwidth.php diff --git a/admin/layouts/joomla_component/mysql_fullwidth.php b/admin/layouts/joomla_component/mysql_fullwidth.php index d1c300244..295a6e1b4 100644 --- a/admin/layouts/joomla_component/mysql_fullwidth.php +++ b/admin/layouts/joomla_component/mysql_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage mysql_fullwidth.php diff --git a/admin/layouts/joomla_component/php_fullwidth.php b/admin/layouts/joomla_component/php_fullwidth.php index fecec07ea..232a4689c 100644 --- a/admin/layouts/joomla_component/php_fullwidth.php +++ b/admin/layouts/joomla_component/php_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage php_fullwidth.php diff --git a/admin/layouts/joomla_component/publishing.php b/admin/layouts/joomla_component/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/joomla_component/publishing.php +++ b/admin/layouts/joomla_component/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/joomla_component/publlshing.php b/admin/layouts/joomla_component/publlshing.php index 6754d5e40..8e6b361d7 100644 --- a/admin/layouts/joomla_component/publlshing.php +++ b/admin/layouts/joomla_component/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/joomla_component/readme_left.php b/admin/layouts/joomla_component/readme_left.php index 0c4459c7b..07062235d 100644 --- a/admin/layouts/joomla_component/readme_left.php +++ b/admin/layouts/joomla_component/readme_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage readme_left.php diff --git a/admin/layouts/joomla_component/readme_right.php b/admin/layouts/joomla_component/readme_right.php index bc2a81bd2..360dfc691 100644 --- a/admin/layouts/joomla_component/readme_right.php +++ b/admin/layouts/joomla_component/readme_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage readme_right.php diff --git a/admin/layouts/joomla_component/settings_left.php b/admin/layouts/joomla_component/settings_left.php index cfd40b41e..39da3c41e 100644 --- a/admin/layouts/joomla_component/settings_left.php +++ b/admin/layouts/joomla_component/settings_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage settings_left.php diff --git a/admin/layouts/joomla_component/settings_right.php b/admin/layouts/joomla_component/settings_right.php index ed438cadd..f68efdcb2 100644 --- a/admin/layouts/joomla_component/settings_right.php +++ b/admin/layouts/joomla_component/settings_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage settings_right.php @@ -41,6 +41,9 @@ $fields = $displayData->get('fields') ?: array( 'note_add_folders', 'addfolders', 'spacer_hr_f', + 'to_ignore_note', + 'toignore', + 'spacer_hr_g', 'jcb_export_package_note', 'export_key', 'export_package_link', diff --git a/admin/layouts/joomla_component/site_views_fullwidth.php b/admin/layouts/joomla_component/site_views_fullwidth.php index 9d0f1afc1..5f1c109bf 100644 --- a/admin/layouts/joomla_component/site_views_fullwidth.php +++ b/admin/layouts/joomla_component/site_views_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage site_views_fullwidth.php diff --git a/admin/layouts/joomla_component/translation_fullwidth.php b/admin/layouts/joomla_component/translation_fullwidth.php index 21fe83fc1..1c180b242 100644 --- a/admin/layouts/joomla_component/translation_fullwidth.php +++ b/admin/layouts/joomla_component/translation_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage translation_fullwidth.php diff --git a/admin/layouts/language/details_left.php b/admin/layouts/language/details_left.php index e3cf25925..fd2aad6f2 100644 --- a/admin/layouts/language/details_left.php +++ b/admin/layouts/language/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/language/details_right.php b/admin/layouts/language/details_right.php index 53b879110..6a4cdcb8c 100644 --- a/admin/layouts/language/details_right.php +++ b/admin/layouts/language/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/language/publishing.php b/admin/layouts/language/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/language/publishing.php +++ b/admin/layouts/language/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/language/publlshing.php b/admin/layouts/language/publlshing.php index 6754d5e40..8e6b361d7 100644 --- a/admin/layouts/language/publlshing.php +++ b/admin/layouts/language/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/language_translation/details_above.php b/admin/layouts/language_translation/details_above.php index c50ec0615..42c7c2a9d 100644 --- a/admin/layouts/language_translation/details_above.php +++ b/admin/layouts/language_translation/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/language_translation/details_fullwidth.php b/admin/layouts/language_translation/details_fullwidth.php index 9eb97206a..48655c6d5 100644 --- a/admin/layouts/language_translation/details_fullwidth.php +++ b/admin/layouts/language_translation/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/language_translation/publishing.php b/admin/layouts/language_translation/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/language_translation/publishing.php +++ b/admin/layouts/language_translation/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/language_translation/publlshing.php b/admin/layouts/language_translation/publlshing.php index 6754d5e40..8e6b361d7 100644 --- a/admin/layouts/language_translation/publlshing.php +++ b/admin/layouts/language_translation/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/layout/custom_script_fullwidth.php b/admin/layouts/layout/custom_script_fullwidth.php index 668ed5c03..364b79bed 100644 --- a/admin/layouts/layout/custom_script_fullwidth.php +++ b/admin/layouts/layout/custom_script_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_script_fullwidth.php diff --git a/admin/layouts/layout/details_fullwidth.php b/admin/layouts/layout/details_fullwidth.php index ba2ab01dc..605e759b3 100644 --- a/admin/layouts/layout/details_fullwidth.php +++ b/admin/layouts/layout/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/layout/details_left.php b/admin/layouts/layout/details_left.php index 9afdf990d..bad8ca1b6 100644 --- a/admin/layouts/layout/details_left.php +++ b/admin/layouts/layout/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/layout/details_right.php b/admin/layouts/layout/details_right.php index e39aeff1d..bc16d0cff 100644 --- a/admin/layouts/layout/details_right.php +++ b/admin/layouts/layout/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/layout/details_rightside.php b/admin/layouts/layout/details_rightside.php index 6f7cb2d68..9b49750d7 100644 --- a/admin/layouts/layout/details_rightside.php +++ b/admin/layouts/layout/details_rightside.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_rightside.php diff --git a/admin/layouts/layout/details_under.php b/admin/layouts/layout/details_under.php index 894a6aa44..f9ac2d99d 100644 --- a/admin/layouts/layout/details_under.php +++ b/admin/layouts/layout/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/layout/publishing.php b/admin/layouts/layout/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/layout/publishing.php +++ b/admin/layouts/layout/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/layout/publlshing.php b/admin/layouts/layout/publlshing.php index 6754d5e40..8e6b361d7 100644 --- a/admin/layouts/layout/publlshing.php +++ b/admin/layouts/layout/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/site_view/custom_buttons_fullwidth.php b/admin/layouts/site_view/custom_buttons_fullwidth.php index 7b8036fe9..23ee3917f 100644 --- a/admin/layouts/site_view/custom_buttons_fullwidth.php +++ b/admin/layouts/site_view/custom_buttons_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_fullwidth.php diff --git a/admin/layouts/site_view/custom_buttons_left.php b/admin/layouts/site_view/custom_buttons_left.php index bde4e62b9..0f4d42aa3 100644 --- a/admin/layouts/site_view/custom_buttons_left.php +++ b/admin/layouts/site_view/custom_buttons_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_left.php diff --git a/admin/layouts/site_view/custom_buttons_right.php b/admin/layouts/site_view/custom_buttons_right.php index b251e5cec..eef250b1b 100644 --- a/admin/layouts/site_view/custom_buttons_right.php +++ b/admin/layouts/site_view/custom_buttons_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_buttons_right.php diff --git a/admin/layouts/site_view/details_above.php b/admin/layouts/site_view/details_above.php index 98a185f4c..9f0760397 100644 --- a/admin/layouts/site_view/details_above.php +++ b/admin/layouts/site_view/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/site_view/details_fullwidth.php b/admin/layouts/site_view/details_fullwidth.php index ab21e7e30..b11e3454e 100644 --- a/admin/layouts/site_view/details_fullwidth.php +++ b/admin/layouts/site_view/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/site_view/details_left.php b/admin/layouts/site_view/details_left.php index 66c8b3945..c184f5192 100644 --- a/admin/layouts/site_view/details_left.php +++ b/admin/layouts/site_view/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/site_view/details_right.php b/admin/layouts/site_view/details_right.php index e39aeff1d..bc16d0cff 100644 --- a/admin/layouts/site_view/details_right.php +++ b/admin/layouts/site_view/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/site_view/details_rightside.php b/admin/layouts/site_view/details_rightside.php index ae2c72025..89eb80caa 100644 --- a/admin/layouts/site_view/details_rightside.php +++ b/admin/layouts/site_view/details_rightside.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_rightside.php diff --git a/admin/layouts/site_view/details_under.php b/admin/layouts/site_view/details_under.php index 894a6aa44..f9ac2d99d 100644 --- a/admin/layouts/site_view/details_under.php +++ b/admin/layouts/site_view/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/site_view/javascript_css_fullwidth.php b/admin/layouts/site_view/javascript_css_fullwidth.php index 65af344a2..4b6a1aa17 100644 --- a/admin/layouts/site_view/javascript_css_fullwidth.php +++ b/admin/layouts/site_view/javascript_css_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage javascript_css_fullwidth.php diff --git a/admin/layouts/site_view/linked_components_fullwidth.php b/admin/layouts/site_view/linked_components_fullwidth.php index f366f920a..fb9375c76 100644 --- a/admin/layouts/site_view/linked_components_fullwidth.php +++ b/admin/layouts/site_view/linked_components_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage linked_components_fullwidth.php @@ -28,7 +28,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->vytlinked_components; +$items = $displayData->vyulinked_components; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit"; diff --git a/admin/layouts/site_view/php_fullwidth.php b/admin/layouts/site_view/php_fullwidth.php index f774d64fc..42b09d5e1 100644 --- a/admin/layouts/site_view/php_fullwidth.php +++ b/admin/layouts/site_view/php_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage php_fullwidth.php diff --git a/admin/layouts/site_view/publishing.php b/admin/layouts/site_view/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/site_view/publishing.php +++ b/admin/layouts/site_view/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/site_view/publlshing.php b/admin/layouts/site_view/publlshing.php index 6754d5e40..8e6b361d7 100644 --- a/admin/layouts/site_view/publlshing.php +++ b/admin/layouts/site_view/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/snippet/details_above.php b/admin/layouts/snippet/details_above.php index 189fc6075..22c43e2d3 100644 --- a/admin/layouts/snippet/details_above.php +++ b/admin/layouts/snippet/details_above.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_above.php diff --git a/admin/layouts/snippet/details_left.php b/admin/layouts/snippet/details_left.php index a701c98dc..d23297851 100644 --- a/admin/layouts/snippet/details_left.php +++ b/admin/layouts/snippet/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/snippet/details_right.php b/admin/layouts/snippet/details_right.php index caea0b65b..d4218f1b6 100644 --- a/admin/layouts/snippet/details_right.php +++ b/admin/layouts/snippet/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/snippet/publishing.php b/admin/layouts/snippet/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/snippet/publishing.php +++ b/admin/layouts/snippet/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/snippet/publlshing.php b/admin/layouts/snippet/publlshing.php index 6754d5e40..8e6b361d7 100644 --- a/admin/layouts/snippet/publlshing.php +++ b/admin/layouts/snippet/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/layouts/template/custom_script_fullwidth.php b/admin/layouts/template/custom_script_fullwidth.php index 668ed5c03..364b79bed 100644 --- a/admin/layouts/template/custom_script_fullwidth.php +++ b/admin/layouts/template/custom_script_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage custom_script_fullwidth.php diff --git a/admin/layouts/template/details_fullwidth.php b/admin/layouts/template/details_fullwidth.php index 34a0b2e2a..882f0c0ca 100644 --- a/admin/layouts/template/details_fullwidth.php +++ b/admin/layouts/template/details_fullwidth.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_fullwidth.php diff --git a/admin/layouts/template/details_left.php b/admin/layouts/template/details_left.php index 9afdf990d..bad8ca1b6 100644 --- a/admin/layouts/template/details_left.php +++ b/admin/layouts/template/details_left.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_left.php diff --git a/admin/layouts/template/details_right.php b/admin/layouts/template/details_right.php index e39aeff1d..bc16d0cff 100644 --- a/admin/layouts/template/details_right.php +++ b/admin/layouts/template/details_right.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_right.php diff --git a/admin/layouts/template/details_rightside.php b/admin/layouts/template/details_rightside.php index 6f7cb2d68..9b49750d7 100644 --- a/admin/layouts/template/details_rightside.php +++ b/admin/layouts/template/details_rightside.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_rightside.php diff --git a/admin/layouts/template/details_under.php b/admin/layouts/template/details_under.php index 894a6aa44..f9ac2d99d 100644 --- a/admin/layouts/template/details_under.php +++ b/admin/layouts/template/details_under.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage details_under.php diff --git a/admin/layouts/template/publishing.php b/admin/layouts/template/publishing.php index e80b73b9f..b8c21a1b5 100644 --- a/admin/layouts/template/publishing.php +++ b/admin/layouts/template/publishing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publishing.php diff --git a/admin/layouts/template/publlshing.php b/admin/layouts/template/publlshing.php index 6754d5e40..8e6b361d7 100644 --- a/admin/layouts/template/publlshing.php +++ b/admin/layouts/template/publlshing.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage publlshing.php diff --git a/admin/models/admin_view.php b/admin/models/admin_view.php index de790c114..270964c5d 100644 --- a/admin/models/admin_view.php +++ b/admin/models/admin_view.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_view.php @@ -95,22 +95,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->metadata = $registry->toArray(); } - if (!empty($item->php_getitems_after_all)) + if (!empty($item->php_batchmove)) { - // base64 Decode php_getitems_after_all. - $item->php_getitems_after_all = base64_decode($item->php_getitems_after_all); - } - - if (!empty($item->php_after_publish)) - { - // base64 Decode php_after_publish. - $item->php_after_publish = base64_decode($item->php_after_publish); - } - - if (!empty($item->php_allowedit)) - { - // base64 Decode php_allowedit. - $item->php_allowedit = base64_decode($item->php_allowedit); + // base64 Decode php_batchmove. + $item->php_batchmove = base64_decode($item->php_batchmove); } if (!empty($item->php_save)) @@ -119,28 +107,52 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->php_save = base64_decode($item->php_save); } - if (!empty($item->php_batchmove)) - { - // base64 Decode php_batchmove. - $item->php_batchmove = base64_decode($item->php_batchmove); - } - if (!empty($item->php_after_delete)) { // base64 Decode php_after_delete. $item->php_after_delete = base64_decode($item->php_after_delete); } + if (!empty($item->php_getlistquery)) + { + // base64 Decode php_getlistquery. + $item->php_getlistquery = base64_decode($item->php_getlistquery); + } + + if (!empty($item->php_allowedit)) + { + // base64 Decode php_allowedit. + $item->php_allowedit = base64_decode($item->php_allowedit); + } + + if (!empty($item->php_after_publish)) + { + // base64 Decode php_after_publish. + $item->php_after_publish = base64_decode($item->php_after_publish); + } + if (!empty($item->php_getitems)) { // base64 Decode php_getitems. $item->php_getitems = base64_decode($item->php_getitems); } - if (!empty($item->php_getlistquery)) + if (!empty($item->php_import)) { - // base64 Decode php_getlistquery. - $item->php_getlistquery = base64_decode($item->php_getlistquery); + // base64 Decode php_import. + $item->php_import = base64_decode($item->php_import); + } + + if (!empty($item->php_getitems_after_all)) + { + // base64 Decode php_getitems_after_all. + $item->php_getitems_after_all = base64_decode($item->php_getitems_after_all); + } + + if (!empty($item->php_before_save)) + { + // base64 Decode php_before_save. + $item->php_before_save = base64_decode($item->php_before_save); } if (!empty($item->php_postsavehook)) @@ -167,12 +179,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->php_before_delete = base64_decode($item->php_before_delete); } - if (!empty($item->php_import)) - { - // base64 Decode php_import. - $item->php_import = base64_decode($item->php_import); - } - if (!empty($item->php_document)) { // base64 Decode php_document. @@ -185,18 +191,18 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->sql = base64_decode($item->sql); } - if (!empty($item->php_getitem)) - { - // base64 Decode php_getitem. - $item->php_getitem = base64_decode($item->php_getitem); - } - if (!empty($item->php_import_display)) { // base64 Decode php_import_display. $item->php_import_display = base64_decode($item->php_import_display); } + if (!empty($item->php_getitem)) + { + // base64 Decode php_getitem. + $item->php_getitem = base64_decode($item->php_getitem); + } + if (!empty($item->php_import_save)) { // base64 Decode php_import_save. @@ -263,18 +269,18 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->php_model_list = base64_decode($item->php_model_list); } - if (!empty($item->html_import_view)) - { - // base64 Decode html_import_view. - $item->html_import_view = base64_decode($item->html_import_view); - } - if (!empty($item->php_ajaxmethod)) { // base64 Decode php_ajaxmethod. $item->php_ajaxmethod = base64_decode($item->php_ajaxmethod); } + if (!empty($item->html_import_view)) + { + // base64 Decode html_import_view. + $item->html_import_view = base64_decode($item->html_import_view); + } + if (!empty($item->php_import_setdata)) { // base64 Decode php_import_setdata. @@ -304,7 +310,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getVxxfields() + public function getVxyfields() { // Get the user object. $user = JFactory::getUser(); @@ -373,13 +379,13 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin foreach ($items as $nr => &$item) { // convert datatype - $item->datatype = $this->selectionTranslationVxxfields($item->datatype, 'datatype'); + $item->datatype = $this->selectionTranslationVxyfields($item->datatype, 'datatype'); // convert indexes - $item->indexes = $this->selectionTranslationVxxfields($item->indexes, 'indexes'); + $item->indexes = $this->selectionTranslationVxyfields($item->indexes, 'indexes'); // convert null_switch - $item->null_switch = $this->selectionTranslationVxxfields($item->null_switch, 'null_switch'); + $item->null_switch = $this->selectionTranslationVxyfields($item->null_switch, 'null_switch'); // convert store - $item->store = $this->selectionTranslationVxxfields($item->store, 'store'); + $item->store = $this->selectionTranslationVxyfields($item->store, 'store'); } } @@ -419,7 +425,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin * * @return translatable string */ - public function selectionTranslationVxxfields($value,$name) + public function selectionTranslationVxyfields($value,$name) { // Array of datatype language strings if ($name === 'datatype') @@ -497,7 +503,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getVxylinked_components() + public function getVxzlinked_components() { // Get the user object. $user = JFactory::getUser(); @@ -638,6 +644,1343 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin // Disable fields while saving. $form->setFieldAttribute('created', 'filter', 'unset'); } + // Modify the form based on Edit System Name access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.system_name', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.system_name', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('system_name', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('system_name', 'readonly', 'true'); + if (!$form->getValue('system_name')) + { + // Disable fields while saving. + $form->setFieldAttribute('system_name', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('system_name', 'required', 'false'); + } + } + // Modify the form based on Edit Name Single access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.name_single', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.name_single', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('name_single', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('name_single', 'readonly', 'true'); + if (!$form->getValue('name_single')) + { + // Disable fields while saving. + $form->setFieldAttribute('name_single', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('name_single', 'required', 'false'); + } + } + // Modify the form based on Edit Name List access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.name_list', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.name_list', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('name_list', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('name_list', 'readonly', 'true'); + if (!$form->getValue('name_list')) + { + // Disable fields while saving. + $form->setFieldAttribute('name_list', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('name_list', 'required', 'false'); + } + } + // Modify the form based on Edit Short Description access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.short_description', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.short_description', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('short_description', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('short_description', 'readonly', 'true'); + if (!$form->getValue('short_description')) + { + // Disable fields while saving. + $form->setFieldAttribute('short_description', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('short_description', 'required', 'false'); + } + } + // Modify the form based on Edit Php Batchmove access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_batchmove', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_batchmove', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_batchmove', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_batchmove', 'readonly', 'true'); + if (!$form->getValue('php_batchmove')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_batchmove', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_batchmove', 'required', 'false'); + } + } + // Modify the form based on Edit Type access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.type', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.type', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('type', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('type', 'readonly', 'true'); + if (!$form->getValue('type')) + { + // Disable fields while saving. + $form->setFieldAttribute('type', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('type', 'required', 'false'); + } + } + // Modify the form based on Edit Php Save access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_save', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_save', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_save', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_save', 'readonly', 'true'); + if (!$form->getValue('php_save')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_save', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_save', 'required', 'false'); + } + } + // Modify the form based on Edit Description access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.description', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.description', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('description', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('description', 'readonly', 'true'); + if (!$form->getValue('description')) + { + // Disable fields while saving. + $form->setFieldAttribute('description', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('description', 'required', 'false'); + } + } + // Modify the form based on Edit Php After Delete access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_after_delete', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_after_delete', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_after_delete', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_after_delete', 'readonly', 'true'); + if (!$form->getValue('php_after_delete')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_after_delete', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_after_delete', 'required', 'false'); + } + } + // Modify the form based on Edit Add Fadein access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_fadein', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_fadein', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_fadein', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_fadein', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_fadein', 'class', ''); + $form->setFieldAttribute('add_fadein', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_fadein')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_fadein', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_fadein', 'required', 'false'); + } + } + // Modify the form based on Edit Icon access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.icon', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.icon', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('icon', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('icon', 'readonly', 'true'); + if (!$form->getValue('icon')) + { + // Disable fields while saving. + $form->setFieldAttribute('icon', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('icon', 'required', 'false'); + } + } + // Modify the form based on Edit Php Getlistquery access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_getlistquery', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_getlistquery', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_getlistquery', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_getlistquery', 'readonly', 'true'); + if (!$form->getValue('php_getlistquery')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_getlistquery', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_getlistquery', 'required', 'false'); + } + } + // Modify the form based on Edit Icon Add access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.icon_add', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.icon_add', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('icon_add', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('icon_add', 'readonly', 'true'); + if (!$form->getValue('icon_add')) + { + // Disable fields while saving. + $form->setFieldAttribute('icon_add', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('icon_add', 'required', 'false'); + } + } + // Modify the form based on Edit Php Allowedit access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_allowedit', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_allowedit', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_allowedit', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_allowedit', 'readonly', 'true'); + if (!$form->getValue('php_allowedit')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_allowedit', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_allowedit', 'required', 'false'); + } + } + // Modify the form based on Edit Icon Category access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.icon_category', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.icon_category', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('icon_category', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('icon_category', 'readonly', 'true'); + if (!$form->getValue('icon_category')) + { + // Disable fields while saving. + $form->setFieldAttribute('icon_category', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('icon_category', 'required', 'false'); + } + } + // Modify the form based on Edit Php After Publish access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_after_publish', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_after_publish', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_after_publish', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_after_publish', 'readonly', 'true'); + if (!$form->getValue('php_after_publish')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_after_publish', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_after_publish', 'required', 'false'); + } + } + // Modify the form based on Edit Source access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.source', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.source', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('source', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('source', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('source', 'class', ''); + $form->setFieldAttribute('source', 'class', $class.' disabled no-click'); + if (!$form->getValue('source')) + { + // Disable fields while saving. + $form->setFieldAttribute('source', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('source', 'required', 'false'); + } + } + // Modify the form based on Edit Php Getitems access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_getitems', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_getitems', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_getitems', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_getitems', 'readonly', 'true'); + if (!$form->getValue('php_getitems')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_getitems', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_getitems', 'required', 'false'); + } + } + // Modify the form based on Edit Php Import access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_import', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_import', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_import', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_import', 'readonly', 'true'); + if (!$form->getValue('php_import')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_import', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_import', 'required', 'false'); + } + } + // Modify the form based on Edit Addpermissions access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.addpermissions', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.addpermissions', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addpermissions', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addpermissions', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addpermissions', 'class', ''); + $form->setFieldAttribute('addpermissions', 'class', $class.' disabled no-click'); + if (!$form->getValue('addpermissions')) + { + // Disable fields while saving. + $form->setFieldAttribute('addpermissions', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addpermissions', 'required', 'false'); + } + } + // Modify the form based on Edit Php Getitems After All access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_getitems_after_all', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_getitems_after_all', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_getitems_after_all', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_getitems_after_all', 'readonly', 'true'); + if (!$form->getValue('php_getitems_after_all')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_getitems_after_all', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_getitems_after_all', 'required', 'false'); + } + } + // Modify the form based on Edit Addtabs access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.addtabs', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.addtabs', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addtabs', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addtabs', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addtabs', 'class', ''); + $form->setFieldAttribute('addtabs', 'class', $class.' disabled no-click'); + if (!$form->getValue('addtabs')) + { + // Disable fields while saving. + $form->setFieldAttribute('addtabs', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addtabs', 'required', 'false'); + } + } + // Modify the form based on Edit Php Before Save access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_before_save', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_before_save', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_before_save', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_before_save', 'readonly', 'true'); + if (!$form->getValue('php_before_save')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_before_save', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_before_save', 'required', 'false'); + } + } + // Modify the form based on Edit Php Postsavehook access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_postsavehook', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_postsavehook', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_postsavehook', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_postsavehook', 'readonly', 'true'); + if (!$form->getValue('php_postsavehook')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_postsavehook', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_postsavehook', 'required', 'false'); + } + } + // Modify the form based on Edit Addfields access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.addfields', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.addfields', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addfields', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addfields', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addfields', 'class', ''); + $form->setFieldAttribute('addfields', 'class', $class.' disabled no-click'); + if (!$form->getValue('addfields')) + { + // Disable fields while saving. + $form->setFieldAttribute('addfields', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addfields', 'required', 'false'); + } + } + // Modify the form based on Edit Php Batchcopy access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_batchcopy', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_batchcopy', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_batchcopy', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_batchcopy', 'readonly', 'true'); + if (!$form->getValue('php_batchcopy')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_batchcopy', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_batchcopy', 'required', 'false'); + } + } + // Modify the form based on Edit Php Before Publish access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_before_publish', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_before_publish', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_before_publish', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_before_publish', 'readonly', 'true'); + if (!$form->getValue('php_before_publish')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_before_publish', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_before_publish', 'required', 'false'); + } + } + // Modify the form based on Edit Addconditions access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.addconditions', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.addconditions', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addconditions', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addconditions', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addconditions', 'class', ''); + $form->setFieldAttribute('addconditions', 'class', $class.' disabled no-click'); + if (!$form->getValue('addconditions')) + { + // Disable fields while saving. + $form->setFieldAttribute('addconditions', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addconditions', 'required', 'false'); + } + } + // Modify the form based on Edit Php Before Delete access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_before_delete', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_before_delete', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_before_delete', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_before_delete', 'readonly', 'true'); + if (!$form->getValue('php_before_delete')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_before_delete', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_before_delete', 'required', 'false'); + } + } + // Modify the form based on Edit Addlinked Views access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.addlinked_views', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.addlinked_views', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addlinked_views', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addlinked_views', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addlinked_views', 'class', ''); + $form->setFieldAttribute('addlinked_views', 'class', $class.' disabled no-click'); + if (!$form->getValue('addlinked_views')) + { + // Disable fields while saving. + $form->setFieldAttribute('addlinked_views', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addlinked_views', 'required', 'false'); + } + } + // Modify the form based on Edit Php Document access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_document', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_document', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_document', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_document', 'readonly', 'true'); + if (!$form->getValue('php_document')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_document', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_document', 'required', 'false'); + } + } + // Modify the form based on Edit Sql access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.sql', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.sql', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('sql', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('sql', 'readonly', 'true'); + if (!$form->getValue('sql')) + { + // Disable fields while saving. + $form->setFieldAttribute('sql', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('sql', 'required', 'false'); + } + } + // Modify the form based on Edit Php Import Display access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_import_display', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_import_display', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_import_display', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_import_display', 'readonly', 'true'); + if (!$form->getValue('php_import_display')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_import_display', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_import_display', 'required', 'false'); + } + } + // Modify the form based on Edit Php Getitem access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_getitem', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_getitem', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_getitem', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_getitem', 'readonly', 'true'); + if (!$form->getValue('php_getitem')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_getitem', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_getitem', 'required', 'false'); + } + } + // Modify the form based on Edit Php Import Save access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_import_save', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_import_save', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_import_save', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_import_save', 'readonly', 'true'); + if (!$form->getValue('php_import_save')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_import_save', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_import_save', 'required', 'false'); + } + } + // Modify the form based on Edit Add Css View access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_css_view', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_css_view', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_css_view', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_css_view', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_css_view', 'class', ''); + $form->setFieldAttribute('add_css_view', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_css_view')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_css_view', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_css_view', 'required', 'false'); + } + } + // Modify the form based on Edit Css View access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.css_view', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.css_view', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('css_view', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('css_view', 'readonly', 'true'); + if (!$form->getValue('css_view')) + { + // Disable fields while saving. + $form->setFieldAttribute('css_view', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('css_view', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Getitems access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_getitems', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_getitems', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_getitems', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_getitems', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_getitems', 'class', ''); + $form->setFieldAttribute('add_php_getitems', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_getitems')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_getitems', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_getitems', 'required', 'false'); + } + } + // Modify the form based on Edit Add Css Views access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_css_views', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_css_views', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_css_views', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_css_views', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_css_views', 'class', ''); + $form->setFieldAttribute('add_css_views', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_css_views')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_css_views', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_css_views', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Getitems After All access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_getitems_after_all', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_getitems_after_all', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_getitems_after_all', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_getitems_after_all', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_getitems_after_all', 'class', ''); + $form->setFieldAttribute('add_php_getitems_after_all', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_getitems_after_all')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_getitems_after_all', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_getitems_after_all', 'required', 'false'); + } + } + // Modify the form based on Edit Css Views access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.css_views', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.css_views', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('css_views', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('css_views', 'readonly', 'true'); + if (!$form->getValue('css_views')) + { + // Disable fields while saving. + $form->setFieldAttribute('css_views', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('css_views', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Getlistquery access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_getlistquery', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_getlistquery', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_getlistquery', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_getlistquery', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_getlistquery', 'class', ''); + $form->setFieldAttribute('add_php_getlistquery', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_getlistquery')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_getlistquery', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_getlistquery', 'required', 'false'); + } + } + // Modify the form based on Edit Add Javascript View File access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_javascript_view_file', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_javascript_view_file', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_javascript_view_file', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_javascript_view_file', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_javascript_view_file', 'class', ''); + $form->setFieldAttribute('add_javascript_view_file', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_javascript_view_file')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_javascript_view_file', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_javascript_view_file', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Before Save access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_before_save', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_before_save', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_before_save', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_before_save', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_before_save', 'class', ''); + $form->setFieldAttribute('add_php_before_save', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_before_save')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_before_save', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_before_save', 'required', 'false'); + } + } + // Modify the form based on Edit Javascript View File access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.javascript_view_file', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.javascript_view_file', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('javascript_view_file', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('javascript_view_file', 'readonly', 'true'); + if (!$form->getValue('javascript_view_file')) + { + // Disable fields while saving. + $form->setFieldAttribute('javascript_view_file', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('javascript_view_file', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Save access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_save', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_save', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_save', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_save', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_save', 'class', ''); + $form->setFieldAttribute('add_php_save', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_save')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_save', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_save', 'required', 'false'); + } + } + // Modify the form based on Edit Add Javascript View Footer access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_javascript_view_footer', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_javascript_view_footer', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_javascript_view_footer', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_javascript_view_footer', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_javascript_view_footer', 'class', ''); + $form->setFieldAttribute('add_javascript_view_footer', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_javascript_view_footer')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_javascript_view_footer', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_javascript_view_footer', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Postsavehook access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_postsavehook', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_postsavehook', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_postsavehook', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_postsavehook', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_postsavehook', 'class', ''); + $form->setFieldAttribute('add_php_postsavehook', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_postsavehook')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_postsavehook', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_postsavehook', 'required', 'false'); + } + } + // Modify the form based on Edit Javascript View Footer access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.javascript_view_footer', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.javascript_view_footer', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('javascript_view_footer', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('javascript_view_footer', 'readonly', 'true'); + if (!$form->getValue('javascript_view_footer')) + { + // Disable fields while saving. + $form->setFieldAttribute('javascript_view_footer', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('javascript_view_footer', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Allowedit access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_allowedit', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_allowedit', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_allowedit', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_allowedit', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_allowedit', 'class', ''); + $form->setFieldAttribute('add_php_allowedit', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_allowedit')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_allowedit', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_allowedit', 'required', 'false'); + } + } + // Modify the form based on Edit Add Javascript Views File access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_javascript_views_file', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_javascript_views_file', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_javascript_views_file', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_javascript_views_file', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_javascript_views_file', 'class', ''); + $form->setFieldAttribute('add_javascript_views_file', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_javascript_views_file')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_javascript_views_file', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_javascript_views_file', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Batchcopy access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_batchcopy', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_batchcopy', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_batchcopy', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_batchcopy', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_batchcopy', 'class', ''); + $form->setFieldAttribute('add_php_batchcopy', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_batchcopy')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_batchcopy', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_batchcopy', 'required', 'false'); + } + } + // Modify the form based on Edit Javascript Views File access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.javascript_views_file', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.javascript_views_file', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('javascript_views_file', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('javascript_views_file', 'readonly', 'true'); + if (!$form->getValue('javascript_views_file')) + { + // Disable fields while saving. + $form->setFieldAttribute('javascript_views_file', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('javascript_views_file', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Batchmove access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_batchmove', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_batchmove', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_batchmove', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_batchmove', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_batchmove', 'class', ''); + $form->setFieldAttribute('add_php_batchmove', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_batchmove')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_batchmove', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_batchmove', 'required', 'false'); + } + } + // Modify the form based on Edit Add Javascript Views Footer access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_javascript_views_footer', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_javascript_views_footer', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_javascript_views_footer', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_javascript_views_footer', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_javascript_views_footer', 'class', ''); + $form->setFieldAttribute('add_javascript_views_footer', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_javascript_views_footer')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_javascript_views_footer', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_javascript_views_footer', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Before Publish access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_before_publish', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_before_publish', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_before_publish', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_before_publish', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_before_publish', 'class', ''); + $form->setFieldAttribute('add_php_before_publish', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_before_publish')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_before_publish', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_before_publish', 'required', 'false'); + } + } + // Modify the form based on Edit Javascript Views Footer access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.javascript_views_footer', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.javascript_views_footer', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('javascript_views_footer', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('javascript_views_footer', 'readonly', 'true'); + if (!$form->getValue('javascript_views_footer')) + { + // Disable fields while saving. + $form->setFieldAttribute('javascript_views_footer', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('javascript_views_footer', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php After Publish access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_after_publish', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_after_publish', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_after_publish', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_after_publish', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_after_publish', 'class', ''); + $form->setFieldAttribute('add_php_after_publish', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_after_publish')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_after_publish', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_after_publish', 'required', 'false'); + } + } + // Modify the form based on Edit Add Custom Button access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_custom_button', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_custom_button', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_custom_button', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_custom_button', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_custom_button', 'class', ''); + $form->setFieldAttribute('add_custom_button', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_custom_button')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_custom_button', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_custom_button', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Before Delete access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_before_delete', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_before_delete', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_before_delete', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_before_delete', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_before_delete', 'class', ''); + $form->setFieldAttribute('add_php_before_delete', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_before_delete')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_before_delete', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_before_delete', 'required', 'false'); + } + } + // Modify the form based on Edit Custom Button access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.custom_button', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.custom_button', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('custom_button', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('custom_button', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('custom_button', 'class', ''); + $form->setFieldAttribute('custom_button', 'class', $class.' disabled no-click'); + if (!$form->getValue('custom_button')) + { + // Disable fields while saving. + $form->setFieldAttribute('custom_button', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('custom_button', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php After Delete access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_after_delete', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_after_delete', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_after_delete', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_after_delete', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_after_delete', 'class', ''); + $form->setFieldAttribute('add_php_after_delete', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_after_delete')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_after_delete', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_after_delete', 'required', 'false'); + } + } + // Modify the form based on Edit Php Controller access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_controller', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_controller', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_controller', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_controller', 'readonly', 'true'); + if (!$form->getValue('php_controller')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_controller', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_controller', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Document access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_document', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_document', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_document', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_document', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_document', 'class', ''); + $form->setFieldAttribute('add_php_document', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_document')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_document', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_document', 'required', 'false'); + } + } + // Modify the form based on Edit Php Model access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_model', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_model', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_model', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_model', 'readonly', 'true'); + if (!$form->getValue('php_model')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_model', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_model', 'required', 'false'); + } + } + // Modify the form based on Edit Add Sql access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_sql', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_sql', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_sql', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_sql', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_sql', 'class', ''); + $form->setFieldAttribute('add_sql', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_sql')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_sql', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_sql', 'required', 'false'); + } + } + // Modify the form based on Edit Php Controller List access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_controller_list', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_controller_list', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_controller_list', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_controller_list', 'readonly', 'true'); + if (!$form->getValue('php_controller_list')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_controller_list', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_controller_list', 'required', 'false'); + } + } + // Modify the form based on Edit Addtables access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.addtables', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.addtables', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addtables', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addtables', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addtables', 'class', ''); + $form->setFieldAttribute('addtables', 'class', $class.' disabled no-click'); + if (!$form->getValue('addtables')) + { + // Disable fields while saving. + $form->setFieldAttribute('addtables', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addtables', 'required', 'false'); + } + } + // Modify the form based on Edit Php Model List access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_model_list', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_model_list', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_model_list', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_model_list', 'readonly', 'true'); + if (!$form->getValue('php_model_list')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_model_list', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_model_list', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Ajax access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_ajax', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_ajax', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_ajax', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_ajax', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_ajax', 'class', ''); + $form->setFieldAttribute('add_php_ajax', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_ajax')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_ajax', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_ajax', 'required', 'false'); + } + } + // Modify the form based on Edit Add Custom Import access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_custom_import', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_custom_import', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_custom_import', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_custom_import', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_custom_import', 'class', ''); + $form->setFieldAttribute('add_custom_import', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_custom_import')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_custom_import', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_custom_import', 'required', 'false'); + } + } + // Modify the form based on Edit Php Ajaxmethod access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_ajaxmethod', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_ajaxmethod', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_ajaxmethod', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_ajaxmethod', 'readonly', 'true'); + if (!$form->getValue('php_ajaxmethod')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_ajaxmethod', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_ajaxmethod', 'required', 'false'); + } + } + // Modify the form based on Edit Html Import View access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.html_import_view', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.html_import_view', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('html_import_view', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('html_import_view', 'readonly', 'true'); + if (!$form->getValue('html_import_view')) + { + // Disable fields while saving. + $form->setFieldAttribute('html_import_view', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('html_import_view', 'required', 'false'); + } + } + // Modify the form based on Edit Ajax Input access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.ajax_input', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.ajax_input', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('ajax_input', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('ajax_input', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('ajax_input', 'class', ''); + $form->setFieldAttribute('ajax_input', 'class', $class.' disabled no-click'); + if (!$form->getValue('ajax_input')) + { + // Disable fields while saving. + $form->setFieldAttribute('ajax_input', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('ajax_input', 'required', 'false'); + } + } + // Modify the form based on Edit Php Import Setdata access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_import_setdata', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_import_setdata', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_import_setdata', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_import_setdata', 'readonly', 'true'); + if (!$form->getValue('php_import_setdata')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_import_setdata', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_import_setdata', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Getitem access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.add_php_getitem', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.add_php_getitem', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_getitem', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_getitem', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_getitem', 'class', ''); + $form->setFieldAttribute('add_php_getitem', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_getitem')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_getitem', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_getitem', 'required', 'false'); + } + } + // Modify the form based on Edit Php Import Ext access controls. + if ($id != 0 && (!$user->authorise('admin_view.edit.php_import_ext', 'com_componentbuilder.admin_view.' . (int) $id)) + || ($id == 0 && !$user->authorise('admin_view.edit.php_import_ext', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_import_ext', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_import_ext', 'readonly', 'true'); + if (!$form->getValue('php_import_ext')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_import_ext', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_import_ext', 'required', 'false'); + } + } // Only load these values if no id is found if (0 == $id) { @@ -1278,22 +2621,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['metadata'] = (string) $metadata; } - // Set the php_getitems_after_all string to base64 string. - if (isset($data['php_getitems_after_all'])) + // Set the php_batchmove string to base64 string. + if (isset($data['php_batchmove'])) { - $data['php_getitems_after_all'] = base64_encode($data['php_getitems_after_all']); - } - - // Set the php_after_publish string to base64 string. - if (isset($data['php_after_publish'])) - { - $data['php_after_publish'] = base64_encode($data['php_after_publish']); - } - - // Set the php_allowedit string to base64 string. - if (isset($data['php_allowedit'])) - { - $data['php_allowedit'] = base64_encode($data['php_allowedit']); + $data['php_batchmove'] = base64_encode($data['php_batchmove']); } // Set the php_save string to base64 string. @@ -1302,28 +2633,52 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['php_save'] = base64_encode($data['php_save']); } - // Set the php_batchmove string to base64 string. - if (isset($data['php_batchmove'])) - { - $data['php_batchmove'] = base64_encode($data['php_batchmove']); - } - // Set the php_after_delete string to base64 string. if (isset($data['php_after_delete'])) { $data['php_after_delete'] = base64_encode($data['php_after_delete']); } + // Set the php_getlistquery string to base64 string. + if (isset($data['php_getlistquery'])) + { + $data['php_getlistquery'] = base64_encode($data['php_getlistquery']); + } + + // Set the php_allowedit string to base64 string. + if (isset($data['php_allowedit'])) + { + $data['php_allowedit'] = base64_encode($data['php_allowedit']); + } + + // Set the php_after_publish string to base64 string. + if (isset($data['php_after_publish'])) + { + $data['php_after_publish'] = base64_encode($data['php_after_publish']); + } + // Set the php_getitems string to base64 string. if (isset($data['php_getitems'])) { $data['php_getitems'] = base64_encode($data['php_getitems']); } - // Set the php_getlistquery string to base64 string. - if (isset($data['php_getlistquery'])) + // Set the php_import string to base64 string. + if (isset($data['php_import'])) { - $data['php_getlistquery'] = base64_encode($data['php_getlistquery']); + $data['php_import'] = base64_encode($data['php_import']); + } + + // Set the php_getitems_after_all string to base64 string. + if (isset($data['php_getitems_after_all'])) + { + $data['php_getitems_after_all'] = base64_encode($data['php_getitems_after_all']); + } + + // Set the php_before_save string to base64 string. + if (isset($data['php_before_save'])) + { + $data['php_before_save'] = base64_encode($data['php_before_save']); } // Set the php_postsavehook string to base64 string. @@ -1350,12 +2705,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['php_before_delete'] = base64_encode($data['php_before_delete']); } - // Set the php_import string to base64 string. - if (isset($data['php_import'])) - { - $data['php_import'] = base64_encode($data['php_import']); - } - // Set the php_document string to base64 string. if (isset($data['php_document'])) { @@ -1368,18 +2717,18 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['sql'] = base64_encode($data['sql']); } - // Set the php_getitem string to base64 string. - if (isset($data['php_getitem'])) - { - $data['php_getitem'] = base64_encode($data['php_getitem']); - } - // Set the php_import_display string to base64 string. if (isset($data['php_import_display'])) { $data['php_import_display'] = base64_encode($data['php_import_display']); } + // Set the php_getitem string to base64 string. + if (isset($data['php_getitem'])) + { + $data['php_getitem'] = base64_encode($data['php_getitem']); + } + // Set the php_import_save string to base64 string. if (isset($data['php_import_save'])) { @@ -1446,18 +2795,18 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['php_model_list'] = base64_encode($data['php_model_list']); } - // Set the html_import_view string to base64 string. - if (isset($data['html_import_view'])) - { - $data['html_import_view'] = base64_encode($data['html_import_view']); - } - // Set the php_ajaxmethod string to base64 string. if (isset($data['php_ajaxmethod'])) { $data['php_ajaxmethod'] = base64_encode($data['php_ajaxmethod']); } + // Set the html_import_view string to base64 string. + if (isset($data['html_import_view'])) + { + $data['html_import_view'] = base64_encode($data['html_import_view']); + } + // Set the php_import_setdata string to base64 string. if (isset($data['php_import_setdata'])) { diff --git a/admin/models/admin_views.php b/admin/models/admin_views.php index 32317290a..c30624758 100644 --- a/admin/models/admin_views.php +++ b/admin/models/admin_views.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_views.php @@ -191,7 +191,7 @@ class ComponentbuilderModelAdmin_views extends JModelList else { $search = $db->quote('%' . $db->escape($search) . '%'); - $query->where('(a.system_name LIKE '.$search.' OR a.name_single LIKE '.$search.' OR a.name_list LIKE '.$search.' OR a.short_description LIKE '.$search.' OR a.description LIKE '.$search.' OR a.type LIKE '.$search.')'); + $query->where('(a.system_name LIKE '.$search.' OR a.name_single LIKE '.$search.' OR a.name_list LIKE '.$search.' OR a.short_description LIKE '.$search.' OR a.type LIKE '.$search.' OR a.description LIKE '.$search.')'); } } @@ -262,22 +262,26 @@ class ComponentbuilderModelAdmin_views extends JModelList continue; } - // decode php_getitems_after_all - $item->php_getitems_after_all = base64_decode($item->php_getitems_after_all); - // decode php_after_publish - $item->php_after_publish = base64_decode($item->php_after_publish); - // decode php_allowedit - $item->php_allowedit = base64_decode($item->php_allowedit); - // decode php_save - $item->php_save = base64_decode($item->php_save); // decode php_batchmove $item->php_batchmove = base64_decode($item->php_batchmove); + // decode php_save + $item->php_save = base64_decode($item->php_save); // decode php_after_delete $item->php_after_delete = base64_decode($item->php_after_delete); - // decode php_getitems - $item->php_getitems = base64_decode($item->php_getitems); // decode php_getlistquery $item->php_getlistquery = base64_decode($item->php_getlistquery); + // decode php_allowedit + $item->php_allowedit = base64_decode($item->php_allowedit); + // decode php_after_publish + $item->php_after_publish = base64_decode($item->php_after_publish); + // decode php_getitems + $item->php_getitems = base64_decode($item->php_getitems); + // decode php_import + $item->php_import = base64_decode($item->php_import); + // decode php_getitems_after_all + $item->php_getitems_after_all = base64_decode($item->php_getitems_after_all); + // decode php_before_save + $item->php_before_save = base64_decode($item->php_before_save); // decode php_postsavehook $item->php_postsavehook = base64_decode($item->php_postsavehook); // decode php_batchcopy @@ -286,16 +290,14 @@ class ComponentbuilderModelAdmin_views extends JModelList $item->php_before_publish = base64_decode($item->php_before_publish); // decode php_before_delete $item->php_before_delete = base64_decode($item->php_before_delete); - // decode php_import - $item->php_import = base64_decode($item->php_import); // decode php_document $item->php_document = base64_decode($item->php_document); // decode sql $item->sql = base64_decode($item->sql); - // decode php_getitem - $item->php_getitem = base64_decode($item->php_getitem); // decode php_import_display $item->php_import_display = base64_decode($item->php_import_display); + // decode php_getitem + $item->php_getitem = base64_decode($item->php_getitem); // decode php_import_save $item->php_import_save = base64_decode($item->php_import_save); // decode css_view @@ -318,10 +320,10 @@ class ComponentbuilderModelAdmin_views extends JModelList $item->php_controller_list = base64_decode($item->php_controller_list); // decode php_model_list $item->php_model_list = base64_decode($item->php_model_list); - // decode html_import_view - $item->html_import_view = base64_decode($item->html_import_view); // decode php_ajaxmethod $item->php_ajaxmethod = base64_decode($item->php_ajaxmethod); + // decode html_import_view + $item->html_import_view = base64_decode($item->html_import_view); // decode php_import_setdata $item->php_import_setdata = base64_decode($item->php_import_setdata); // decode php_import_ext diff --git a/admin/models/ajax.php b/admin/models/ajax.php index b0e7830fb..a6e9b84b2 100644 --- a/admin/models/ajax.php +++ b/admin/models/ajax.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage ajax.php @@ -51,7 +51,7 @@ class ComponentbuilderModelAjax extends JModelList public function isNew($notice) { // first get the file path - $path_filename = ComponentbuilderHelper::getFilePath('user', 'notice', JFactory::getUser()->username, $fileType = '.md', JPATH_COMPONENT_ADMINISTRATOR); + $path_filename = ComponentbuilderHelper::getFilePath('path', 'usernotice', 'md', JFactory::getUser()->username, JPATH_COMPONENT_ADMINISTRATOR); // check if the file is set if (($content = @file_get_contents($path_filename)) !== FALSE) { @@ -69,7 +69,7 @@ class ComponentbuilderModelAjax extends JModelList public function isRead($notice) { // first get the file path - $path_filename = ComponentbuilderHelper::getFilePath('user', 'notice', JFactory::getUser()->username, $fileType = '.md', JPATH_COMPONENT_ADMINISTRATOR); + $path_filename = ComponentbuilderHelper::getFilePath('path', 'usernotice', 'md', JFactory::getUser()->username, JPATH_COMPONENT_ADMINISTRATOR); // set as read if not already set if (($content = @file_get_contents($path_filename)) !== FALSE) { diff --git a/admin/models/componentbuilder.php b/admin/models/componentbuilder.php index 1a5ffe5de..364663e10 100644 --- a/admin/models/componentbuilder.php +++ b/admin/models/componentbuilder.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage componentbuilder.php @@ -43,7 +43,7 @@ class ComponentbuilderModelComponentbuilder extends JModelList $icons = array(); // view groups array $viewGroups = array( - 'main' => array('png.compiler', 'png.joomla_component.add', 'png.joomla_components', 'png.admin_view.add', 'png.admin_views', 'png.custom_admin_view.add', 'png.custom_admin_views', 'png.site_view.add', 'png.site_views', 'png.template.add', 'png.templates', 'png.layout.add', 'png.layouts', 'png.dynamic_get.add', 'png.dynamic_gets', 'png.custom_codes', 'png.snippet.add', 'png.snippets', 'png.field.add', 'png.fields', 'png.fields.catid', 'png.fieldtype.add', 'png.fieldtypes', 'png.fieldtypes.catid', 'png.language_translations', 'png.help_document.add', 'png.help_documents') + 'main' => array('png.compiler', 'png.joomla_component.add', 'png.joomla_components', 'png.admin_view.add', 'png.admin_views', 'png.custom_admin_view.add', 'png.custom_admin_views', 'png.site_view.add', 'png.site_views', 'png.template.add', 'png.templates', 'png.layout.add', 'png.layouts', 'png.dynamic_get.add', 'png.dynamic_gets', 'png.custom_codes', 'png.snippet.add', 'png.snippets', 'png.field.add', 'png.fields', 'png.fields.catid', 'png.fieldtype.add', 'png.fieldtypes', 'png.fieldtypes.catid', 'png.language_translations', 'png.ftps', 'png.help_document.add', 'png.help_documents') ); // view access array $viewAccess = array( @@ -116,6 +116,11 @@ class ComponentbuilderModelComponentbuilder extends JModelList 'languages.access' => 'language.access', 'language.access' => 'language.access', 'languages.submenu' => 'language.submenu', + 'ftp.create' => 'ftp.create', + 'ftps.access' => 'ftp.access', + 'ftp.access' => 'ftp.access', + 'ftps.submenu' => 'ftp.submenu', + 'ftps.dashboard_list' => 'ftp.dashboard_list', 'help_document.create' => 'help_document.create', 'help_documents.access' => 'help_document.access', 'help_document.access' => 'help_document.access', diff --git a/admin/models/custom_admin_view.php b/admin/models/custom_admin_view.php index eb2b91d45..55d7b5bb1 100644 --- a/admin/models/custom_admin_view.php +++ b/admin/models/custom_admin_view.php @@ -179,7 +179,7 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getVyilinked_components() + public function getVyjlinked_components() { // Get the user object. $user = JFactory::getUser(); diff --git a/admin/models/field.php b/admin/models/field.php index d9f483b27..8fa0dbc10 100644 --- a/admin/models/field.php +++ b/admin/models/field.php @@ -141,7 +141,7 @@ class ComponentbuilderModelField extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getWaalinked_admin_views() + public function getWablinked_admin_views() { // Get the user object. $user = JFactory::getUser(); diff --git a/admin/models/fields/adminviewfolderlist.php b/admin/models/fields/adminviewfolderlist.php index a52c07834..a8c3fccf0 100644 --- a/admin/models/fields/adminviewfolderlist.php +++ b/admin/models/fields/adminviewfolderlist.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage adminviewfolderlist.php diff --git a/admin/models/fields/adminviews.php b/admin/models/fields/adminviews.php index 9c8960952..f373b53ec 100644 --- a/admin/models/fields/adminviews.php +++ b/admin/models/fields/adminviews.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage adminviews.php diff --git a/admin/models/fields/articles.php b/admin/models/fields/articles.php index 306cb904a..5709c8f04 100644 --- a/admin/models/fields/articles.php +++ b/admin/models/fields/articles.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage articles.php diff --git a/admin/models/fields/component.php b/admin/models/fields/component.php index 2ccae07c8..8eb90ba88 100644 --- a/admin/models/fields/component.php +++ b/admin/models/fields/component.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage component.php diff --git a/admin/models/fields/components.php b/admin/models/fields/components.php index 3dcc831f5..623b354b2 100644 --- a/admin/models/fields/components.php +++ b/admin/models/fields/components.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage components.php diff --git a/admin/models/fields/customadminviews.php b/admin/models/fields/customadminviews.php index b343f2eaa..6be42116e 100644 --- a/admin/models/fields/customadminviews.php +++ b/admin/models/fields/customadminviews.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage customadminviews.php diff --git a/admin/models/fields/customfilelist.php b/admin/models/fields/customfilelist.php index 3a62af9a4..7e6bd70a0 100644 --- a/admin/models/fields/customfilelist.php +++ b/admin/models/fields/customfilelist.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage customfilelist.php diff --git a/admin/models/fields/customfolderlist.php b/admin/models/fields/customfolderlist.php index 6002a04c7..4e5f1e564 100644 --- a/admin/models/fields/customfolderlist.php +++ b/admin/models/fields/customfolderlist.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage customfolderlist.php diff --git a/admin/models/fields/customgets.php b/admin/models/fields/customgets.php index 4d9399517..4683d5f95 100644 --- a/admin/models/fields/customgets.php +++ b/admin/models/fields/customgets.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage customgets.php diff --git a/admin/models/fields/dbtables.php b/admin/models/fields/dbtables.php index c549e949c..5529fa27e 100644 --- a/admin/models/fields/dbtables.php +++ b/admin/models/fields/dbtables.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage dbtables.php diff --git a/admin/models/fields/dynamicget.php b/admin/models/fields/dynamicget.php index 49ca65f74..90ecd539c 100644 --- a/admin/models/fields/dynamicget.php +++ b/admin/models/fields/dynamicget.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage dynamicget.php diff --git a/admin/models/fields/dynamicgets.php b/admin/models/fields/dynamicgets.php index 1e8920435..7c7d7bfc5 100644 --- a/admin/models/fields/dynamicgets.php +++ b/admin/models/fields/dynamicgets.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage dynamicgets.php diff --git a/admin/models/fields/fields.php b/admin/models/fields/fields.php index 285984f10..cf61e0488 100644 --- a/admin/models/fields/fields.php +++ b/admin/models/fields/fields.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage fields.php diff --git a/admin/models/fields/fieldsmulti.php b/admin/models/fields/fieldsmulti.php index 6b4500aa3..7f877dea8 100644 --- a/admin/models/fields/fieldsmulti.php +++ b/admin/models/fields/fieldsmulti.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage fieldsmulti.php diff --git a/admin/models/fields/fieldtypes.php b/admin/models/fields/fieldtypes.php index 92ca2ece0..2a3bdbe70 100644 --- a/admin/models/fields/fieldtypes.php +++ b/admin/models/fields/fieldtypes.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage fieldtypes.php diff --git a/admin/models/fields/lang.php b/admin/models/fields/lang.php index fca57b902..482522b65 100644 --- a/admin/models/fields/lang.php +++ b/admin/models/fields/lang.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage lang.php diff --git a/admin/models/fields/maingets.php b/admin/models/fields/maingets.php index 3aa6f01e7..c8979ff48 100644 --- a/admin/models/fields/maingets.php +++ b/admin/models/fields/maingets.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage maingets.php diff --git a/admin/models/fields/siteviewfolderlist.php b/admin/models/fields/siteviewfolderlist.php index 07f2ca6b9..5ae9182bf 100644 --- a/admin/models/fields/siteviewfolderlist.php +++ b/admin/models/fields/siteviewfolderlist.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage siteviewfolderlist.php diff --git a/admin/models/fields/siteviews.php b/admin/models/fields/siteviews.php index 1e8bf31ca..15cf3b8bb 100644 --- a/admin/models/fields/siteviews.php +++ b/admin/models/fields/siteviews.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage siteviews.php diff --git a/admin/models/fields/snippets.php b/admin/models/fields/snippets.php index d2a63dc92..1f6d890e4 100644 --- a/admin/models/fields/snippets.php +++ b/admin/models/fields/snippets.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage snippets.php diff --git a/admin/models/fieldtype.php b/admin/models/fieldtype.php index 4527dcafc..57dc6bb28 100644 --- a/admin/models/fieldtype.php +++ b/admin/models/fieldtype.php @@ -111,7 +111,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getWabfields() + public function getWacfields() { // Get the user object. $user = JFactory::getUser(); @@ -195,13 +195,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin foreach ($items as $nr => &$item) { // convert datatype - $item->datatype = $this->selectionTranslationWabfields($item->datatype, 'datatype'); + $item->datatype = $this->selectionTranslationWacfields($item->datatype, 'datatype'); // convert indexes - $item->indexes = $this->selectionTranslationWabfields($item->indexes, 'indexes'); + $item->indexes = $this->selectionTranslationWacfields($item->indexes, 'indexes'); // convert null_switch - $item->null_switch = $this->selectionTranslationWabfields($item->null_switch, 'null_switch'); + $item->null_switch = $this->selectionTranslationWacfields($item->null_switch, 'null_switch'); // convert store - $item->store = $this->selectionTranslationWabfields($item->store, 'store'); + $item->store = $this->selectionTranslationWacfields($item->store, 'store'); } } @@ -215,7 +215,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return translatable string */ - public function selectionTranslationWabfields($value,$name) + public function selectionTranslationWacfields($value,$name) { // Array of datatype language strings if ($name === 'datatype') diff --git a/admin/models/forms/admin_view.js b/admin/models/forms/admin_view.js index d08e41ba3..cc2d7223d 100644 --- a/admin/models/forms/admin_view.js +++ b/admin/models/forms/admin_view.js @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_view.js @@ -46,16 +46,17 @@ jform_vvvvvxpvxj_required = false; jform_vvvvvxqvxk_required = false; jform_vvvvvxrvxl_required = false; jform_vvvvvxsvxm_required = false; -jform_vvvvvxwvxn_required = false; -jform_vvvvvxwvxo_required = false; -jform_vvvvvxwvxp_required = false; -jform_vvvvvxwvxq_required = false; -jform_vvvvvxwvxr_required = false; -jform_vvvvvxwvxs_required = false; -jform_vvvvvxyvxt_required = false; -jform_vvvvvxyvxu_required = false; -jform_vvvvvxyvxv_required = false; -jform_vvvvvxyvxw_required = false; +jform_vvvvvxtvxn_required = false; +jform_vvvvvxxvxo_required = false; +jform_vvvvvxxvxp_required = false; +jform_vvvvvxxvxq_required = false; +jform_vvvvvxxvxr_required = false; +jform_vvvvvxxvxs_required = false; +jform_vvvvvxxvxt_required = false; +jform_vvvvvxzvxu_required = false; +jform_vvvvvxzvxv_required = false; +jform_vvvvvxzvxw_required = false; +jform_vvvvvxzvxx_required = false; // Initial Script jQuery(document).ready(function() @@ -93,55 +94,58 @@ jQuery(document).ready(function() var add_php_getlistquery_vvvvvxg = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); vvvvvxg(add_php_getlistquery_vvvvvxg); - var add_php_save_vvvvvxh = jQuery("#jform_add_php_save input[type='radio']:checked").val(); - vvvvvxh(add_php_save_vvvvvxh); + var add_php_before_save_vvvvvxh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); + vvvvvxh(add_php_before_save_vvvvvxh); - var add_php_postsavehook_vvvvvxi = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); - vvvvvxi(add_php_postsavehook_vvvvvxi); + var add_php_save_vvvvvxi = jQuery("#jform_add_php_save input[type='radio']:checked").val(); + vvvvvxi(add_php_save_vvvvvxi); - var add_php_allowedit_vvvvvxj = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); - vvvvvxj(add_php_allowedit_vvvvvxj); + var add_php_postsavehook_vvvvvxj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); + vvvvvxj(add_php_postsavehook_vvvvvxj); - var add_php_batchcopy_vvvvvxk = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); - vvvvvxk(add_php_batchcopy_vvvvvxk); + var add_php_allowedit_vvvvvxk = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); + vvvvvxk(add_php_allowedit_vvvvvxk); - var add_php_batchmove_vvvvvxl = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); - vvvvvxl(add_php_batchmove_vvvvvxl); + var add_php_batchcopy_vvvvvxl = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); + vvvvvxl(add_php_batchcopy_vvvvvxl); - var add_php_before_publish_vvvvvxm = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); - vvvvvxm(add_php_before_publish_vvvvvxm); + var add_php_batchmove_vvvvvxm = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); + vvvvvxm(add_php_batchmove_vvvvvxm); - var add_php_after_publish_vvvvvxn = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); - vvvvvxn(add_php_after_publish_vvvvvxn); + var add_php_before_publish_vvvvvxn = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); + vvvvvxn(add_php_before_publish_vvvvvxn); - var add_php_before_delete_vvvvvxo = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); - vvvvvxo(add_php_before_delete_vvvvvxo); + var add_php_after_publish_vvvvvxo = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); + vvvvvxo(add_php_after_publish_vvvvvxo); - var add_php_after_delete_vvvvvxp = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); - vvvvvxp(add_php_after_delete_vvvvvxp); + var add_php_before_delete_vvvvvxp = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); + vvvvvxp(add_php_before_delete_vvvvvxp); - var add_php_document_vvvvvxq = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvxq(add_php_document_vvvvvxq); + var add_php_after_delete_vvvvvxq = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); + vvvvvxq(add_php_after_delete_vvvvvxq); - var add_sql_vvvvvxr = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxr(add_sql_vvvvvxr); + var add_php_document_vvvvvxr = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvxr(add_php_document_vvvvvxr); - var source_vvvvvxs = jQuery("#jform_source input[type='radio']:checked").val(); var add_sql_vvvvvxs = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxs(source_vvvvvxs,add_sql_vvvvvxs); + vvvvvxs(add_sql_vvvvvxs); - var source_vvvvvxu = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu); + var source_vvvvvxt = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxt = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxt(source_vvvvvxt,add_sql_vvvvvxt); - var add_custom_import_vvvvvxw = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvxw(add_custom_import_vvvvvxw); + var source_vvvvvxv = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxv = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxv(source_vvvvvxv,add_sql_vvvvvxv); var add_custom_import_vvvvvxx = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); vvvvvxx(add_custom_import_vvvvvxx); - var add_custom_button_vvvvvxy = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvxy(add_custom_button_vvvvvxy); + var add_custom_import_vvvvvxy = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvvxy(add_custom_import_vvvvvxy); + + var add_custom_button_vvvvvxz = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvxz(add_custom_button_vvvvvxz); }); // the vvvvvww function @@ -488,382 +492,413 @@ function vvvvvxg(add_php_getlistquery_vvvvvxg) } // the vvvvvxh function -function vvvvvxh(add_php_save_vvvvvxh) +function vvvvvxh(add_php_before_save_vvvvvxh) { // set the function logic - if (add_php_save_vvvvvxh == 1) + if (add_php_before_save_vvvvvxh == 1) { - jQuery('#jform_php_save').closest('.control-group').show(); + jQuery('#jform_php_before_save').closest('.control-group').show(); if (jform_vvvvvxhvxb_required) { - updateFieldRequired('php_save',0); - jQuery('#jform_php_save').prop('required','required'); - jQuery('#jform_php_save').attr('aria-required',true); - jQuery('#jform_php_save').addClass('required'); + updateFieldRequired('php_before_save',0); + jQuery('#jform_php_before_save').prop('required','required'); + jQuery('#jform_php_before_save').attr('aria-required',true); + jQuery('#jform_php_before_save').addClass('required'); jform_vvvvvxhvxb_required = false; } } else { - jQuery('#jform_php_save').closest('.control-group').hide(); + jQuery('#jform_php_before_save').closest('.control-group').hide(); if (!jform_vvvvvxhvxb_required) { - updateFieldRequired('php_save',1); - jQuery('#jform_php_save').removeAttr('required'); - jQuery('#jform_php_save').removeAttr('aria-required'); - jQuery('#jform_php_save').removeClass('required'); + updateFieldRequired('php_before_save',1); + jQuery('#jform_php_before_save').removeAttr('required'); + jQuery('#jform_php_before_save').removeAttr('aria-required'); + jQuery('#jform_php_before_save').removeClass('required'); jform_vvvvvxhvxb_required = true; } } } // the vvvvvxi function -function vvvvvxi(add_php_postsavehook_vvvvvxi) +function vvvvvxi(add_php_save_vvvvvxi) { // set the function logic - if (add_php_postsavehook_vvvvvxi == 1) + if (add_php_save_vvvvvxi == 1) { - jQuery('#jform_php_postsavehook').closest('.control-group').show(); + jQuery('#jform_php_save').closest('.control-group').show(); if (jform_vvvvvxivxc_required) { - updateFieldRequired('php_postsavehook',0); - jQuery('#jform_php_postsavehook').prop('required','required'); - jQuery('#jform_php_postsavehook').attr('aria-required',true); - jQuery('#jform_php_postsavehook').addClass('required'); + updateFieldRequired('php_save',0); + jQuery('#jform_php_save').prop('required','required'); + jQuery('#jform_php_save').attr('aria-required',true); + jQuery('#jform_php_save').addClass('required'); jform_vvvvvxivxc_required = false; } } else { - jQuery('#jform_php_postsavehook').closest('.control-group').hide(); + jQuery('#jform_php_save').closest('.control-group').hide(); if (!jform_vvvvvxivxc_required) { - updateFieldRequired('php_postsavehook',1); - jQuery('#jform_php_postsavehook').removeAttr('required'); - jQuery('#jform_php_postsavehook').removeAttr('aria-required'); - jQuery('#jform_php_postsavehook').removeClass('required'); + updateFieldRequired('php_save',1); + jQuery('#jform_php_save').removeAttr('required'); + jQuery('#jform_php_save').removeAttr('aria-required'); + jQuery('#jform_php_save').removeClass('required'); jform_vvvvvxivxc_required = true; } } } // the vvvvvxj function -function vvvvvxj(add_php_allowedit_vvvvvxj) +function vvvvvxj(add_php_postsavehook_vvvvvxj) { // set the function logic - if (add_php_allowedit_vvvvvxj == 1) + if (add_php_postsavehook_vvvvvxj == 1) { - jQuery('#jform_php_allowedit').closest('.control-group').show(); + jQuery('#jform_php_postsavehook').closest('.control-group').show(); if (jform_vvvvvxjvxd_required) { - updateFieldRequired('php_allowedit',0); - jQuery('#jform_php_allowedit').prop('required','required'); - jQuery('#jform_php_allowedit').attr('aria-required',true); - jQuery('#jform_php_allowedit').addClass('required'); + updateFieldRequired('php_postsavehook',0); + jQuery('#jform_php_postsavehook').prop('required','required'); + jQuery('#jform_php_postsavehook').attr('aria-required',true); + jQuery('#jform_php_postsavehook').addClass('required'); jform_vvvvvxjvxd_required = false; } } else { - jQuery('#jform_php_allowedit').closest('.control-group').hide(); + jQuery('#jform_php_postsavehook').closest('.control-group').hide(); if (!jform_vvvvvxjvxd_required) { - updateFieldRequired('php_allowedit',1); - jQuery('#jform_php_allowedit').removeAttr('required'); - jQuery('#jform_php_allowedit').removeAttr('aria-required'); - jQuery('#jform_php_allowedit').removeClass('required'); + updateFieldRequired('php_postsavehook',1); + jQuery('#jform_php_postsavehook').removeAttr('required'); + jQuery('#jform_php_postsavehook').removeAttr('aria-required'); + jQuery('#jform_php_postsavehook').removeClass('required'); jform_vvvvvxjvxd_required = true; } } } // the vvvvvxk function -function vvvvvxk(add_php_batchcopy_vvvvvxk) +function vvvvvxk(add_php_allowedit_vvvvvxk) { // set the function logic - if (add_php_batchcopy_vvvvvxk == 1) + if (add_php_allowedit_vvvvvxk == 1) { - jQuery('#jform_php_batchcopy').closest('.control-group').show(); + jQuery('#jform_php_allowedit').closest('.control-group').show(); if (jform_vvvvvxkvxe_required) { - updateFieldRequired('php_batchcopy',0); - jQuery('#jform_php_batchcopy').prop('required','required'); - jQuery('#jform_php_batchcopy').attr('aria-required',true); - jQuery('#jform_php_batchcopy').addClass('required'); + updateFieldRequired('php_allowedit',0); + jQuery('#jform_php_allowedit').prop('required','required'); + jQuery('#jform_php_allowedit').attr('aria-required',true); + jQuery('#jform_php_allowedit').addClass('required'); jform_vvvvvxkvxe_required = false; } } else { - jQuery('#jform_php_batchcopy').closest('.control-group').hide(); + jQuery('#jform_php_allowedit').closest('.control-group').hide(); if (!jform_vvvvvxkvxe_required) { - updateFieldRequired('php_batchcopy',1); - jQuery('#jform_php_batchcopy').removeAttr('required'); - jQuery('#jform_php_batchcopy').removeAttr('aria-required'); - jQuery('#jform_php_batchcopy').removeClass('required'); + updateFieldRequired('php_allowedit',1); + jQuery('#jform_php_allowedit').removeAttr('required'); + jQuery('#jform_php_allowedit').removeAttr('aria-required'); + jQuery('#jform_php_allowedit').removeClass('required'); jform_vvvvvxkvxe_required = true; } } } // the vvvvvxl function -function vvvvvxl(add_php_batchmove_vvvvvxl) +function vvvvvxl(add_php_batchcopy_vvvvvxl) { // set the function logic - if (add_php_batchmove_vvvvvxl == 1) + if (add_php_batchcopy_vvvvvxl == 1) { - jQuery('#jform_php_batchmove').closest('.control-group').show(); + jQuery('#jform_php_batchcopy').closest('.control-group').show(); if (jform_vvvvvxlvxf_required) { - updateFieldRequired('php_batchmove',0); - jQuery('#jform_php_batchmove').prop('required','required'); - jQuery('#jform_php_batchmove').attr('aria-required',true); - jQuery('#jform_php_batchmove').addClass('required'); + updateFieldRequired('php_batchcopy',0); + jQuery('#jform_php_batchcopy').prop('required','required'); + jQuery('#jform_php_batchcopy').attr('aria-required',true); + jQuery('#jform_php_batchcopy').addClass('required'); jform_vvvvvxlvxf_required = false; } } else { - jQuery('#jform_php_batchmove').closest('.control-group').hide(); + jQuery('#jform_php_batchcopy').closest('.control-group').hide(); if (!jform_vvvvvxlvxf_required) { - updateFieldRequired('php_batchmove',1); - jQuery('#jform_php_batchmove').removeAttr('required'); - jQuery('#jform_php_batchmove').removeAttr('aria-required'); - jQuery('#jform_php_batchmove').removeClass('required'); + updateFieldRequired('php_batchcopy',1); + jQuery('#jform_php_batchcopy').removeAttr('required'); + jQuery('#jform_php_batchcopy').removeAttr('aria-required'); + jQuery('#jform_php_batchcopy').removeClass('required'); jform_vvvvvxlvxf_required = true; } } } // the vvvvvxm function -function vvvvvxm(add_php_before_publish_vvvvvxm) +function vvvvvxm(add_php_batchmove_vvvvvxm) { // set the function logic - if (add_php_before_publish_vvvvvxm == 1) + if (add_php_batchmove_vvvvvxm == 1) { - jQuery('#jform_php_before_publish').closest('.control-group').show(); + jQuery('#jform_php_batchmove').closest('.control-group').show(); if (jform_vvvvvxmvxg_required) { - updateFieldRequired('php_before_publish',0); - jQuery('#jform_php_before_publish').prop('required','required'); - jQuery('#jform_php_before_publish').attr('aria-required',true); - jQuery('#jform_php_before_publish').addClass('required'); + updateFieldRequired('php_batchmove',0); + jQuery('#jform_php_batchmove').prop('required','required'); + jQuery('#jform_php_batchmove').attr('aria-required',true); + jQuery('#jform_php_batchmove').addClass('required'); jform_vvvvvxmvxg_required = false; } } else { - jQuery('#jform_php_before_publish').closest('.control-group').hide(); + jQuery('#jform_php_batchmove').closest('.control-group').hide(); if (!jform_vvvvvxmvxg_required) { - updateFieldRequired('php_before_publish',1); - jQuery('#jform_php_before_publish').removeAttr('required'); - jQuery('#jform_php_before_publish').removeAttr('aria-required'); - jQuery('#jform_php_before_publish').removeClass('required'); + updateFieldRequired('php_batchmove',1); + jQuery('#jform_php_batchmove').removeAttr('required'); + jQuery('#jform_php_batchmove').removeAttr('aria-required'); + jQuery('#jform_php_batchmove').removeClass('required'); jform_vvvvvxmvxg_required = true; } } } // the vvvvvxn function -function vvvvvxn(add_php_after_publish_vvvvvxn) +function vvvvvxn(add_php_before_publish_vvvvvxn) { // set the function logic - if (add_php_after_publish_vvvvvxn == 1) + if (add_php_before_publish_vvvvvxn == 1) { - jQuery('#jform_php_after_publish').closest('.control-group').show(); + jQuery('#jform_php_before_publish').closest('.control-group').show(); if (jform_vvvvvxnvxh_required) { - updateFieldRequired('php_after_publish',0); - jQuery('#jform_php_after_publish').prop('required','required'); - jQuery('#jform_php_after_publish').attr('aria-required',true); - jQuery('#jform_php_after_publish').addClass('required'); + updateFieldRequired('php_before_publish',0); + jQuery('#jform_php_before_publish').prop('required','required'); + jQuery('#jform_php_before_publish').attr('aria-required',true); + jQuery('#jform_php_before_publish').addClass('required'); jform_vvvvvxnvxh_required = false; } } else { - jQuery('#jform_php_after_publish').closest('.control-group').hide(); + jQuery('#jform_php_before_publish').closest('.control-group').hide(); if (!jform_vvvvvxnvxh_required) { - updateFieldRequired('php_after_publish',1); - jQuery('#jform_php_after_publish').removeAttr('required'); - jQuery('#jform_php_after_publish').removeAttr('aria-required'); - jQuery('#jform_php_after_publish').removeClass('required'); + updateFieldRequired('php_before_publish',1); + jQuery('#jform_php_before_publish').removeAttr('required'); + jQuery('#jform_php_before_publish').removeAttr('aria-required'); + jQuery('#jform_php_before_publish').removeClass('required'); jform_vvvvvxnvxh_required = true; } } } // the vvvvvxo function -function vvvvvxo(add_php_before_delete_vvvvvxo) +function vvvvvxo(add_php_after_publish_vvvvvxo) { // set the function logic - if (add_php_before_delete_vvvvvxo == 1) + if (add_php_after_publish_vvvvvxo == 1) { - jQuery('#jform_php_before_delete').closest('.control-group').show(); + jQuery('#jform_php_after_publish').closest('.control-group').show(); if (jform_vvvvvxovxi_required) { - updateFieldRequired('php_before_delete',0); - jQuery('#jform_php_before_delete').prop('required','required'); - jQuery('#jform_php_before_delete').attr('aria-required',true); - jQuery('#jform_php_before_delete').addClass('required'); + updateFieldRequired('php_after_publish',0); + jQuery('#jform_php_after_publish').prop('required','required'); + jQuery('#jform_php_after_publish').attr('aria-required',true); + jQuery('#jform_php_after_publish').addClass('required'); jform_vvvvvxovxi_required = false; } } else { - jQuery('#jform_php_before_delete').closest('.control-group').hide(); + jQuery('#jform_php_after_publish').closest('.control-group').hide(); if (!jform_vvvvvxovxi_required) { - updateFieldRequired('php_before_delete',1); - jQuery('#jform_php_before_delete').removeAttr('required'); - jQuery('#jform_php_before_delete').removeAttr('aria-required'); - jQuery('#jform_php_before_delete').removeClass('required'); + updateFieldRequired('php_after_publish',1); + jQuery('#jform_php_after_publish').removeAttr('required'); + jQuery('#jform_php_after_publish').removeAttr('aria-required'); + jQuery('#jform_php_after_publish').removeClass('required'); jform_vvvvvxovxi_required = true; } } } // the vvvvvxp function -function vvvvvxp(add_php_after_delete_vvvvvxp) +function vvvvvxp(add_php_before_delete_vvvvvxp) { // set the function logic - if (add_php_after_delete_vvvvvxp == 1) + if (add_php_before_delete_vvvvvxp == 1) { - jQuery('#jform_php_after_delete').closest('.control-group').show(); + jQuery('#jform_php_before_delete').closest('.control-group').show(); if (jform_vvvvvxpvxj_required) { - updateFieldRequired('php_after_delete',0); - jQuery('#jform_php_after_delete').prop('required','required'); - jQuery('#jform_php_after_delete').attr('aria-required',true); - jQuery('#jform_php_after_delete').addClass('required'); + updateFieldRequired('php_before_delete',0); + jQuery('#jform_php_before_delete').prop('required','required'); + jQuery('#jform_php_before_delete').attr('aria-required',true); + jQuery('#jform_php_before_delete').addClass('required'); jform_vvvvvxpvxj_required = false; } } else { - jQuery('#jform_php_after_delete').closest('.control-group').hide(); + jQuery('#jform_php_before_delete').closest('.control-group').hide(); if (!jform_vvvvvxpvxj_required) { - updateFieldRequired('php_after_delete',1); - jQuery('#jform_php_after_delete').removeAttr('required'); - jQuery('#jform_php_after_delete').removeAttr('aria-required'); - jQuery('#jform_php_after_delete').removeClass('required'); + updateFieldRequired('php_before_delete',1); + jQuery('#jform_php_before_delete').removeAttr('required'); + jQuery('#jform_php_before_delete').removeAttr('aria-required'); + jQuery('#jform_php_before_delete').removeClass('required'); jform_vvvvvxpvxj_required = true; } } } // the vvvvvxq function -function vvvvvxq(add_php_document_vvvvvxq) +function vvvvvxq(add_php_after_delete_vvvvvxq) { // set the function logic - if (add_php_document_vvvvvxq == 1) + if (add_php_after_delete_vvvvvxq == 1) { - jQuery('#jform_php_document').closest('.control-group').show(); + jQuery('#jform_php_after_delete').closest('.control-group').show(); if (jform_vvvvvxqvxk_required) { - updateFieldRequired('php_document',0); - jQuery('#jform_php_document').prop('required','required'); - jQuery('#jform_php_document').attr('aria-required',true); - jQuery('#jform_php_document').addClass('required'); + updateFieldRequired('php_after_delete',0); + jQuery('#jform_php_after_delete').prop('required','required'); + jQuery('#jform_php_after_delete').attr('aria-required',true); + jQuery('#jform_php_after_delete').addClass('required'); jform_vvvvvxqvxk_required = false; } } else { - jQuery('#jform_php_document').closest('.control-group').hide(); + jQuery('#jform_php_after_delete').closest('.control-group').hide(); if (!jform_vvvvvxqvxk_required) { - updateFieldRequired('php_document',1); - jQuery('#jform_php_document').removeAttr('required'); - jQuery('#jform_php_document').removeAttr('aria-required'); - jQuery('#jform_php_document').removeClass('required'); + updateFieldRequired('php_after_delete',1); + jQuery('#jform_php_after_delete').removeAttr('required'); + jQuery('#jform_php_after_delete').removeAttr('aria-required'); + jQuery('#jform_php_after_delete').removeClass('required'); jform_vvvvvxqvxk_required = true; } } } // the vvvvvxr function -function vvvvvxr(add_sql_vvvvvxr) +function vvvvvxr(add_php_document_vvvvvxr) { // set the function logic - if (add_sql_vvvvvxr == 1) + if (add_php_document_vvvvvxr == 1) { - jQuery('#jform_source').closest('.control-group').show(); + jQuery('#jform_php_document').closest('.control-group').show(); if (jform_vvvvvxrvxl_required) { - updateFieldRequired('source',0); - jQuery('#jform_source').prop('required','required'); - jQuery('#jform_source').attr('aria-required',true); - jQuery('#jform_source').addClass('required'); + updateFieldRequired('php_document',0); + jQuery('#jform_php_document').prop('required','required'); + jQuery('#jform_php_document').attr('aria-required',true); + jQuery('#jform_php_document').addClass('required'); jform_vvvvvxrvxl_required = false; } } else { - jQuery('#jform_source').closest('.control-group').hide(); + jQuery('#jform_php_document').closest('.control-group').hide(); if (!jform_vvvvvxrvxl_required) { - updateFieldRequired('source',1); - jQuery('#jform_source').removeAttr('required'); - jQuery('#jform_source').removeAttr('aria-required'); - jQuery('#jform_source').removeClass('required'); + updateFieldRequired('php_document',1); + jQuery('#jform_php_document').removeAttr('required'); + jQuery('#jform_php_document').removeAttr('aria-required'); + jQuery('#jform_php_document').removeClass('required'); jform_vvvvvxrvxl_required = true; } } } // the vvvvvxs function -function vvvvvxs(source_vvvvvxs,add_sql_vvvvvxs) +function vvvvvxs(add_sql_vvvvvxs) { // set the function logic - if (source_vvvvvxs == 2 && add_sql_vvvvvxs == 1) + if (add_sql_vvvvvxs == 1) { - jQuery('#jform_sql').closest('.control-group').show(); + jQuery('#jform_source').closest('.control-group').show(); if (jform_vvvvvxsvxm_required) { - updateFieldRequired('sql',0); - jQuery('#jform_sql').prop('required','required'); - jQuery('#jform_sql').attr('aria-required',true); - jQuery('#jform_sql').addClass('required'); + updateFieldRequired('source',0); + jQuery('#jform_source').prop('required','required'); + jQuery('#jform_source').attr('aria-required',true); + jQuery('#jform_source').addClass('required'); jform_vvvvvxsvxm_required = false; } } else { - jQuery('#jform_sql').closest('.control-group').hide(); + jQuery('#jform_source').closest('.control-group').hide(); if (!jform_vvvvvxsvxm_required) { - updateFieldRequired('sql',1); - jQuery('#jform_sql').removeAttr('required'); - jQuery('#jform_sql').removeAttr('aria-required'); - jQuery('#jform_sql').removeClass('required'); + updateFieldRequired('source',1); + jQuery('#jform_source').removeAttr('required'); + jQuery('#jform_source').removeAttr('aria-required'); + jQuery('#jform_source').removeClass('required'); jform_vvvvvxsvxm_required = true; } } } -// the vvvvvxu function -function vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu) +// the vvvvvxt function +function vvvvvxt(source_vvvvvxt,add_sql_vvvvvxt) { // set the function logic - if (source_vvvvvxu == 1 && add_sql_vvvvvxu == 1) + if (source_vvvvvxt == 2 && add_sql_vvvvvxt == 1) + { + jQuery('#jform_sql').closest('.control-group').show(); + if (jform_vvvvvxtvxn_required) + { + updateFieldRequired('sql',0); + jQuery('#jform_sql').prop('required','required'); + jQuery('#jform_sql').attr('aria-required',true); + jQuery('#jform_sql').addClass('required'); + jform_vvvvvxtvxn_required = false; + } + + } + else + { + jQuery('#jform_sql').closest('.control-group').hide(); + if (!jform_vvvvvxtvxn_required) + { + updateFieldRequired('sql',1); + jQuery('#jform_sql').removeAttr('required'); + jQuery('#jform_sql').removeAttr('aria-required'); + jQuery('#jform_sql').removeClass('required'); + jform_vvvvvxtvxn_required = true; + } + } +} + +// the vvvvvxv function +function vvvvvxv(source_vvvvvxv,add_sql_vvvvvxv) +{ + // set the function logic + if (source_vvvvvxv == 1 && add_sql_vvvvvxv == 1) { jQuery('#jform_addtables').closest('.control-group').show(); } @@ -873,139 +908,139 @@ function vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu) } } -// the vvvvvxw function -function vvvvvxw(add_custom_import_vvvvvxw) +// the vvvvvxx function +function vvvvvxx(add_custom_import_vvvvvxx) { // set the function logic - if (add_custom_import_vvvvvxw == 1) + if (add_custom_import_vvvvvxx == 1) { jQuery('#jform_html_import_view').closest('.control-group').show(); - if (jform_vvvvvxwvxn_required) + if (jform_vvvvvxxvxo_required) { updateFieldRequired('html_import_view',0); jQuery('#jform_html_import_view').prop('required','required'); jQuery('#jform_html_import_view').attr('aria-required',true); jQuery('#jform_html_import_view').addClass('required'); - jform_vvvvvxwvxn_required = false; + jform_vvvvvxxvxo_required = false; } jQuery('.note_advanced_import').closest('.control-group').show(); jQuery('#jform_php_import_display').closest('.control-group').show(); - if (jform_vvvvvxwvxo_required) + if (jform_vvvvvxxvxp_required) { updateFieldRequired('php_import_display',0); jQuery('#jform_php_import_display').prop('required','required'); jQuery('#jform_php_import_display').attr('aria-required',true); jQuery('#jform_php_import_display').addClass('required'); - jform_vvvvvxwvxo_required = false; + jform_vvvvvxxvxp_required = false; } jQuery('#jform_php_import_ext').closest('.control-group').show(); - if (jform_vvvvvxwvxp_required) + if (jform_vvvvvxxvxq_required) { updateFieldRequired('php_import_ext',0); jQuery('#jform_php_import_ext').prop('required','required'); jQuery('#jform_php_import_ext').attr('aria-required',true); jQuery('#jform_php_import_ext').addClass('required'); - jform_vvvvvxwvxp_required = false; + jform_vvvvvxxvxq_required = false; } jQuery('#jform_php_import').closest('.control-group').show(); - if (jform_vvvvvxwvxq_required) + if (jform_vvvvvxxvxr_required) { updateFieldRequired('php_import',0); jQuery('#jform_php_import').prop('required','required'); jQuery('#jform_php_import').attr('aria-required',true); jQuery('#jform_php_import').addClass('required'); - jform_vvvvvxwvxq_required = false; + jform_vvvvvxxvxr_required = false; } jQuery('#jform_php_import_save').closest('.control-group').show(); - if (jform_vvvvvxwvxr_required) + if (jform_vvvvvxxvxs_required) { updateFieldRequired('php_import_save',0); jQuery('#jform_php_import_save').prop('required','required'); jQuery('#jform_php_import_save').attr('aria-required',true); jQuery('#jform_php_import_save').addClass('required'); - jform_vvvvvxwvxr_required = false; + jform_vvvvvxxvxs_required = false; } jQuery('#jform_php_import_setdata').closest('.control-group').show(); - if (jform_vvvvvxwvxs_required) + if (jform_vvvvvxxvxt_required) { updateFieldRequired('php_import_setdata',0); jQuery('#jform_php_import_setdata').prop('required','required'); jQuery('#jform_php_import_setdata').attr('aria-required',true); jQuery('#jform_php_import_setdata').addClass('required'); - jform_vvvvvxwvxs_required = false; + jform_vvvvvxxvxt_required = false; } } else { jQuery('#jform_html_import_view').closest('.control-group').hide(); - if (!jform_vvvvvxwvxn_required) + if (!jform_vvvvvxxvxo_required) { updateFieldRequired('html_import_view',1); jQuery('#jform_html_import_view').removeAttr('required'); jQuery('#jform_html_import_view').removeAttr('aria-required'); jQuery('#jform_html_import_view').removeClass('required'); - jform_vvvvvxwvxn_required = true; + jform_vvvvvxxvxo_required = true; } jQuery('.note_advanced_import').closest('.control-group').hide(); jQuery('#jform_php_import_display').closest('.control-group').hide(); - if (!jform_vvvvvxwvxo_required) + if (!jform_vvvvvxxvxp_required) { updateFieldRequired('php_import_display',1); jQuery('#jform_php_import_display').removeAttr('required'); jQuery('#jform_php_import_display').removeAttr('aria-required'); jQuery('#jform_php_import_display').removeClass('required'); - jform_vvvvvxwvxo_required = true; + jform_vvvvvxxvxp_required = true; } jQuery('#jform_php_import_ext').closest('.control-group').hide(); - if (!jform_vvvvvxwvxp_required) + if (!jform_vvvvvxxvxq_required) { updateFieldRequired('php_import_ext',1); jQuery('#jform_php_import_ext').removeAttr('required'); jQuery('#jform_php_import_ext').removeAttr('aria-required'); jQuery('#jform_php_import_ext').removeClass('required'); - jform_vvvvvxwvxp_required = true; + jform_vvvvvxxvxq_required = true; } jQuery('#jform_php_import').closest('.control-group').hide(); - if (!jform_vvvvvxwvxq_required) + if (!jform_vvvvvxxvxr_required) { updateFieldRequired('php_import',1); jQuery('#jform_php_import').removeAttr('required'); jQuery('#jform_php_import').removeAttr('aria-required'); jQuery('#jform_php_import').removeClass('required'); - jform_vvvvvxwvxq_required = true; + jform_vvvvvxxvxr_required = true; } jQuery('#jform_php_import_save').closest('.control-group').hide(); - if (!jform_vvvvvxwvxr_required) + if (!jform_vvvvvxxvxs_required) { updateFieldRequired('php_import_save',1); jQuery('#jform_php_import_save').removeAttr('required'); jQuery('#jform_php_import_save').removeAttr('aria-required'); jQuery('#jform_php_import_save').removeClass('required'); - jform_vvvvvxwvxr_required = true; + jform_vvvvvxxvxs_required = true; } jQuery('#jform_php_import_setdata').closest('.control-group').hide(); - if (!jform_vvvvvxwvxs_required) + if (!jform_vvvvvxxvxt_required) { updateFieldRequired('php_import_setdata',1); jQuery('#jform_php_import_setdata').removeAttr('required'); jQuery('#jform_php_import_setdata').removeAttr('aria-required'); jQuery('#jform_php_import_setdata').removeClass('required'); - jform_vvvvvxwvxs_required = true; + jform_vvvvvxxvxt_required = true; } } } -// the vvvvvxx function -function vvvvvxx(add_custom_import_vvvvvxx) +// the vvvvvxy function +function vvvvvxy(add_custom_import_vvvvvxy) { // set the function logic - if (add_custom_import_vvvvvxx == 0) + if (add_custom_import_vvvvvxy == 0) { jQuery('.note_beginner_import').closest('.control-group').show(); } @@ -1015,51 +1050,51 @@ function vvvvvxx(add_custom_import_vvvvvxx) } } -// the vvvvvxy function -function vvvvvxy(add_custom_button_vvvvvxy) +// the vvvvvxz function +function vvvvvxz(add_custom_button_vvvvvxz) { // set the function logic - if (add_custom_button_vvvvvxy == 1) + if (add_custom_button_vvvvvxz == 1) { jQuery('#jform_custom_button').closest('.control-group').show(); jQuery('#jform_php_controller').closest('.control-group').show(); - if (jform_vvvvvxyvxt_required) + if (jform_vvvvvxzvxu_required) { updateFieldRequired('php_controller',0); jQuery('#jform_php_controller').prop('required','required'); jQuery('#jform_php_controller').attr('aria-required',true); jQuery('#jform_php_controller').addClass('required'); - jform_vvvvvxyvxt_required = false; + jform_vvvvvxzvxu_required = false; } jQuery('#jform_php_controller_list').closest('.control-group').show(); - if (jform_vvvvvxyvxu_required) + if (jform_vvvvvxzvxv_required) { updateFieldRequired('php_controller_list',0); jQuery('#jform_php_controller_list').prop('required','required'); jQuery('#jform_php_controller_list').attr('aria-required',true); jQuery('#jform_php_controller_list').addClass('required'); - jform_vvvvvxyvxu_required = false; + jform_vvvvvxzvxv_required = false; } jQuery('#jform_php_model').closest('.control-group').show(); - if (jform_vvvvvxyvxv_required) + if (jform_vvvvvxzvxw_required) { updateFieldRequired('php_model',0); jQuery('#jform_php_model').prop('required','required'); jQuery('#jform_php_model').attr('aria-required',true); jQuery('#jform_php_model').addClass('required'); - jform_vvvvvxyvxv_required = false; + jform_vvvvvxzvxw_required = false; } jQuery('#jform_php_model_list').closest('.control-group').show(); - if (jform_vvvvvxyvxw_required) + if (jform_vvvvvxzvxx_required) { updateFieldRequired('php_model_list',0); jQuery('#jform_php_model_list').prop('required','required'); jQuery('#jform_php_model_list').attr('aria-required',true); jQuery('#jform_php_model_list').addClass('required'); - jform_vvvvvxyvxw_required = false; + jform_vvvvvxzvxx_required = false; } } @@ -1067,40 +1102,40 @@ function vvvvvxy(add_custom_button_vvvvvxy) { jQuery('#jform_custom_button').closest('.control-group').hide(); jQuery('#jform_php_controller').closest('.control-group').hide(); - if (!jform_vvvvvxyvxt_required) + if (!jform_vvvvvxzvxu_required) { updateFieldRequired('php_controller',1); jQuery('#jform_php_controller').removeAttr('required'); jQuery('#jform_php_controller').removeAttr('aria-required'); jQuery('#jform_php_controller').removeClass('required'); - jform_vvvvvxyvxt_required = true; + jform_vvvvvxzvxu_required = true; } jQuery('#jform_php_controller_list').closest('.control-group').hide(); - if (!jform_vvvvvxyvxu_required) + if (!jform_vvvvvxzvxv_required) { updateFieldRequired('php_controller_list',1); jQuery('#jform_php_controller_list').removeAttr('required'); jQuery('#jform_php_controller_list').removeAttr('aria-required'); jQuery('#jform_php_controller_list').removeClass('required'); - jform_vvvvvxyvxu_required = true; + jform_vvvvvxzvxv_required = true; } jQuery('#jform_php_model').closest('.control-group').hide(); - if (!jform_vvvvvxyvxv_required) + if (!jform_vvvvvxzvxw_required) { updateFieldRequired('php_model',1); jQuery('#jform_php_model').removeAttr('required'); jQuery('#jform_php_model').removeAttr('aria-required'); jQuery('#jform_php_model').removeClass('required'); - jform_vvvvvxyvxv_required = true; + jform_vvvvvxzvxw_required = true; } jQuery('#jform_php_model_list').closest('.control-group').hide(); - if (!jform_vvvvvxyvxw_required) + if (!jform_vvvvvxzvxx_required) { updateFieldRequired('php_model_list',1); jQuery('#jform_php_model_list').removeAttr('required'); jQuery('#jform_php_model_list').removeAttr('aria-required'); jQuery('#jform_php_model_list').removeClass('required'); - jform_vvvvvxyvxw_required = true; + jform_vvvvvxzvxx_required = true; } } } diff --git a/admin/models/forms/admin_view.xml b/admin/models/forms/admin_view.xml index 53f0093cf..af259205a 100644 --- a/admin/models/forms/admin_view.xml +++ b/admin/models/forms/admin_view.xml @@ -149,30 +149,45 @@ message="Error! Please add some short description here." hint="COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION_HINT" /> - + - + + + + + + + @@ -187,6 +202,19 @@ filter="HTML" hint="COM_COMPONENTBUILDER_ADMIN_VIEW_DESCRIPTION_HINT" /> + + COM_COMPONENTBUILDER_ADMIN_VIEW_REMOVE + + + + + + - + + + + + COM_COMPONENTBUILDER_ADMIN_VIEW_DUMP - - - - - + - - - + @@ -353,23 +407,21 @@ - - - - + + - + - + @@ -618,38 +670,25 @@ last="100" step="1" /> - + + class="list_class" + multiple="false" + required="false" + default="0"> - + COM_COMPONENTBUILDER_ADMIN_VIEW_NONE + - - - - + + + + - + @@ -912,32 +966,6 @@ - - - - - - - - - - + + - + - + COM_COMPONENTBUILDER_ADMIN_VIEW_NO - - - - - - COM_COMPONENTBUILDER_ADMIN_VIEW_NO - + @@ -1175,11 +1176,11 @@ hint="COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FILE_HINT" required="true" /> - + @@ -1203,11 +1204,11 @@ - + @@ -1230,11 +1231,11 @@ hint="COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FOOTER_HINT" required="true" /> - + @@ -1258,11 +1259,11 @@ - + @@ -1285,11 +1286,11 @@ hint="COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FILE_HINT" required="true" /> - + @@ -1313,11 +1314,11 @@ - + @@ -1340,11 +1341,11 @@ hint="COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FOOTER_HINT" required="true" /> - + @@ -1368,11 +1369,11 @@ - + @@ -1894,11 +1895,11 @@ - + @@ -1921,11 +1922,11 @@ hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER_HINT" required="false" /> - + @@ -1948,6 +1949,33 @@ hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_MODEL_HINT" required="false" /> + + + + + + + + - - - - + + + + + + + + COM_COMPONENTBUILDER_ADMIN_VIEW_NO - - - - - - - - - + @@ -2221,6 +2223,33 @@ + + + + + + + + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + + diff --git a/admin/models/forms/ftp.xml b/admin/models/forms/ftp.xml new file mode 100644 index 000000000..02c5e67c1 --- /dev/null +++ b/admin/models/forms/ftp.xml @@ -0,0 +1,149 @@ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + + +
+
\ No newline at end of file diff --git a/admin/models/forms/help_document.js b/admin/models/forms/help_document.js index c21185390..f02d62f74 100644 --- a/admin/models/forms/help_document.js +++ b/admin/models/forms/help_document.js @@ -10,7 +10,7 @@ /-------------------------------------------------------------------------------------------------------------------------------/ @version @update number 6 of this MVC - @build 18th October, 2016 + @build 17th October, 2016 @created 4th March, 2016 @package Component Builder @subpackage help_document.js @@ -23,24 +23,21 @@ /-----------------------------------------------------------------------------------------------------------------------------*/ // Some Global Values -jform_vvvvwacwac_required = false; -jform_vvvvwadwad_required = false; -jform_vvvvwaewae_required = false; -jform_vvvvwafwaf_required = false; -jform_vvvvwagwag_required = false; -jform_vvvvwahwah_required = false; +jform_vvvvwadwae_required = false; +jform_vvvvwaewaf_required = false; +jform_vvvvwafwag_required = false; +jform_vvvvwagwah_required = false; +jform_vvvvwahwai_required = false; +jform_vvvvwaiwaj_required = false; // Initial Script jQuery(document).ready(function() { - var location_vvvvwac = jQuery("#jform_location input[type='radio']:checked").val(); - vvvvwac(location_vvvvwac); - var location_vvvvwad = jQuery("#jform_location input[type='radio']:checked").val(); vvvvwad(location_vvvvwad); - var type_vvvvwae = jQuery("#jform_type").val(); - vvvvwae(type_vvvvwae); + var location_vvvvwae = jQuery("#jform_location input[type='radio']:checked").val(); + vvvvwae(location_vvvvwae); var type_vvvvwaf = jQuery("#jform_type").val(); vvvvwaf(type_vvvvwaf); @@ -48,127 +45,75 @@ jQuery(document).ready(function() var type_vvvvwag = jQuery("#jform_type").val(); vvvvwag(type_vvvvwag); - var target_vvvvwah = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwah(target_vvvvwah); + var type_vvvvwah = jQuery("#jform_type").val(); + vvvvwah(type_vvvvwah); + + var target_vvvvwai = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwai(target_vvvvwai); }); -// the vvvvwac function -function vvvvwac(location_vvvvwac) +// the vvvvwad function +function vvvvwad(location_vvvvwad) { // set the function logic - if (location_vvvvwac == 1) + if (location_vvvvwad == 1) { jQuery('#jform_admin_view').closest('.control-group').show(); - if (jform_vvvvwacwac_required) + if (jform_vvvvwadwae_required) { updateFieldRequired('admin_view',0); jQuery('#jform_admin_view').prop('required','required'); jQuery('#jform_admin_view').attr('aria-required',true); jQuery('#jform_admin_view').addClass('required'); - jform_vvvvwacwac_required = false; + jform_vvvvwadwae_required = false; } } else { jQuery('#jform_admin_view').closest('.control-group').hide(); - if (!jform_vvvvwacwac_required) + if (!jform_vvvvwadwae_required) { updateFieldRequired('admin_view',1); jQuery('#jform_admin_view').removeAttr('required'); jQuery('#jform_admin_view').removeAttr('aria-required'); jQuery('#jform_admin_view').removeClass('required'); - jform_vvvvwacwac_required = true; + jform_vvvvwadwae_required = true; } } } -// the vvvvwad function -function vvvvwad(location_vvvvwad) +// the vvvvwae function +function vvvvwae(location_vvvvwae) { // set the function logic - if (location_vvvvwad == 2) + if (location_vvvvwae == 2) { jQuery('#jform_site_view').closest('.control-group').show(); - if (jform_vvvvwadwad_required) + if (jform_vvvvwaewaf_required) { updateFieldRequired('site_view',0); jQuery('#jform_site_view').prop('required','required'); jQuery('#jform_site_view').attr('aria-required',true); jQuery('#jform_site_view').addClass('required'); - jform_vvvvwadwad_required = false; + jform_vvvvwaewaf_required = false; } } else { jQuery('#jform_site_view').closest('.control-group').hide(); - if (!jform_vvvvwadwad_required) + if (!jform_vvvvwaewaf_required) { updateFieldRequired('site_view',1); jQuery('#jform_site_view').removeAttr('required'); jQuery('#jform_site_view').removeAttr('aria-required'); jQuery('#jform_site_view').removeClass('required'); - jform_vvvvwadwad_required = true; + jform_vvvvwaewaf_required = true; } } } -// the vvvvwae function -function vvvvwae(type_vvvvwae) -{ - if (isSet(type_vvvvwae) && type_vvvvwae.constructor !== Array) - { - var temp_vvvvwae = type_vvvvwae; - var type_vvvvwae = []; - type_vvvvwae.push(temp_vvvvwae); - } - else if (!isSet(type_vvvvwae)) - { - var type_vvvvwae = []; - } - var type = type_vvvvwae.some(type_vvvvwae_SomeFunc); - - - // set this function logic - if (type) - { - jQuery('#jform_url').closest('.control-group').show(); - if (jform_vvvvwaewae_required) - { - updateFieldRequired('url',0); - jQuery('#jform_url').prop('required','required'); - jQuery('#jform_url').attr('aria-required',true); - jQuery('#jform_url').addClass('required'); - jform_vvvvwaewae_required = false; - } - - } - else - { - jQuery('#jform_url').closest('.control-group').hide(); - if (!jform_vvvvwaewae_required) - { - updateFieldRequired('url',1); - jQuery('#jform_url').removeAttr('required'); - jQuery('#jform_url').removeAttr('aria-required'); - jQuery('#jform_url').removeClass('required'); - jform_vvvvwaewae_required = true; - } - } -} - -// the vvvvwae Some function -function type_vvvvwae_SomeFunc(type_vvvvwae) -{ - // set the function logic - if (type_vvvvwae == 3) - { - return true; - } - return false; -} - // the vvvvwaf function function vvvvwaf(type_vvvvwaf) { @@ -188,27 +133,27 @@ function vvvvwaf(type_vvvvwaf) // set this function logic if (type) { - jQuery('#jform_article').closest('.control-group').show(); - if (jform_vvvvwafwaf_required) + jQuery('#jform_url').closest('.control-group').show(); + if (jform_vvvvwafwag_required) { - updateFieldRequired('article',0); - jQuery('#jform_article').prop('required','required'); - jQuery('#jform_article').attr('aria-required',true); - jQuery('#jform_article').addClass('required'); - jform_vvvvwafwaf_required = false; + updateFieldRequired('url',0); + jQuery('#jform_url').prop('required','required'); + jQuery('#jform_url').attr('aria-required',true); + jQuery('#jform_url').addClass('required'); + jform_vvvvwafwag_required = false; } } else { - jQuery('#jform_article').closest('.control-group').hide(); - if (!jform_vvvvwafwaf_required) + jQuery('#jform_url').closest('.control-group').hide(); + if (!jform_vvvvwafwag_required) { - updateFieldRequired('article',1); - jQuery('#jform_article').removeAttr('required'); - jQuery('#jform_article').removeAttr('aria-required'); - jQuery('#jform_article').removeClass('required'); - jform_vvvvwafwaf_required = true; + updateFieldRequired('url',1); + jQuery('#jform_url').removeAttr('required'); + jQuery('#jform_url').removeAttr('aria-required'); + jQuery('#jform_url').removeClass('required'); + jform_vvvvwafwag_required = true; } } } @@ -217,7 +162,7 @@ function vvvvwaf(type_vvvvwaf) function type_vvvvwaf_SomeFunc(type_vvvvwaf) { // set the function logic - if (type_vvvvwaf == 1) + if (type_vvvvwaf == 3) { return true; } @@ -243,27 +188,27 @@ function vvvvwag(type_vvvvwag) // set this function logic if (type) { - jQuery('#jform_content-lbl').closest('.control-group').show(); - if (jform_vvvvwagwag_required) + jQuery('#jform_article').closest('.control-group').show(); + if (jform_vvvvwagwah_required) { - updateFieldRequired('content',0); - jQuery('#jform_content').prop('required','required'); - jQuery('#jform_content').attr('aria-required',true); - jQuery('#jform_content').addClass('required'); - jform_vvvvwagwag_required = false; + updateFieldRequired('article',0); + jQuery('#jform_article').prop('required','required'); + jQuery('#jform_article').attr('aria-required',true); + jQuery('#jform_article').addClass('required'); + jform_vvvvwagwah_required = false; } } else { - jQuery('#jform_content-lbl').closest('.control-group').hide(); - if (!jform_vvvvwagwag_required) + jQuery('#jform_article').closest('.control-group').hide(); + if (!jform_vvvvwagwah_required) { - updateFieldRequired('content',1); - jQuery('#jform_content').removeAttr('required'); - jQuery('#jform_content').removeAttr('aria-required'); - jQuery('#jform_content').removeClass('required'); - jform_vvvvwagwag_required = true; + updateFieldRequired('article',1); + jQuery('#jform_article').removeAttr('required'); + jQuery('#jform_article').removeAttr('aria-required'); + jQuery('#jform_article').removeClass('required'); + jform_vvvvwagwah_required = true; } } } @@ -272,7 +217,7 @@ function vvvvwag(type_vvvvwag) function type_vvvvwag_SomeFunc(type_vvvvwag) { // set the function logic - if (type_vvvvwag == 2) + if (type_vvvvwag == 1) { return true; } @@ -280,32 +225,87 @@ function type_vvvvwag_SomeFunc(type_vvvvwag) } // the vvvvwah function -function vvvvwah(target_vvvvwah) +function vvvvwah(type_vvvvwah) +{ + if (isSet(type_vvvvwah) && type_vvvvwah.constructor !== Array) + { + var temp_vvvvwah = type_vvvvwah; + var type_vvvvwah = []; + type_vvvvwah.push(temp_vvvvwah); + } + else if (!isSet(type_vvvvwah)) + { + var type_vvvvwah = []; + } + var type = type_vvvvwah.some(type_vvvvwah_SomeFunc); + + + // set this function logic + if (type) + { + jQuery('#jform_content-lbl').closest('.control-group').show(); + if (jform_vvvvwahwai_required) + { + updateFieldRequired('content',0); + jQuery('#jform_content').prop('required','required'); + jQuery('#jform_content').attr('aria-required',true); + jQuery('#jform_content').addClass('required'); + jform_vvvvwahwai_required = false; + } + + } + else + { + jQuery('#jform_content-lbl').closest('.control-group').hide(); + if (!jform_vvvvwahwai_required) + { + updateFieldRequired('content',1); + jQuery('#jform_content').removeAttr('required'); + jQuery('#jform_content').removeAttr('aria-required'); + jQuery('#jform_content').removeClass('required'); + jform_vvvvwahwai_required = true; + } + } +} + +// the vvvvwah Some function +function type_vvvvwah_SomeFunc(type_vvvvwah) { // set the function logic - if (target_vvvvwah == 1) + if (type_vvvvwah == 2) + { + return true; + } + return false; +} + +// the vvvvwai function +function vvvvwai(target_vvvvwai) +{ + // set the function logic + if (target_vvvvwai == 1) { jQuery('#jform_groups').closest('.control-group').show(); - if (jform_vvvvwahwah_required) + if (jform_vvvvwaiwaj_required) { updateFieldRequired('groups',0); jQuery('#jform_groups').prop('required','required'); jQuery('#jform_groups').attr('aria-required',true); jQuery('#jform_groups').addClass('required'); - jform_vvvvwahwah_required = false; + jform_vvvvwaiwaj_required = false; } } else { jQuery('#jform_groups').closest('.control-group').hide(); - if (!jform_vvvvwahwah_required) + if (!jform_vvvvwaiwaj_required) { updateFieldRequired('groups',1); jQuery('#jform_groups').removeAttr('required'); jQuery('#jform_groups').removeAttr('aria-required'); jQuery('#jform_groups').removeClass('required'); - jform_vvvvwahwah_required = true; + jform_vvvvwaiwaj_required = true; } } } diff --git a/admin/models/forms/joomla_component.js b/admin/models/forms/joomla_component.js index 460da64b5..a943db15f 100644 --- a/admin/models/forms/joomla_component.js +++ b/admin/models/forms/joomla_component.js @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 359 of this MVC - @build 23rd August, 2017 + @version @update number 366 of this MVC + @build 7th September, 2017 @created 6th May, 2015 @package Component Builder @subpackage joomla_component.js diff --git a/admin/models/forms/joomla_component.xml b/admin/models/forms/joomla_component.xml index 2bdf819d3..ff166601a 100644 --- a/admin/models/forms/joomla_component.xml +++ b/admin/models/forms/joomla_component.xml @@ -178,20 +178,19 @@ message="Error! Please add author name here." hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_HINT" /> - + - - - - + type="editor" + name="readme" + label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_README_LABEL" + default="You can use all the normal markdown, including the place-holders." + width="100%" + height="1200px" + buttons="false" + editor="none" + filter="raw" + required="true" + /> COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO - + - - - + type="radio" + name="add_php_dashboard_methods" + label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_DASHBOARD_METHODS_LABEL" + class="btn-group btn-group-yesno" + default="0" + required="true"> + + + - + @@ -307,17 +260,17 @@ hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COPYRIGHT_HINT" required="true" /> - + @@ -350,6 +303,86 @@ + + + + + + + + + + + + + + + + + + + + + + - + + + @@ -423,6 +472,21 @@ + + - + + type="radio" + name="add_license" + label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE_LABEL" + description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE_DESCRIPTION" + class="btn-group btn-group-yesno" + default="0" + required="true"> + + + + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO - - - - - - - - - - - - - - - - - - - - - - - - - - - - COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_USED_IN_CUSTOM_CODE - + @@ -605,11 +570,11 @@ - + @@ -632,11 +597,11 @@ message="Error! Please add some secret key here." hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_KEY_HINT" /> - + @@ -660,19 +625,66 @@ message="Error! Please add website here." hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_URL_HINT" /> - + + type="repeatable" + name="dashboard_tab" + label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_TAB_LABEL" + id="dashboard_tab" + class="dashboard_tabs" + select="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_TAB_SELECT" + icon="list" + maximum="10" + filter="raw"> + + + + - + @@ -710,17 +722,17 @@ description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BOM_DESCRIPTION" hide_default="true" /> - + @@ -731,32 +743,18 @@ description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_DESCRIPTION" directory="" /> - + - - COM_COMPONENTBUILDER_JOOMLA_COMPONENT_OTHER - - - - - - - + @@ -825,21 +787,26 @@ + + + + - + - + - + - - - - + type="text" + name="export_key" + label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_KEY_LABEL" + size="150" + maxlength="265" + description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_KEY_DESCRIPTION" + class="text_area" + required="false" + filter="STRING" + message="Error! Please add export key here." + hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_KEY_HINT" + /> + + + + + + + + + + + + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - + maximum="500" + filter="SAFEHTML"> - + @@ -2688,11 +2657,11 @@ - + @@ -2713,6 +2682,38 @@ max="40" step="1" /> + + + + + + + + + + + + + + + + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - + + + + + + + + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO - - + + - - + + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla modelform library +jimport('joomla.application.component.modeladmin'); + +/** + * Componentbuilder Ftp Model + */ +class ComponentbuilderModelFtp extends JModelAdmin +{ + /** + * @var string The prefix to use with controller messages. + * @since 1.6 + */ + protected $text_prefix = 'COM_COMPONENTBUILDER'; + + /** + * The type alias for this content type. + * + * @var string + * @since 3.2 + */ + public $typeAlias = 'com_componentbuilder.ftp'; + + /** + * Returns a Table object, always creating it + * + * @param type $type The table type to instantiate + * @param string $prefix A prefix for the table class name. Optional. + * @param array $config Configuration array for model. Optional. + * + * @return JTable A database object + * + * @since 1.6 + */ + public function getTable($type = 'ftp', $prefix = 'ComponentbuilderTable', $config = array()) + { + return JTable::getInstance($type, $prefix, $config); + } + + /** + * Method to get a single record. + * + * @param integer $pk The id of the primary key. + * + * @return mixed Object on success, false on failure. + * + * @since 1.6 + */ + public function getItem($pk = null) + { + if ($item = parent::getItem($pk)) + { + if (!empty($item->params)) + { + // Convert the params field to an array. + $registry = new Registry; + $registry->loadString($item->params); + $item->params = $registry->toArray(); + } + + if (!empty($item->metadata)) + { + // Convert the metadata field to an array. + $registry = new Registry; + $registry->loadString($item->metadata); + $item->metadata = $registry->toArray(); + } + + // Get the basic encryption. + $basickey = ComponentbuilderHelper::getCryptKey('basic'); + // Get the encryption object. + $basic = new FOFEncryptAes($basickey, 128); + + if (!empty($item->signature) && $basickey && !is_numeric($item->signature) && $item->signature === base64_encode(base64_decode($item->signature, true))) + { + // basic decrypt data signature. + $item->signature = rtrim($basic->decryptString($item->signature), "\0"); + } + + if (!empty($item->id)) + { + $item->tags = new JHelperTags; + $item->tags->getTagIds($item->id, 'com_componentbuilder.ftp'); + } + } + $this->sales_server_ftpupdate_server_ftp_vvwf = $item->id; + + return $item; + } + + /** + * Method to get list data. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getWadlinked_components() + { + // Get the user object. + $user = JFactory::getUser(); + // Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // Select some fields + $query->select('a.*'); + + // From the componentbuilder_joomla_component table + $query->from($db->quoteName('#__componentbuilder_joomla_component', 'a')); + + // Filter by sales_server_ftpupdate_server_ftp_vvwf global. + $sales_server_ftpupdate_server_ftp_vvwf = $this->sales_server_ftpupdate_server_ftp_vvwf; + if (is_numeric($sales_server_ftpupdate_server_ftp_vvwf )) + { + $query->where('a.sales_server_ftp = ' . (int) $sales_server_ftpupdate_server_ftp_vvwf . ' OR a.update_server_ftp = ' . (int) $sales_server_ftpupdate_server_ftp_vvwf, ' OR'); + } + elseif (is_string($sales_server_ftpupdate_server_ftp_vvwf)) + { + $query->where('a.sales_server_ftp = ' . $db->quote($sales_server_ftpupdate_server_ftp_vvwf) . ' OR a.update_server_ftp = ' . $db->quote($sales_server_ftpupdate_server_ftp_vvwf), ' OR'); + } + else + { + $query->where('a.update_server_ftp = -5'); + } + + // Join over the asset groups. + $query->select('ag.title AS access_level'); + $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); + // Filter by access level. + if ($access = $this->getState('filter.access')) + { + $query->where('a.access = ' . (int) $access); + } + // Implement View Level Access + if (!$user->authorise('core.options', 'com_componentbuilder')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + + // Order the results by ordering + $query->order('a.published ASC'); + $query->order('a.ordering ASC'); + + // Load the items + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $items = $db->loadObjectList(); + return $items; + } + return false; + } + + /** + * Method to get the record form. + * + * @param array $data Data for the form. + * @param boolean $loadData True if the form is to load its own data (default case), false if not. + * + * @return mixed A JForm object on success, false on failure + * + * @since 1.6 + */ + public function getForm($data = array(), $loadData = true) + { + // Get the form. + $form = $this->loadForm('com_componentbuilder.ftp', 'ftp', array('control' => 'jform', 'load_data' => $loadData)); + + if (empty($form)) + { + return false; + } + + $jinput = JFactory::getApplication()->input; + + // The front end calls this model and uses a_id to avoid id clashes so we need to check for that first. + if ($jinput->get('a_id')) + { + $id = $jinput->get('a_id', 0, 'INT'); + } + // The back end uses id so we use that the rest of the time and set it to 0 by default. + else + { + $id = $jinput->get('id', 0, 'INT'); + } + + $user = JFactory::getUser(); + + // Check for existing item. + // Modify the form based on Edit State access controls. + if ($id != 0 && (!$user->authorise('ftp.edit.state', 'com_componentbuilder.ftp.' . (int) $id)) + || ($id == 0 && !$user->authorise('ftp.edit.state', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('ordering', 'disabled', 'true'); + $form->setFieldAttribute('published', 'disabled', 'true'); + // Disable fields while saving. + $form->setFieldAttribute('ordering', 'filter', 'unset'); + $form->setFieldAttribute('published', 'filter', 'unset'); + } + // If this is a new item insure the greated by is set. + if (0 == $id) + { + // Set the created_by to this user + $form->setValue('created_by', null, $user->id); + } + // Modify the form based on Edit Creaded By access controls. + if ($id != 0 && (!$user->authorise('ftp.edit.created_by', 'com_componentbuilder.ftp.' . (int) $id)) + || ($id == 0 && !$user->authorise('ftp.edit.created_by', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('created_by', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('created_by', 'readonly', 'true'); + // Disable fields while saving. + $form->setFieldAttribute('created_by', 'filter', 'unset'); + } + // Modify the form based on Edit Creaded Date access controls. + if ($id != 0 && (!$user->authorise('ftp.edit.created', 'com_componentbuilder.ftp.' . (int) $id)) + || ($id == 0 && !$user->authorise('ftp.edit.created', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('created', 'disabled', 'true'); + // Disable fields while saving. + $form->setFieldAttribute('created', 'filter', 'unset'); + } + // Modify the form based on Edit Name access controls. + if ($id != 0 && (!$user->authorise('ftp.edit.name', 'com_componentbuilder.ftp.' . (int) $id)) + || ($id == 0 && !$user->authorise('ftp.edit.name', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('name', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('name', 'readonly', 'true'); + if (!$form->getValue('name')) + { + // Disable fields while saving. + $form->setFieldAttribute('name', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('name', 'required', 'false'); + } + } + // Modify the form based on Edit Signature access controls. + if ($id != 0 && (!$user->authorise('ftp.edit.signature', 'com_componentbuilder.ftp.' . (int) $id)) + || ($id == 0 && !$user->authorise('ftp.edit.signature', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('signature', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('signature', 'readonly', 'true'); + if (!$form->getValue('signature')) + { + // Disable fields while saving. + $form->setFieldAttribute('signature', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('signature', 'required', 'false'); + } + } + // Only load these values if no id is found + if (0 == $id) + { + // Set redirected field name + $redirectedField = $jinput->get('ref', null, 'STRING'); + // Set redirected field value + $redirectedValue = $jinput->get('refid', 0, 'INT'); + if (0 != $redirectedValue && $redirectedField) + { + // Now set the local-redirected field default value + $form->setValue($redirectedField, null, $redirectedValue); + } + } + + return $form; + } + + /** + * Method to get the script that have to be included on the form + * + * @return string script files + */ + public function getScript() + { + return 'administrator/components/com_componentbuilder/models/forms/ftp.js'; + } + + /** + * Method to test whether a record can be deleted. + * + * @param object $record A record object. + * + * @return boolean True if allowed to delete the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canDelete($record) + { + if (!empty($record->id)) + { + if ($record->published != -2) + { + return; + } + + $user = JFactory::getUser(); + // The record has been set. Check the record permissions. + return $user->authorise('ftp.delete', 'com_componentbuilder.ftp.' . (int) $record->id); + } + return false; + } + + /** + * Method to test whether a record can have its state edited. + * + * @param object $record A record object. + * + * @return boolean True if allowed to change the state of the record. Defaults to the permission set in the component. + * + * @since 1.6 + */ + protected function canEditState($record) + { + $user = JFactory::getUser(); + $recordId = (!empty($record->id)) ? $record->id : 0; + + if ($recordId) + { + // The record has been set. Check the record permissions. + $permission = $user->authorise('ftp.edit.state', 'com_componentbuilder.ftp.' . (int) $recordId); + if (!$permission && !is_null($permission)) + { + return false; + } + } + // In the absense of better information, revert to the component permissions. + return $user->authorise('ftp.edit.state', 'com_componentbuilder'); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * @since 2.5 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // Check specific edit permission then general edit permission. + $user = JFactory::getUser(); + + return $user->authorise('ftp.edit', 'com_componentbuilder.ftp.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('ftp.edit', 'com_componentbuilder'); + } + + /** + * Prepare and sanitise the table data prior to saving. + * + * @param JTable $table A JTable object. + * + * @return void + * + * @since 1.6 + */ + protected function prepareTable($table) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if (isset($table->name)) + { + $table->name = htmlspecialchars_decode($table->name, ENT_QUOTES); + } + + if (isset($table->alias) && empty($table->alias)) + { + $table->generateAlias(); + } + + if (empty($table->id)) + { + $table->created = $date->toSql(); + // set the user + if ($table->created_by == 0 || empty($table->created_by)) + { + $table->created_by = $user->id; + } + // Set ordering to the last item if not set + if (empty($table->ordering)) + { + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select('MAX(ordering)') + ->from($db->quoteName('#__componentbuilder_ftp')); + $db->setQuery($query); + $max = $db->loadResult(); + + $table->ordering = $max + 1; + } + } + else + { + $table->modified = $date->toSql(); + $table->modified_by = $user->id; + } + + if (!empty($table->id)) + { + // Increment the items version number. + $table->version++; + } + } + + /** + * Method to get the data that should be injected in the form. + * + * @return mixed The data for the form. + * + * @since 1.6 + */ + protected function loadFormData() + { + // Check the session for previously entered form data. + $data = JFactory::getApplication()->getUserState('com_componentbuilder.edit.ftp.data', array()); + + if (empty($data)) + { + $data = $this->getItem(); + } + + return $data; + } + + /** + * Method to get the unique fields of this table. + * + * @return mixed An array of field names, boolean false if none is set. + * + * @since 3.0 + */ + protected function getUniqeFields() + { + return false; + } + + /** + * Method to delete one or more records. + * + * @param array &$pks An array of record primary keys. + * + * @return boolean True if successful, false if an error occurs. + * + * @since 12.2 + */ + public function delete(&$pks) + { + if (!parent::delete($pks)) + { + return false; + } + + return true; + } + + /** + * Method to change the published state of one or more records. + * + * @param array &$pks A list of the primary keys to change. + * @param integer $value The value of the published state. + * + * @return boolean True on success. + * + * @since 12.2 + */ + public function publish(&$pks, $value = 1) + { + if (!parent::publish($pks, $value)) + { + return false; + } + + return true; + } + + /** + * Method to perform batch operations on an item or a set of items. + * + * @param array $commands An array of commands to perform. + * @param array $pks An array of item ids. + * @param array $contexts An array of item contexts. + * + * @return boolean Returns true on success, false on failure. + * + * @since 12.2 + */ + public function batch($commands, $pks, $contexts) + { + // Sanitize ids. + $pks = array_unique($pks); + JArrayHelper::toInteger($pks); + + // Remove any values of zero. + if (array_search(0, $pks, true)) + { + unset($pks[array_search(0, $pks, true)]); + } + + if (empty($pks)) + { + $this->setError(JText::_('JGLOBAL_NO_ITEM_SELECTED')); + return false; + } + + $done = false; + + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = ComponentbuilderHelper::getActions('ftp'); + $this->batchSet = true; + + if (!$this->canDo->get('core.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + return false; + } + + if ($this->type == false) + { + $type = new JUcmType; + $this->type = $type->getTypeByAlias($this->typeAlias); + } + + $this->tagsObserver = $this->table->getObserverOfClass('JTableObserverTags'); + + if (!empty($commands['move_copy'])) + { + $cmd = JArrayHelper::getValue($commands, 'move_copy', 'c'); + + if ($cmd == 'c') + { + $result = $this->batchCopy($commands, $pks, $contexts); + + if (is_array($result)) + { + foreach ($result as $old => $new) + { + $contexts[$new] = $contexts[$old]; + } + $pks = array_values($result); + } + else + { + return false; + } + } + elseif ($cmd == 'm' && !$this->batchMove($commands, $pks, $contexts)) + { + return false; + } + + $done = true; + } + + if (!$done) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION')); + + return false; + } + + // Clear the cache + $this->cleanCache(); + + return true; + } + + /** + * Batch copy items to a new category or current. + * + * @param integer $values The new values. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return mixed An array of new IDs on success, boolean false on failure. + * + * @since 12.2 + */ + protected function batchCopy($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = ComponentbuilderHelper::getActions('ftp'); + } + + if (!$this->canDo->get('ftp.create') && !$this->canDo->get('ftp.batch')) + { + return false; + } + + // get list of uniqe fields + $uniqeFields = $this->getUniqeFields(); + // remove move_copy from array + unset($values['move_copy']); + + // make sure published is set + if (!isset($values['published'])) + { + $values['published'] = 0; + } + elseif (isset($values['published']) && !$this->canDo->get('ftp.edit.state')) + { + $values['published'] = 0; + } + + $newIds = array(); + + // Parent exists so let's proceed + while (!empty($pks)) + { + // Pop the first ID off the stack + $pk = array_shift($pks); + + $this->table->reset(); + + // only allow copy if user may edit this item. + + if (!$this->user->authorise('ftp.edit', $contexts[$pk])) + + { + + // Not fatal error + + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + + continue; + + } + + // Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // Fatal error + $this->setError($error); + + return false; + } + else + { + // Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + $this->table->name = $this->generateUniqe('name',$this->table->name); + + // insert all set values + if (ComponentbuilderHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + if (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + // update all uniqe fields + if (ComponentbuilderHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $this->table->$uniqeField = $this->generateUniqe($uniqeField,$this->table->$uniqeField); + } + } + + // Reset the ID because we are making a copy + $this->table->id = 0; + + // TODO: Deal with ordering? + // $this->table->ordering = 1; + + // Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + + // Get the new item ID + $newId = $this->table->get('id'); + + // Add the new ID to the array + $newIds[$pk] = $newId; + } + + // Clean the cache + $this->cleanCache(); + + return $newIds; + } + + /** + * Batch move items to a new category + * + * @param integer $value The new category ID. + * @param array $pks An array of row IDs. + * @param array $contexts An array of item contexts. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 12.2 + */ + protected function batchMove($values, $pks, $contexts) + { + if (empty($this->batchSet)) + { + // Set some needed variables. + $this->user = JFactory::getUser(); + $this->table = $this->getTable(); + $this->tableClassName = get_class($this->table); + $this->contentType = new JUcmType; + $this->type = $this->contentType->getTypeByTable($this->tableClassName); + $this->canDo = ComponentbuilderHelper::getActions('ftp'); + } + + if (!$this->canDo->get('ftp.edit') && !$this->canDo->get('ftp.batch')) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + return false; + } + + // make sure published only updates if user has the permission. + if (isset($values['published']) && !$this->canDo->get('ftp.edit.state')) + { + unset($values['published']); + } + // remove move_copy from array + unset($values['move_copy']); + + // Parent exists so we proceed + foreach ($pks as $pk) + { + if (!$this->user->authorise('ftp.edit', $contexts[$pk])) + { + $this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT')); + + return false; + } + + // Check that the row actually exists + if (!$this->table->load($pk)) + { + if ($error = $this->table->getError()) + { + // Fatal error + $this->setError($error); + + return false; + } + else + { + // Not fatal error + $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk)); + continue; + } + } + + // insert all set values. + if (ComponentbuilderHelper::checkArray($values)) + { + foreach ($values as $key => $value) + { + // Do special action for access. + if ('access' === $key && strlen($value) > 0) + { + $this->table->$key = $value; + } + elseif (strlen($value) > 0 && isset($this->table->$key)) + { + $this->table->$key = $value; + } + } + } + + + // Check the row. + if (!$this->table->check()) + { + $this->setError($this->table->getError()); + + return false; + } + + if (!empty($this->type)) + { + $this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table); + } + + // Store the row. + if (!$this->table->store()) + { + $this->setError($this->table->getError()); + + return false; + } + } + + // Clean the cache + $this->cleanCache(); + + return true; + } + + /** + * Method to save the form data. + * + * @param array $data The form data. + * + * @return boolean True on success. + * + * @since 1.6 + */ + public function save($data) + { + $input = JFactory::getApplication()->input; + $filter = JFilterInput::getInstance(); + + // set the metadata to the Item Data + if (isset($data['metadata']) && isset($data['metadata']['author'])) + { + $data['metadata']['author'] = $filter->clean($data['metadata']['author'], 'TRIM'); + + $metadata = new JRegistry; + $metadata->loadArray($data['metadata']); + $data['metadata'] = (string) $metadata; + } + + // Get the basic encryption key. + $basickey = ComponentbuilderHelper::getCryptKey('basic'); + // Get the encryption object + $basic = new FOFEncryptAes($basickey, 128); + + // Encrypt data signature. + if (isset($data['signature']) && $basickey) + { + $data['signature'] = $basic->encryptString($data['signature']); + } + + // Set the Params Items to data + if (isset($data['params']) && is_array($data['params'])) + { + $params = new JRegistry; + $params->loadArray($data['params']); + $data['params'] = (string) $params; + } + + // Alter the uniqe field for save as copy + if ($input->get('task') === 'save2copy') + { + // Automatic handling of other uniqe fields + $uniqeFields = $this->getUniqeFields(); + if (ComponentbuilderHelper::checkArray($uniqeFields)) + { + foreach ($uniqeFields as $uniqeField) + { + $data[$uniqeField] = $this->generateUniqe($uniqeField,$data[$uniqeField]); + } + } + } + + if (parent::save($data)) + { + return true; + } + return false; + } + + /** + * Method to generate a uniqe value. + * + * @param string $field name. + * @param string $value data. + * + * @return string New value. + * + * @since 3.0 + */ + protected function generateUniqe($field,$value) + { + + // set field value uniqe + $table = $this->getTable(); + + while ($table->load(array($field => $value))) + { + $value = JString::increment($value); + } + + return $value; + } + + /** + * Method to change the title & alias. + * + * @param string $title The title. + * + * @return array Contains the modified title and alias. + * + */ + protected function _generateNewTitle($title) + { + + // Alter the title + $table = $this->getTable(); + + while ($table->load(array('title' => $title))) + { + $title = JString::increment($title); + } + + return $title; + } +} diff --git a/admin/models/ftps.php b/admin/models/ftps.php new file mode 100644 index 000000000..57057dcc0 --- /dev/null +++ b/admin/models/ftps.php @@ -0,0 +1,385 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the Joomla modellist library +jimport('joomla.application.component.modellist'); + +/** + * Ftps Model + */ +class ComponentbuilderModelFtps extends JModelList +{ + public function __construct($config = array()) + { + if (empty($config['filter_fields'])) + { + $config['filter_fields'] = array( + 'a.id','id', + 'a.published','published', + 'a.ordering','ordering', + 'a.created_by','created_by', + 'a.modified_by','modified_by', + 'a.name','name' + ); + } + + parent::__construct($config); + } + + /** + * Method to auto-populate the model state. + * + * @return void + */ + protected function populateState($ordering = null, $direction = null) + { + $app = JFactory::getApplication(); + + // Adjust the context to support modal layouts. + if ($layout = $app->input->get('layout')) + { + $this->context .= '.' . $layout; + } + $name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name'); + $this->setState('filter.name', $name); + + $sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int'); + $this->setState('filter.sorting', $sorting); + + $access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int'); + $this->setState('filter.access', $access); + + $search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search'); + $this->setState('filter.search', $search); + + $published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', ''); + $this->setState('filter.published', $published); + + $created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', ''); + $this->setState('filter.created_by', $created_by); + + $created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created'); + $this->setState('filter.created', $created); + + // List state information. + parent::populateState($ordering, $direction); + } + + /** + * Method to get an array of data items. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getItems() + { + // check in items + $this->checkInNow(); + + // load parent items + $items = parent::getItems(); + + // set values to display correctly. + if (ComponentbuilderHelper::checkArray($items)) + { + // get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('ftp.access', 'com_componentbuilder.ftp.' . (int) $item->id) && $user->authorise('ftp.access', 'com_componentbuilder')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + } + } + + // return items + return $items; + } + + /** + * Method to build an SQL query to load the list data. + * + * @return string An SQL query + */ + protected function getListQuery() + { + // Get the user object. + $user = JFactory::getUser(); + // Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // Select some fields + $query->select('a.*'); + + // From the componentbuilder_item table + $query->from($db->quoteName('#__componentbuilder_ftp', 'a')); + + // Filter by published state + $published = $this->getState('filter.published'); + if (is_numeric($published)) + { + $query->where('a.published = ' . (int) $published); + } + elseif ($published === '') + { + $query->where('(a.published = 0 OR a.published = 1)'); + } + + // Join over the asset groups. + $query->select('ag.title AS access_level'); + $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); + // Filter by access level. + if ($access = $this->getState('filter.access')) + { + $query->where('a.access = ' . (int) $access); + } + // Implement View Level Access + if (!$user->authorise('core.options', 'com_componentbuilder')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + // Filter by search. + $search = $this->getState('filter.search'); + if (!empty($search)) + { + if (stripos($search, 'id:') === 0) + { + $query->where('a.id = ' . (int) substr($search, 3)); + } + else + { + $search = $db->quote('%' . $db->escape($search) . '%'); + $query->where('(a.name LIKE '.$search.')'); + } + } + + // Filter by Name. + if ($name = $this->getState('filter.name')) + { + $query->where('a.name = ' . $db->quote($db->escape($name))); + } + + // Add the list ordering clause. + $orderCol = $this->state->get('list.ordering', 'a.id'); + $orderDirn = $this->state->get('list.direction', 'asc'); + if ($orderCol != '') + { + $query->order($db->escape($orderCol . ' ' . $orderDirn)); + } + + return $query; + } + + /** + * Method to get list export data. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getExportData($pks) + { + // setup the query + if (ComponentbuilderHelper::checkArray($pks)) + { + // Set a value to know this is exporting method. + $_export = true; + // Get the user object. + $user = JFactory::getUser(); + // Create a new query object. + $db = JFactory::getDBO(); + $query = $db->getQuery(true); + + // Select some fields + $query->select('a.*'); + + // From the componentbuilder_ftp table + $query->from($db->quoteName('#__componentbuilder_ftp', 'a')); + $query->where('a.id IN (' . implode(',',$pks) . ')'); + // Implement View Level Access + if (!$user->authorise('core.options', 'com_componentbuilder')) + { + $groups = implode(',', $user->getAuthorisedViewLevels()); + $query->where('a.access IN (' . $groups . ')'); + } + + // Order the results by ordering + $query->order('a.ordering ASC'); + + // Load the items + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + $items = $db->loadObjectList(); + + // Get the basic encryption key. + $basickey = ComponentbuilderHelper::getCryptKey('basic'); + // Get the encryption object. + $basic = new FOFEncryptAes($basickey, 128); + + // set values to display correctly. + if (ComponentbuilderHelper::checkArray($items)) + { + // get user object. + $user = JFactory::getUser(); + foreach ($items as $nr => &$item) + { + $access = ($user->authorise('ftp.access', 'com_componentbuilder.ftp.' . (int) $item->id) && $user->authorise('ftp.access', 'com_componentbuilder')); + if (!$access) + { + unset($items[$nr]); + continue; + } + + if ($basickey && !is_numeric($item->signature) && $item->signature === base64_encode(base64_decode($item->signature, true))) + { + // decrypt signature + $item->signature = $basic->decryptString($item->signature); + } + // unset the values we don't want exported. + unset($item->asset_id); + unset($item->checked_out); + unset($item->checked_out_time); + } + } + // Add headers to items array. + $headers = $this->getExImPortHeaders(); + if (ComponentbuilderHelper::checkObject($headers)) + { + array_unshift($items,$headers); + } + return $items; + } + } + return false; + } + + /** + * Method to get header. + * + * @return mixed An array of data items on success, false on failure. + */ + public function getExImPortHeaders() + { + // Get a db connection. + $db = JFactory::getDbo(); + // get the columns + $columns = $db->getTableColumns("#__componentbuilder_ftp"); + if (ComponentbuilderHelper::checkArray($columns)) + { + // remove the headers you don't import/export. + unset($columns['asset_id']); + unset($columns['checked_out']); + unset($columns['checked_out_time']); + $headers = new stdClass(); + foreach ($columns as $column => $type) + { + $headers->{$column} = $column; + } + return $headers; + } + return false; + } + + /** + * Method to get a store id based on model configuration state. + * + * @return string A store id. + * + */ + protected function getStoreId($id = '') + { + // Compile the store id. + $id .= ':' . $this->getState('filter.id'); + $id .= ':' . $this->getState('filter.search'); + $id .= ':' . $this->getState('filter.published'); + $id .= ':' . $this->getState('filter.ordering'); + $id .= ':' . $this->getState('filter.created_by'); + $id .= ':' . $this->getState('filter.modified_by'); + $id .= ':' . $this->getState('filter.name'); + + return parent::getStoreId($id); + } + + /** + * Build an SQL query to checkin all items left checked out longer then a set time. + * + * @return a bool + * + */ + protected function checkInNow() + { + // Get set check in time + $time = JComponentHelper::getParams('com_componentbuilder')->get('check_in'); + + if ($time) + { + + // Get a db connection. + $db = JFactory::getDbo(); + // reset query + $query = $db->getQuery(true); + $query->select('*'); + $query->from($db->quoteName('#__componentbuilder_ftp')); + $db->setQuery($query); + $db->execute(); + if ($db->getNumRows()) + { + // Get Yesterdays date + $date = JFactory::getDate()->modify($time)->toSql(); + // reset query + $query = $db->getQuery(true); + + // Fields to update. + $fields = array( + $db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'', + $db->quoteName('checked_out') . '=0' + ); + + // Conditions for which records should be updated. + $conditions = array( + $db->quoteName('checked_out') . '!=0', + $db->quoteName('checked_out_time') . '<\''.$date.'\'' + ); + + // Check table + $query->update($db->quoteName('#__componentbuilder_ftp'))->set($fields)->where($conditions); + + $db->setQuery($query); + + $db->execute(); + } + } + + return false; + } +} diff --git a/admin/models/help_document.php b/admin/models/help_document.php index 9d8d15a94..dae6e4e85 100644 --- a/admin/models/help_document.php +++ b/admin/models/help_document.php @@ -11,7 +11,7 @@ /-------------------------------------------------------------------------------------------------------------------------------/ @version @update number 6 of this MVC - @build 18th October, 2016 + @build 17th October, 2016 @created 4th March, 2016 @package Component Builder @subpackage help_document.php diff --git a/admin/models/help_documents.php b/admin/models/help_documents.php index 535c913a4..76cc18fdd 100644 --- a/admin/models/help_documents.php +++ b/admin/models/help_documents.php @@ -11,7 +11,7 @@ /-------------------------------------------------------------------------------------------------------------------------------/ @version @update number 6 of this MVC - @build 18th October, 2016 + @build 17th October, 2016 @created 4th March, 2016 @package Component Builder @subpackage help_documents.php diff --git a/admin/models/import.php b/admin/models/import.php index 43ac52206..69c455352 100644 --- a/admin/models/import.php +++ b/admin/models/import.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage import.php diff --git a/admin/models/import_joomla_components.php b/admin/models/import_joomla_components.php index 616901522..9190ba0c3 100644 --- a/admin/models/import_joomla_components.php +++ b/admin/models/import_joomla_components.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage import_joomla_components.php diff --git a/admin/models/joomla_component.php b/admin/models/joomla_component.php index 1847f7f95..e86533de5 100644 --- a/admin/models/joomla_component.php +++ b/admin/models/joomla_component.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 359 of this MVC - @build 23rd August, 2017 + @version @update number 366 of this MVC + @build 7th September, 2017 @created 6th May, 2015 @package Component Builder @subpackage joomla_component.php @@ -95,34 +95,10 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $item->metadata = $registry->toArray(); } - if (!empty($item->php_postflight_update)) + if (!empty($item->readme)) { - // base64 Decode php_postflight_update. - $item->php_postflight_update = base64_decode($item->php_postflight_update); - } - - if (!empty($item->php_preflight_update)) - { - // base64 Decode php_preflight_update. - $item->php_preflight_update = base64_decode($item->php_preflight_update); - } - - if (!empty($item->sql)) - { - // base64 Decode sql. - $item->sql = base64_decode($item->sql); - } - - if (!empty($item->css)) - { - // base64 Decode css. - $item->css = base64_decode($item->css); - } - - if (!empty($item->php_preflight_install)) - { - // base64 Decode php_preflight_install. - $item->php_preflight_install = base64_decode($item->php_preflight_install); + // base64 Decode readme. + $item->readme = base64_decode($item->readme); } if (!empty($item->php_postflight_install)) @@ -131,16 +107,40 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $item->php_postflight_install = base64_decode($item->php_postflight_install); } + if (!empty($item->php_preflight_install)) + { + // base64 Decode php_preflight_install. + $item->php_preflight_install = base64_decode($item->php_preflight_install); + } + if (!empty($item->php_method_uninstall)) { // base64 Decode php_method_uninstall. $item->php_method_uninstall = base64_decode($item->php_method_uninstall); } - if (!empty($item->readme)) + if (!empty($item->css)) { - // base64 Decode readme. - $item->readme = base64_decode($item->readme); + // base64 Decode css. + $item->css = base64_decode($item->css); + } + + if (!empty($item->php_preflight_update)) + { + // base64 Decode php_preflight_update. + $item->php_preflight_update = base64_decode($item->php_preflight_update); + } + + if (!empty($item->php_postflight_update)) + { + // base64 Decode php_postflight_update. + $item->php_postflight_update = base64_decode($item->php_postflight_update); + } + + if (!empty($item->sql)) + { + // base64 Decode sql. + $item->sql = base64_decode($item->sql); } if (!empty($item->php_helper_both)) @@ -185,32 +185,20 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $item->buildcompsql = base64_decode($item->buildcompsql); } - // Get the basic encription. + // Get the basic encryption. $basickey = ComponentbuilderHelper::getCryptKey('basic'); - // Get the encription object. + // Get the encryption object. $basic = new FOFEncryptAes($basickey, 128); if (!empty($item->whmcs_key) && $basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true))) { - // basic decript data whmcs_key. + // basic decrypt data whmcs_key. $item->whmcs_key = rtrim($basic->decryptString($item->whmcs_key), "\0"); } - if (!empty($item->sales_server_ftp) && $basickey && !is_numeric($item->sales_server_ftp) && $item->sales_server_ftp === base64_encode(base64_decode($item->sales_server_ftp, true))) - { - // basic decript data sales_server_ftp. - $item->sales_server_ftp = rtrim($basic->decryptString($item->sales_server_ftp), "\0"); - } - - if (!empty($item->update_server_ftp) && $basickey && !is_numeric($item->update_server_ftp) && $item->update_server_ftp === base64_encode(base64_decode($item->update_server_ftp, true))) - { - // basic decript data update_server_ftp. - $item->update_server_ftp = rtrim($basic->decryptString($item->update_server_ftp), "\0"); - } - if (!empty($item->export_key) && $basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true))) { - // basic decript data export_key. + // basic decrypt data export_key. $item->export_key = rtrim($basic->decryptString($item->export_key), "\0"); } @@ -715,6 +703,430 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin // Disable fields while saving. $form->setFieldAttribute('created', 'filter', 'unset'); } + // Modify the form based on Edit System Name access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.system_name', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.system_name', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('system_name', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('system_name', 'readonly', 'true'); + if (!$form->getValue('system_name')) + { + // Disable fields while saving. + $form->setFieldAttribute('system_name', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('system_name', 'required', 'false'); + } + } + // Modify the form based on Edit Name Code access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.name_code', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.name_code', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('name_code', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('name_code', 'readonly', 'true'); + if (!$form->getValue('name_code')) + { + // Disable fields while saving. + $form->setFieldAttribute('name_code', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('name_code', 'required', 'false'); + } + } + // Modify the form based on Edit Component Version access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.component_version', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.component_version', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('component_version', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('component_version', 'readonly', 'true'); + if (!$form->getValue('component_version')) + { + // Disable fields while saving. + $form->setFieldAttribute('component_version', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('component_version', 'required', 'false'); + } + } + // Modify the form based on Edit Short Description access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.short_description', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.short_description', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('short_description', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('short_description', 'readonly', 'true'); + if (!$form->getValue('short_description')) + { + // Disable fields while saving. + $form->setFieldAttribute('short_description', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('short_description', 'required', 'false'); + } + } + // Modify the form based on Edit Companyname access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.companyname', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.companyname', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('companyname', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('companyname', 'readonly', 'true'); + if (!$form->getValue('companyname')) + { + // Disable fields while saving. + $form->setFieldAttribute('companyname', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('companyname', 'required', 'false'); + } + } + // Modify the form based on Edit Author access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.author', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.author', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('author', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('author', 'readonly', 'true'); + if (!$form->getValue('author')) + { + // Disable fields while saving. + $form->setFieldAttribute('author', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('author', 'required', 'false'); + } + } + // Modify the form based on Edit Readme access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.readme', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.readme', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('readme', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('readme', 'readonly', 'true'); + if (!$form->getValue('readme')) + { + // Disable fields while saving. + $form->setFieldAttribute('readme', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('readme', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Dashboard Methods access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_dashboard_methods', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_dashboard_methods', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_dashboard_methods', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_dashboard_methods', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_dashboard_methods', 'class', ''); + $form->setFieldAttribute('add_php_dashboard_methods', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_dashboard_methods')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_dashboard_methods', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_dashboard_methods', 'required', 'false'); + } + } + // Modify the form based on Edit Description access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.description', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.description', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('description', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('description', 'readonly', 'true'); + if (!$form->getValue('description')) + { + // Disable fields while saving. + $form->setFieldAttribute('description', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('description', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Helper Admin access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_helper_admin', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_helper_admin', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_helper_admin', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_helper_admin', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_helper_admin', 'class', ''); + $form->setFieldAttribute('add_php_helper_admin', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_helper_admin')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_helper_admin', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_helper_admin', 'required', 'false'); + } + } + // Modify the form based on Edit Copyright access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.copyright', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.copyright', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('copyright', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('copyright', 'readonly', 'true'); + if (!$form->getValue('copyright')) + { + // Disable fields while saving. + $form->setFieldAttribute('copyright', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('copyright', 'required', 'false'); + } + } + // Modify the form based on Edit Php Postflight Install access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.php_postflight_install', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.php_postflight_install', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_postflight_install', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_postflight_install', 'readonly', 'true'); + if (!$form->getValue('php_postflight_install')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_postflight_install', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_postflight_install', 'required', 'false'); + } + } + // Modify the form based on Edit Debug Linenr access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.debug_linenr', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.debug_linenr', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('debug_linenr', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('debug_linenr', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('debug_linenr', 'class', ''); + $form->setFieldAttribute('debug_linenr', 'class', $class.' disabled no-click'); + if (!$form->getValue('debug_linenr')) + { + // Disable fields while saving. + $form->setFieldAttribute('debug_linenr', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('debug_linenr', 'required', 'false'); + } + } + // Modify the form based on Edit Mvc Versiondate access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.mvc_versiondate', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.mvc_versiondate', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('mvc_versiondate', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('mvc_versiondate', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('mvc_versiondate', 'class', ''); + $form->setFieldAttribute('mvc_versiondate', 'class', $class.' disabled no-click'); + if (!$form->getValue('mvc_versiondate')) + { + // Disable fields while saving. + $form->setFieldAttribute('mvc_versiondate', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('mvc_versiondate', 'required', 'false'); + } + } + // Modify the form based on Edit Update Server Ftp access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.update_server_ftp', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.update_server_ftp', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('update_server_ftp', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('update_server_ftp', 'readonly', 'true'); + if (!$form->getValue('update_server_ftp')) + { + // Disable fields while saving. + $form->setFieldAttribute('update_server_ftp', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('update_server_ftp', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Helper Site access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_helper_site', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_helper_site', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_helper_site', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_helper_site', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_helper_site', 'class', ''); + $form->setFieldAttribute('add_php_helper_site', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_helper_site')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_helper_site', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_helper_site', 'required', 'false'); + } + } + // Modify the form based on Edit Php Preflight Install access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.php_preflight_install', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.php_preflight_install', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_preflight_install', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_preflight_install', 'readonly', 'true'); + if (!$form->getValue('php_preflight_install')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_preflight_install', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_preflight_install', 'required', 'false'); + } + } + // Modify the form based on Edit Creatuserhelper access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.creatuserhelper', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.creatuserhelper', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('creatuserhelper', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('creatuserhelper', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('creatuserhelper', 'class', ''); + $form->setFieldAttribute('creatuserhelper', 'class', $class.' disabled no-click'); + if (!$form->getValue('creatuserhelper')) + { + // Disable fields while saving. + $form->setFieldAttribute('creatuserhelper', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('creatuserhelper', 'required', 'false'); + } + } + // Modify the form based on Edit Php Method Uninstall access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.php_method_uninstall', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.php_method_uninstall', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_method_uninstall', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_method_uninstall', 'readonly', 'true'); + if (!$form->getValue('php_method_uninstall')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_method_uninstall', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_method_uninstall', 'required', 'false'); + } + } + // Modify the form based on Edit Css access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.css', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.css', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('css', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('css', 'readonly', 'true'); + if (!$form->getValue('css')) + { + // Disable fields while saving. + $form->setFieldAttribute('css', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('css', 'required', 'false'); + } + } + // Modify the form based on Edit Version Update access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.version_update', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.version_update', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('version_update', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('version_update', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('version_update', 'class', ''); + $form->setFieldAttribute('version_update', 'class', $class.' disabled no-click'); + if (!$form->getValue('version_update')) + { + // Disable fields while saving. + $form->setFieldAttribute('version_update', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('version_update', 'required', 'false'); + } + } + // Modify the form based on Edit Email access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.email', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.email', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('email', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('email', 'readonly', 'true'); + if (!$form->getValue('email')) + { + // Disable fields while saving. + $form->setFieldAttribute('email', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('email', 'required', 'false'); + } + } + // Modify the form based on Edit Buildcomp access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.buildcomp', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.buildcomp', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('buildcomp', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('buildcomp', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('buildcomp', 'class', ''); + $form->setFieldAttribute('buildcomp', 'class', $class.' disabled no-click'); + if (!$form->getValue('buildcomp')) + { + // Disable fields while saving. + $form->setFieldAttribute('buildcomp', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('buildcomp', 'required', 'false'); + } + } + // Modify the form based on Edit Website access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.website', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.website', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('website', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('website', 'readonly', 'true'); + if (!$form->getValue('website')) + { + // Disable fields while saving. + $form->setFieldAttribute('website', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('website', 'required', 'false'); + } + } + // Modify the form based on Edit Export Package Link access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.export_package_link', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.export_package_link', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('export_package_link', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('export_package_link', 'readonly', 'true'); + if (!$form->getValue('export_package_link')) + { + // Disable fields while saving. + $form->setFieldAttribute('export_package_link', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('export_package_link', 'required', 'false'); + } + } // Modify the form based on Edit Add License access controls. if ($id != 0 && (!$user->authorise('joomla_component.edit.add_license', 'com_componentbuilder.joomla_component.' . (int) $id)) || ($id == 0 && !$user->authorise('joomla_component.edit.add_license', 'com_componentbuilder'))) @@ -734,6 +1146,25 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $form->setFieldAttribute('add_license', 'required', 'false'); } } + // Modify the form based on Edit Addfootable access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.addfootable', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.addfootable', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addfootable', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addfootable', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addfootable', 'class', ''); + $form->setFieldAttribute('addfootable', 'class', $class.' disabled no-click'); + if (!$form->getValue('addfootable')) + { + // Disable fields while saving. + $form->setFieldAttribute('addfootable', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addfootable', 'required', 'false'); + } + } // Modify the form based on Edit License Type access controls. if ($id != 0 && (!$user->authorise('joomla_component.edit.license_type', 'com_componentbuilder.joomla_component.' . (int) $id)) || ($id == 0 && !$user->authorise('joomla_component.edit.license_type', 'com_componentbuilder'))) @@ -750,6 +1181,871 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $form->setFieldAttribute('license_type', 'required', 'false'); } } + // Modify the form based on Edit Add Php Helper Both access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_helper_both', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_helper_both', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_helper_both', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_helper_both', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_helper_both', 'class', ''); + $form->setFieldAttribute('add_php_helper_both', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_helper_both')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_helper_both', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_helper_both', 'required', 'false'); + } + } + // Modify the form based on Edit Add Admin Event access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_admin_event', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_admin_event', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_admin_event', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_admin_event', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_admin_event', 'class', ''); + $form->setFieldAttribute('add_admin_event', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_admin_event')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_admin_event', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_admin_event', 'required', 'false'); + } + } + // Modify the form based on Edit Whmcs Key access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.whmcs_key', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.whmcs_key', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('whmcs_key', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('whmcs_key', 'readonly', 'true'); + if (!$form->getValue('whmcs_key')) + { + // Disable fields while saving. + $form->setFieldAttribute('whmcs_key', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('whmcs_key', 'required', 'false'); + } + } + // Modify the form based on Edit Add Site Event access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_site_event', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_site_event', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_site_event', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_site_event', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_site_event', 'class', ''); + $form->setFieldAttribute('add_site_event', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_site_event')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_site_event', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_site_event', 'required', 'false'); + } + } + // Modify the form based on Edit Whmcs Url access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.whmcs_url', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.whmcs_url', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('whmcs_url', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('whmcs_url', 'readonly', 'true'); + if (!$form->getValue('whmcs_url')) + { + // Disable fields while saving. + $form->setFieldAttribute('whmcs_url', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('whmcs_url', 'required', 'false'); + } + } + // Modify the form based on Edit Dashboard Tab access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.dashboard_tab', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.dashboard_tab', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('dashboard_tab', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('dashboard_tab', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('dashboard_tab', 'class', ''); + $form->setFieldAttribute('dashboard_tab', 'class', $class.' disabled no-click'); + if (!$form->getValue('dashboard_tab')) + { + // Disable fields while saving. + $form->setFieldAttribute('dashboard_tab', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('dashboard_tab', 'required', 'false'); + } + } + // Modify the form based on Edit License access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.license', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.license', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('license', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('license', 'readonly', 'true'); + if (!$form->getValue('license')) + { + // Disable fields while saving. + $form->setFieldAttribute('license', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('license', 'required', 'false'); + } + } + // Modify the form based on Edit Php Preflight Update access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.php_preflight_update', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.php_preflight_update', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_preflight_update', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_preflight_update', 'readonly', 'true'); + if (!$form->getValue('php_preflight_update')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_preflight_update', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_preflight_update', 'required', 'false'); + } + } + // Modify the form based on Edit Bom access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.bom', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.bom', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('bom', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('bom', 'readonly', 'true'); + if (!$form->getValue('bom')) + { + // Disable fields while saving. + $form->setFieldAttribute('bom', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('bom', 'required', 'false'); + } + } + // Modify the form based on Edit Php Postflight Update access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.php_postflight_update', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.php_postflight_update', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_postflight_update', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_postflight_update', 'readonly', 'true'); + if (!$form->getValue('php_postflight_update')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_postflight_update', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_postflight_update', 'required', 'false'); + } + } + // Modify the form based on Edit Image access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.image', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.image', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('image', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('image', 'readonly', 'true'); + if (!$form->getValue('image')) + { + // Disable fields while saving. + $form->setFieldAttribute('image', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('image', 'required', 'false'); + } + } + // Modify the form based on Edit Sql access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.sql', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.sql', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('sql', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('sql', 'readonly', 'true'); + if (!$form->getValue('sql')) + { + // Disable fields while saving. + $form->setFieldAttribute('sql', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('sql', 'required', 'false'); + } + } + // Modify the form based on Edit Update Server Target access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.update_server_target', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.update_server_target', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('update_server_target', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('update_server_target', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('update_server_target', 'class', ''); + $form->setFieldAttribute('update_server_target', 'class', $class.' disabled no-click'); + if (!$form->getValue('update_server_target')) + { + // Disable fields while saving. + $form->setFieldAttribute('update_server_target', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('update_server_target', 'required', 'false'); + } + } + // Modify the form based on Edit Add Update Server access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_update_server', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_update_server', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_update_server', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_update_server', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_update_server', 'class', ''); + $form->setFieldAttribute('add_update_server', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_update_server')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_update_server', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_update_server', 'required', 'false'); + } + } + // Modify the form based on Edit Sales Server Ftp access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.sales_server_ftp', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.sales_server_ftp', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('sales_server_ftp', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('sales_server_ftp', 'readonly', 'true'); + if (!$form->getValue('sales_server_ftp')) + { + // Disable fields while saving. + $form->setFieldAttribute('sales_server_ftp', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('sales_server_ftp', 'required', 'false'); + } + } + // Modify the form based on Edit Addadmin Views access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.addadmin_views', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.addadmin_views', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addadmin_views', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addadmin_views', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addadmin_views', 'class', ''); + $form->setFieldAttribute('addadmin_views', 'class', $class.' disabled no-click'); + if (!$form->getValue('addadmin_views')) + { + // Disable fields while saving. + $form->setFieldAttribute('addadmin_views', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addadmin_views', 'required', 'false'); + } + } + // Modify the form based on Edit Name access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.name', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.name', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('name', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('name', 'readonly', 'true'); + if (!$form->getValue('name')) + { + // Disable fields while saving. + $form->setFieldAttribute('name', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('name', 'required', 'false'); + } + } + // Modify the form based on Edit Addcustom Admin Views access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.addcustom_admin_views', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.addcustom_admin_views', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addcustom_admin_views', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addcustom_admin_views', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addcustom_admin_views', 'class', ''); + $form->setFieldAttribute('addcustom_admin_views', 'class', $class.' disabled no-click'); + if (!$form->getValue('addcustom_admin_views')) + { + // Disable fields while saving. + $form->setFieldAttribute('addcustom_admin_views', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addcustom_admin_views', 'required', 'false'); + } + } + // Modify the form based on Edit Export Key access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.export_key', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.export_key', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('export_key', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('export_key', 'readonly', 'true'); + if (!$form->getValue('export_key')) + { + // Disable fields while saving. + $form->setFieldAttribute('export_key', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('export_key', 'required', 'false'); + } + } + // Modify the form based on Edit Addsite Views access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.addsite_views', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.addsite_views', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addsite_views', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addsite_views', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addsite_views', 'class', ''); + $form->setFieldAttribute('addsite_views', 'class', $class.' disabled no-click'); + if (!$form->getValue('addsite_views')) + { + // Disable fields while saving. + $form->setFieldAttribute('addsite_views', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addsite_views', 'required', 'false'); + } + } + // Modify the form based on Edit Export Buy Link access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.export_buy_link', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.export_buy_link', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('export_buy_link', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('export_buy_link', 'readonly', 'true'); + if (!$form->getValue('export_buy_link')) + { + // Disable fields while saving. + $form->setFieldAttribute('export_buy_link', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('export_buy_link', 'required', 'false'); + } + } + // Modify the form based on Edit Adduikit access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.adduikit', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.adduikit', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('adduikit', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('adduikit', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('adduikit', 'class', ''); + $form->setFieldAttribute('adduikit', 'class', $class.' disabled no-click'); + if (!$form->getValue('adduikit')) + { + // Disable fields while saving. + $form->setFieldAttribute('adduikit', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('adduikit', 'required', 'false'); + } + } + // Modify the form based on Edit Add Css access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_css', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_css', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_css', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_css', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_css', 'class', ''); + $form->setFieldAttribute('add_css', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_css')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_css', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_css', 'required', 'false'); + } + } + // Modify the form based on Edit Sql Tweak access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.sql_tweak', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.sql_tweak', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('sql_tweak', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('sql_tweak', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('sql_tweak', 'class', ''); + $form->setFieldAttribute('sql_tweak', 'class', $class.' disabled no-click'); + if (!$form->getValue('sql_tweak')) + { + // Disable fields while saving. + $form->setFieldAttribute('sql_tweak', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('sql_tweak', 'required', 'false'); + } + } + // Modify the form based on Edit Add Email Helper access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_email_helper', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_email_helper', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_email_helper', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_email_helper', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_email_helper', 'class', ''); + $form->setFieldAttribute('add_email_helper', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_email_helper')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_email_helper', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_email_helper', 'required', 'false'); + } + } + // Modify the form based on Edit Php Helper Both access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.php_helper_both', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.php_helper_both', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_helper_both', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_helper_both', 'readonly', 'true'); + if (!$form->getValue('php_helper_both')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_helper_both', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_helper_both', 'required', 'false'); + } + } + // Modify the form based on Edit Php Helper Admin access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.php_helper_admin', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.php_helper_admin', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_helper_admin', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_helper_admin', 'readonly', 'true'); + if (!$form->getValue('php_helper_admin')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_helper_admin', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_helper_admin', 'required', 'false'); + } + } + // Modify the form based on Edit Addcustommenus access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.addcustommenus', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.addcustommenus', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addcustommenus', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addcustommenus', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addcustommenus', 'class', ''); + $form->setFieldAttribute('addcustommenus', 'class', $class.' disabled no-click'); + if (!$form->getValue('addcustommenus')) + { + // Disable fields while saving. + $form->setFieldAttribute('addcustommenus', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addcustommenus', 'required', 'false'); + } + } + // Modify the form based on Edit Php Admin Event access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.php_admin_event', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.php_admin_event', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_admin_event', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_admin_event', 'readonly', 'true'); + if (!$form->getValue('php_admin_event')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_admin_event', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_admin_event', 'required', 'false'); + } + } + // Modify the form based on Edit Php Helper Site access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.php_helper_site', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.php_helper_site', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_helper_site', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_helper_site', 'readonly', 'true'); + if (!$form->getValue('php_helper_site')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_helper_site', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_helper_site', 'required', 'false'); + } + } + // Modify the form based on Edit Php Site Event access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.php_site_event', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.php_site_event', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_site_event', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_site_event', 'readonly', 'true'); + if (!$form->getValue('php_site_event')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_site_event', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_site_event', 'required', 'false'); + } + } + // Modify the form based on Edit Addconfig access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.addconfig', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.addconfig', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addconfig', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addconfig', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addconfig', 'class', ''); + $form->setFieldAttribute('addconfig', 'class', $class.' disabled no-click'); + if (!$form->getValue('addconfig')) + { + // Disable fields while saving. + $form->setFieldAttribute('addconfig', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addconfig', 'required', 'false'); + } + } + // Modify the form based on Edit Php Dashboard Methods access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.php_dashboard_methods', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.php_dashboard_methods', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('php_dashboard_methods', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('php_dashboard_methods', 'readonly', 'true'); + if (!$form->getValue('php_dashboard_methods')) + { + // Disable fields while saving. + $form->setFieldAttribute('php_dashboard_methods', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('php_dashboard_methods', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Preflight Install access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_preflight_install', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_preflight_install', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_preflight_install', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_preflight_install', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_preflight_install', 'class', ''); + $form->setFieldAttribute('add_php_preflight_install', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_preflight_install')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_preflight_install', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_preflight_install', 'required', 'false'); + } + } + // Modify the form based on Edit Addcontributors access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.addcontributors', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.addcontributors', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addcontributors', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addcontributors', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addcontributors', 'class', ''); + $form->setFieldAttribute('addcontributors', 'class', $class.' disabled no-click'); + if (!$form->getValue('addcontributors')) + { + // Disable fields while saving. + $form->setFieldAttribute('addcontributors', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addcontributors', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Preflight Update access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_preflight_update', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_preflight_update', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_preflight_update', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_preflight_update', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_preflight_update', 'class', ''); + $form->setFieldAttribute('add_php_preflight_update', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_preflight_update')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_preflight_update', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_preflight_update', 'required', 'false'); + } + } + // Modify the form based on Edit Emptycontributors access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.emptycontributors', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.emptycontributors', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('emptycontributors', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('emptycontributors', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('emptycontributors', 'class', ''); + $form->setFieldAttribute('emptycontributors', 'class', $class.' disabled no-click'); + if (!$form->getValue('emptycontributors')) + { + // Disable fields while saving. + $form->setFieldAttribute('emptycontributors', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('emptycontributors', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Postflight Install access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_postflight_install', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_postflight_install', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_postflight_install', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_postflight_install', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_postflight_install', 'class', ''); + $form->setFieldAttribute('add_php_postflight_install', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_postflight_install')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_postflight_install', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_postflight_install', 'required', 'false'); + } + } + // Modify the form based on Edit Number access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.number', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.number', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('number', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('number', 'readonly', 'true'); + if (!$form->getValue('number')) + { + // Disable fields while saving. + $form->setFieldAttribute('number', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('number', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Postflight Update access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_postflight_update', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_postflight_update', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_postflight_update', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_postflight_update', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_postflight_update', 'class', ''); + $form->setFieldAttribute('add_php_postflight_update', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_postflight_update')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_postflight_update', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_postflight_update', 'required', 'false'); + } + } + // Modify the form based on Edit Add Php Method Uninstall access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_method_uninstall', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_method_uninstall', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_php_method_uninstall', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_php_method_uninstall', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_php_method_uninstall', 'class', ''); + $form->setFieldAttribute('add_php_method_uninstall', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_php_method_uninstall')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_php_method_uninstall', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_php_method_uninstall', 'required', 'false'); + } + } + // Modify the form based on Edit Add Sql access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_sql', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_sql', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_sql', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_sql', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_sql', 'class', ''); + $form->setFieldAttribute('add_sql', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_sql')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_sql', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_sql', 'required', 'false'); + } + } + // Modify the form based on Edit Addfiles access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.addfiles', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.addfiles', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addfiles', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addfiles', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addfiles', 'class', ''); + $form->setFieldAttribute('addfiles', 'class', $class.' disabled no-click'); + if (!$form->getValue('addfiles')) + { + // Disable fields while saving. + $form->setFieldAttribute('addfiles', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addfiles', 'required', 'false'); + } + } + // Modify the form based on Edit Addreadme access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.addreadme', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.addreadme', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addreadme', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addreadme', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addreadme', 'class', ''); + $form->setFieldAttribute('addreadme', 'class', $class.' disabled no-click'); + if (!$form->getValue('addreadme')) + { + // Disable fields while saving. + $form->setFieldAttribute('addreadme', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addreadme', 'required', 'false'); + } + } + // Modify the form based on Edit Update Server access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.update_server', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.update_server', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('update_server', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('update_server', 'readonly', 'true'); + if (!$form->getValue('update_server')) + { + // Disable fields while saving. + $form->setFieldAttribute('update_server', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('update_server', 'required', 'false'); + } + } + // Modify the form based on Edit Addfolders access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.addfolders', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.addfolders', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('addfolders', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('addfolders', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('addfolders', 'class', ''); + $form->setFieldAttribute('addfolders', 'class', $class.' disabled no-click'); + if (!$form->getValue('addfolders')) + { + // Disable fields while saving. + $form->setFieldAttribute('addfolders', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('addfolders', 'required', 'false'); + } + } + // Modify the form based on Edit Add Sales Server access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.add_sales_server', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.add_sales_server', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('add_sales_server', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('add_sales_server', 'readonly', 'true'); + // Disable radio button for display. + $class = $form->getFieldAttribute('add_sales_server', 'class', ''); + $form->setFieldAttribute('add_sales_server', 'class', $class.' disabled no-click'); + if (!$form->getValue('add_sales_server')) + { + // Disable fields while saving. + $form->setFieldAttribute('add_sales_server', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('add_sales_server', 'required', 'false'); + } + } + // Modify the form based on Edit Toignore access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.toignore', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.toignore', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('toignore', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('toignore', 'readonly', 'true'); + if (!$form->getValue('toignore')) + { + // Disable fields while saving. + $form->setFieldAttribute('toignore', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('toignore', 'required', 'false'); + } + } + // Modify the form based on Edit Buildcompsql access controls. + if ($id != 0 && (!$user->authorise('joomla_component.edit.buildcompsql', 'com_componentbuilder.joomla_component.' . (int) $id)) + || ($id == 0 && !$user->authorise('joomla_component.edit.buildcompsql', 'com_componentbuilder'))) + { + // Disable fields for display. + $form->setFieldAttribute('buildcompsql', 'disabled', 'true'); + // Disable fields for display. + $form->setFieldAttribute('buildcompsql', 'readonly', 'true'); + if (!$form->getValue('buildcompsql')) + { + // Disable fields while saving. + $form->setFieldAttribute('buildcompsql', 'filter', 'unset'); + // Disable fields while saving. + $form->setFieldAttribute('buildcompsql', 'required', 'false'); + } + } // Only load these values if no id is found if (0 == $id) { @@ -1391,34 +2687,10 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $data['metadata'] = (string) $metadata; } - // Set the php_postflight_update string to base64 string. - if (isset($data['php_postflight_update'])) + // Set the readme string to base64 string. + if (isset($data['readme'])) { - $data['php_postflight_update'] = base64_encode($data['php_postflight_update']); - } - - // Set the php_preflight_update string to base64 string. - if (isset($data['php_preflight_update'])) - { - $data['php_preflight_update'] = base64_encode($data['php_preflight_update']); - } - - // Set the sql string to base64 string. - if (isset($data['sql'])) - { - $data['sql'] = base64_encode($data['sql']); - } - - // Set the css string to base64 string. - if (isset($data['css'])) - { - $data['css'] = base64_encode($data['css']); - } - - // Set the php_preflight_install string to base64 string. - if (isset($data['php_preflight_install'])) - { - $data['php_preflight_install'] = base64_encode($data['php_preflight_install']); + $data['readme'] = base64_encode($data['readme']); } // Set the php_postflight_install string to base64 string. @@ -1427,16 +2699,40 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $data['php_postflight_install'] = base64_encode($data['php_postflight_install']); } + // Set the php_preflight_install string to base64 string. + if (isset($data['php_preflight_install'])) + { + $data['php_preflight_install'] = base64_encode($data['php_preflight_install']); + } + // Set the php_method_uninstall string to base64 string. if (isset($data['php_method_uninstall'])) { $data['php_method_uninstall'] = base64_encode($data['php_method_uninstall']); } - // Set the readme string to base64 string. - if (isset($data['readme'])) + // Set the css string to base64 string. + if (isset($data['css'])) { - $data['readme'] = base64_encode($data['readme']); + $data['css'] = base64_encode($data['css']); + } + + // Set the php_preflight_update string to base64 string. + if (isset($data['php_preflight_update'])) + { + $data['php_preflight_update'] = base64_encode($data['php_preflight_update']); + } + + // Set the php_postflight_update string to base64 string. + if (isset($data['php_postflight_update'])) + { + $data['php_postflight_update'] = base64_encode($data['php_postflight_update']); + } + + // Set the sql string to base64 string. + if (isset($data['sql'])) + { + $data['sql'] = base64_encode($data['sql']); } // Set the php_helper_both string to base64 string. @@ -1481,30 +2777,18 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $data['buildcompsql'] = base64_encode($data['buildcompsql']); } - // Get the basic encription key. + // Get the basic encryption key. $basickey = ComponentbuilderHelper::getCryptKey('basic'); - // Get the encription object + // Get the encryption object $basic = new FOFEncryptAes($basickey, 128); - // Encript data whmcs_key. + // Encrypt data whmcs_key. if (isset($data['whmcs_key']) && $basickey) { $data['whmcs_key'] = $basic->encryptString($data['whmcs_key']); } - // Encript data sales_server_ftp. - if (isset($data['sales_server_ftp']) && $basickey) - { - $data['sales_server_ftp'] = $basic->encryptString($data['sales_server_ftp']); - } - - // Encript data update_server_ftp. - if (isset($data['update_server_ftp']) && $basickey) - { - $data['update_server_ftp'] = $basic->encryptString($data['update_server_ftp']); - } - - // Encript data export_key. + // Encrypt data export_key. if (isset($data['export_key']) && $basickey) { $data['export_key'] = $basic->encryptString($data['export_key']); diff --git a/admin/models/joomla_components.php b/admin/models/joomla_components.php index 87c53f502..479278527 100644 --- a/admin/models/joomla_components.php +++ b/admin/models/joomla_components.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 359 of this MVC - @build 23rd August, 2017 + @version @update number 366 of this MVC + @build 7th September, 2017 @created 6th May, 2015 @package Component Builder @subpackage joomla_components.php @@ -1309,9 +1309,9 @@ class ComponentbuilderModelJoomla_components extends JModelList { $items = $db->loadObjectList(); - // Get the basic encription key. + // Get the basic encryption key. $basickey = ComponentbuilderHelper::getCryptKey('basic'); - // Get the encription object. + // Get the encryption object. $basic = new FOFEncryptAes($basickey, 128); // set values to display correctly. @@ -1319,12 +1319,14 @@ class ComponentbuilderModelJoomla_components extends JModelList { foreach ($items as $nr => &$item) { - // decode php_postflight_update - $item->php_postflight_update = base64_decode($item->php_postflight_update); - // decode php_preflight_update - $item->php_preflight_update = base64_decode($item->php_preflight_update); - // decode sql - $item->sql = base64_decode($item->sql); + // decode readme + $item->readme = base64_decode($item->readme); + // decode php_postflight_install + $item->php_postflight_install = base64_decode($item->php_postflight_install); + // decode php_preflight_install + $item->php_preflight_install = base64_decode($item->php_preflight_install); + // decode php_method_uninstall + $item->php_method_uninstall = base64_decode($item->php_method_uninstall); // decode css $item->css = base64_decode($item->css); if ($basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true))) @@ -1332,24 +1334,12 @@ class ComponentbuilderModelJoomla_components extends JModelList // decrypt whmcs_key $item->whmcs_key = $basic->decryptString($item->whmcs_key); } - // decode php_preflight_install - $item->php_preflight_install = base64_decode($item->php_preflight_install); - // decode php_postflight_install - $item->php_postflight_install = base64_decode($item->php_postflight_install); - // decode php_method_uninstall - $item->php_method_uninstall = base64_decode($item->php_method_uninstall); - // decode readme - $item->readme = base64_decode($item->readme); - if ($basickey && !is_numeric($item->sales_server_ftp) && $item->sales_server_ftp === base64_encode(base64_decode($item->sales_server_ftp, true))) - { - // decrypt sales_server_ftp - $item->sales_server_ftp = $basic->decryptString($item->sales_server_ftp); - } - if ($basickey && !is_numeric($item->update_server_ftp) && $item->update_server_ftp === base64_encode(base64_decode($item->update_server_ftp, true))) - { - // decrypt update_server_ftp - $item->update_server_ftp = $basic->decryptString($item->update_server_ftp); - } + // decode php_preflight_update + $item->php_preflight_update = base64_decode($item->php_preflight_update); + // decode php_postflight_update + $item->php_postflight_update = base64_decode($item->php_postflight_update); + // decode sql + $item->sql = base64_decode($item->sql); if ($basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true))) { // decrypt export_key diff --git a/admin/models/site_view.php b/admin/models/site_view.php index e3b968a48..7a70314f9 100644 --- a/admin/models/site_view.php +++ b/admin/models/site_view.php @@ -185,7 +185,7 @@ class ComponentbuilderModelSite_view extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getVytlinked_components() + public function getVyulinked_components() { // Get the user object. $user = JFactory::getUser(); diff --git a/admin/sql/install.mysql.utf8.sql b/admin/sql/install.mysql.utf8.sql index ded7566a4..29716ef86 100644 --- a/admin/sql/install.mysql.utf8.sql +++ b/admin/sql/install.mysql.utf8.sql @@ -67,13 +67,14 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` ( `php_preflight_update` MEDIUMTEXT NOT NULL, `php_site_event` MEDIUMTEXT NOT NULL, `readme` TEXT NOT NULL, - `sales_server_ftp` TEXT NOT NULL, + `sales_server_ftp` INT(11) NOT NULL DEFAULT 0, `short_description` VARCHAR(255) NOT NULL DEFAULT '', `sql` MEDIUMTEXT NOT NULL, `sql_tweak` TEXT NOT NULL, `system_name` VARCHAR(255) NOT NULL DEFAULT '', + `toignore` TEXT NOT NULL, `update_server` VARCHAR(255) NOT NULL DEFAULT '', - `update_server_ftp` TEXT NOT NULL, + `update_server_ftp` INT(11) NOT NULL DEFAULT 0, `update_server_target` TINYINT(1) NOT NULL DEFAULT 0, `version_update` TEXT NOT NULL, `website` CHAR(255) NOT NULL DEFAULT '', @@ -98,30 +99,30 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` ( KEY `idx_modifiedby` (`modified_by`), KEY `idx_state` (`published`), KEY `idx_name_code` (`name_code`), - KEY `idx_add_update_server` (`add_update_server`), KEY `idx_add_placeholders` (`add_placeholders`), - KEY `idx_add_admin_event` (`add_admin_event`), + KEY `idx_add_php_dashboard_methods` (`add_php_dashboard_methods`), + KEY `idx_add_php_helper_admin` (`add_php_helper_admin`), KEY `idx_debug_linenr` (`debug_linenr`), KEY `idx_mvc_versiondate` (`mvc_versiondate`), - KEY `idx_add_site_event` (`add_site_event`), - KEY `idx_addfootable` (`addfootable`), - KEY `idx_add_php_helper_both` (`add_php_helper_both`), + KEY `idx_add_php_helper_site` (`add_php_helper_site`), KEY `idx_creatuserhelper` (`creatuserhelper`), KEY `idx_add_license` (`add_license`), + KEY `idx_addfootable` (`addfootable`), KEY `idx_license_type` (`license_type`), - KEY `idx_add_php_helper_admin` (`add_php_helper_admin`), - KEY `idx_add_php_helper_site` (`add_php_helper_site`), - KEY `idx_add_php_dashboard_methods` (`add_php_dashboard_methods`), + KEY `idx_add_php_helper_both` (`add_php_helper_both`), + KEY `idx_add_admin_event` (`add_admin_event`), + KEY `idx_add_site_event` (`add_site_event`), KEY `idx_update_server_target` (`update_server_target`), + KEY `idx_add_update_server` (`add_update_server`), KEY `idx_name` (`name`), KEY `idx_adduikit` (`adduikit`), KEY `idx_add_css` (`add_css`), KEY `idx_add_email_helper` (`add_email_helper`), KEY `idx_add_php_preflight_install` (`add_php_preflight_install`), KEY `idx_add_php_preflight_update` (`add_php_preflight_update`), + KEY `idx_emptycontributors` (`emptycontributors`), KEY `idx_add_php_postflight_install` (`add_php_postflight_install`), KEY `idx_add_php_postflight_update` (`add_php_postflight_update`), - KEY `idx_emptycontributors` (`emptycontributors`), KEY `idx_add_php_method_uninstall` (`add_php_method_uninstall`), KEY `idx_add_sql` (`add_sql`), KEY `idx_addreadme` (`addreadme`), @@ -148,6 +149,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` ( `add_php_batchmove` TINYINT(1) NOT NULL DEFAULT 0, `add_php_before_delete` TINYINT(1) NOT NULL DEFAULT 0, `add_php_before_publish` TINYINT(1) NOT NULL DEFAULT 0, + `add_php_before_save` TINYINT(1) NOT NULL DEFAULT 0, `add_php_document` TINYINT(1) NOT NULL DEFAULT 0, `add_php_getitem` TINYINT(1) NOT NULL DEFAULT 0, `add_php_getitems` TINYINT(1) NOT NULL DEFAULT 0, @@ -186,6 +188,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` ( `php_batchmove` MEDIUMTEXT NOT NULL, `php_before_delete` MEDIUMTEXT NOT NULL, `php_before_publish` MEDIUMTEXT NOT NULL, + `php_before_save` MEDIUMTEXT NOT NULL, `php_controller` MEDIUMTEXT NOT NULL, `php_controller_list` MEDIUMTEXT NOT NULL, `php_document` MEDIUMTEXT NOT NULL, @@ -227,33 +230,34 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` ( KEY `idx_state` (`published`), KEY `idx_name_single` (`name_single`), KEY `idx_name_list` (`name_list`), + KEY `idx_type` (`type`), KEY `idx_add_fadein` (`add_fadein`), KEY `idx_source` (`source`), - KEY `idx_type` (`type`), KEY `idx_add_css_view` (`add_css_view`), - KEY `idx_add_php_getitem` (`add_php_getitem`), KEY `idx_add_php_getitems` (`add_php_getitems`), KEY `idx_add_css_views` (`add_css_views`), KEY `idx_add_php_getitems_after_all` (`add_php_getitems_after_all`), KEY `idx_add_php_getlistquery` (`add_php_getlistquery`), KEY `idx_add_javascript_view_file` (`add_javascript_view_file`), + KEY `idx_add_php_before_save` (`add_php_before_save`), KEY `idx_add_php_save` (`add_php_save`), - KEY `idx_add_php_postsavehook` (`add_php_postsavehook`), KEY `idx_add_javascript_view_footer` (`add_javascript_view_footer`), + KEY `idx_add_php_postsavehook` (`add_php_postsavehook`), KEY `idx_add_php_allowedit` (`add_php_allowedit`), - KEY `idx_add_php_batchcopy` (`add_php_batchcopy`), KEY `idx_add_javascript_views_file` (`add_javascript_views_file`), + KEY `idx_add_php_batchcopy` (`add_php_batchcopy`), KEY `idx_add_php_batchmove` (`add_php_batchmove`), - KEY `idx_add_php_before_publish` (`add_php_before_publish`), KEY `idx_add_javascript_views_footer` (`add_javascript_views_footer`), + KEY `idx_add_php_before_publish` (`add_php_before_publish`), KEY `idx_add_php_after_publish` (`add_php_after_publish`), - KEY `idx_add_php_before_delete` (`add_php_before_delete`), KEY `idx_add_custom_button` (`add_custom_button`), + KEY `idx_add_php_before_delete` (`add_php_before_delete`), KEY `idx_add_php_after_delete` (`add_php_after_delete`), KEY `idx_add_php_document` (`add_php_document`), KEY `idx_add_sql` (`add_sql`), + KEY `idx_add_php_ajax` (`add_php_ajax`), KEY `idx_add_custom_import` (`add_custom_import`), - KEY `idx_add_php_ajax` (`add_php_ajax`) + KEY `idx_add_php_getitem` (`add_php_getitem`) ) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_admin_view` ( @@ -737,6 +741,32 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_language` ( KEY `idx_name` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; +CREATE TABLE IF NOT EXISTS `#__componentbuilder_ftp` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', + `name` VARCHAR(255) NOT NULL DEFAULT '', + `signature` TEXT NOT NULL, + `params` text NOT NULL DEFAULT '', + `published` TINYINT(3) NOT NULL DEFAULT 1, + `created_by` INT(10) unsigned NOT NULL DEFAULT 0, + `modified_by` INT(10) unsigned NOT NULL DEFAULT 0, + `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `checked_out` int(11) unsigned NOT NULL DEFAULT 0, + `checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `version` INT(10) unsigned NOT NULL DEFAULT 1, + `hits` INT(10) unsigned NOT NULL DEFAULT 0, + `access` INT(10) unsigned NOT NULL DEFAULT 0, + `ordering` INT(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_createdby` (`created_by`), + KEY `idx_modifiedby` (`modified_by`), + KEY `idx_state` (`published`), + KEY `idx_name` (`name`) +) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; + CREATE TABLE IF NOT EXISTS `#__componentbuilder_help_document` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', @@ -781,7 +811,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_help_document` ( -- INSERT INTO `#__componentbuilder_joomla_component` (`id`, `add_license`, `license_type`, `mvc_versiondate`, `add_css`, `add_email_helper`, `add_php_helper_admin`, `add_php_helper_both`, `add_php_helper_site`, `add_php_postflight_install`, `add_php_method_uninstall`, `add_php_postflight_update`, `add_php_preflight_install`, `add_php_preflight_update`, `add_placeholders`, `add_sql`, `addadmin_views`, `addconfig`, `addcontributors`, `addcustom_admin_views`, `addcustommenus`, `addfiles`, `addfolders`, `addfootable`, `adduikit`, `addsite_views`, `add_admin_event`, `add_site_event`, `add_update_server`, `add_sales_server`, `add_php_dashboard_methods`, `php_dashboard_methods`, `dashboard_tab`, `sales_server_ftp`, `update_server_ftp`, `update_server_target`, `php_admin_event`, `php_site_event`, `addreadme`, `readme`, `author`, `bom`, `buildcomp`, `buildcompsql`, `companyname`, `component_version`, `update_server`, `copyright`, `creatuserhelper`, `css`, `debug_linenr`, `description`, `email`, `emptycontributors`, `image`, `license`, `name`, `system_name`, `name_code`, `not_required`, `number`, `php_helper_admin`, `php_helper_both`, `php_helper_site`, `php_postflight_install`, `php_method_uninstall`, `php_postflight_update`, `php_preflight_install`, `php_preflight_update`, `short_description`, `sql`, `sql_tweak`, `website`, `version_update`, `params`, `published`, `created`, `modified`, `checked_out`, `checked_out_time`, `version`, `hits`, `ordering`, `whmcs_key`, `whmcs_url`) VALUES -(25, '', 1, '', '', '', '', '', 1, 1, '', '', '', '', '', '', '{\"adminview\":[\"109\"],\"icomoon\":[\"eye-open\"],\"mainmenu\":[\"1\"],\"dashboard_add\":[\"1\"],\"dashboard_list\":[\"1\"],\"submenu\":[\"1\"],\"checkin\":[\"1\"],\"history\":[\"1\"],\"metadata\":[\"1\"],\"access\":[\"1\"],\"port\":[\"1\"],\"edit_create_site_view\":[\"1\"],\"order\":[\"1\"]}', '', '', '', '', '', '', '', 1, '{\"siteview\":[\"23\",\"25\"],\"menu\":[\"1\",\"0\"],\"metadata\":[\"1\",\"1\"],\"default_view\":[\"1\",\"0\"],\"access\":[\"1\",\"1\"]}', '', '', 1, '', '', '', '', 'iWjrDRxpkkOOIDKS53sX9B7pdOcV4NJ5mUmu33vHMXXvntUOFtA40smRxxO1gQmI9Z2N46zuIZzGvj+6bp7pKyyyxltWwPtQIiBPI/qZImppwnuvhYI59fsCri/OmHZyjHeMevdXVM7EJt/Edqoz+YznaqONp5W+BLAHDe5uJRWzXMRhJQLTsr6faqHWLYmW', '4rWCM9h+gyiLubzrf+ul+P/42v4CaZL4dUIdIYqKTiwjSdNDcP3iDJe10zYXviw6x8lSYpMjtn+dvtas3JaIuDQmLm+fdLlCCMIYIQhyKVnW+hskSNCgVoDKgKOWTzJet9yQcuqZnt0bb9aS3xRsYN+5AR35skzY2hfmdFGtm7o1jVzyJ/pMoPyAv+yEaOUC', 2, '', '', 1, 'IyAjIyNDb21wb25lbnRfbmFtZSMjIyAoIyMjVkVSU0lPTiMjIykNCg0KIVsjIyNDb21wb25lbnRfbmFtZSMjIyBpbWFnZV0oaHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL25hbWliaWEvZGVtby1qb29tbGEtMy1jb21wb25lbnQvbWFzdGVyL2FkbWluL2Fzc2V0cy9pbWFnZXMvdmRtLWNvbXBvbmVudC5qcGcgIlRoZSAjIyNDb21wb25lbnRfbmFtZSMjIyIpDQoNCiMjI0RFU0NSSVBUSU9OIyMjDQoNCiMgQnVpbGQgRGV0YWlscw0KDQorICpDb21wYW55KjogWyMjI0NPTVBBTllOQU1FIyMjXSgjIyNBVVRIT1JXRUJTSVRFIyMjKQ0KKyAqQXV0aG9yKjogWyMjI0FVVEhPUiMjI10obWFpbHRvOiMjI0FVVEhPUkVNQUlMIyMjKQ0KKyAqTmFtZSo6IFsjIyNDb21wb25lbnRfbmFtZSMjI10oIyMjQVVUSE9SV0VCU0lURSMjIykNCisgKkZpcnN0IEJ1aWxkKjogIyMjQ1JFQVRJT05EQVRFIyMjDQorICpMYXN0IEJ1aWxkKjogIyMjQlVJTEREQVRFIyMjDQorICpWZXJzaW9uKjogIyMjVkVSU0lPTiMjIw0KKyAqQ29weXJpZ2h0KjogIyMjQ09QWVJJR0hUIyMjDQorICpMaWNlbnNlKjogIyMjTElDRU5TRSMjIw0KDQojIyBCdWlsZCBUaW1lDQoNCioqIyMjdG90YWxIb3VycyMjIyBIb3VycyoqIG9yICoqIyMjdG90YWxEYXlzIyMjIEVpZ2h0IEhvdXIgRGF5cyoqIChhY3R1YWwgdGltZSB0aGUgYXV0aG9yIHNhdmVkIC0NCmR1ZSB0byBbQXV0b21hdGVkIENvbXBvbmVudCBCdWlsZGVyXShodHRwczovL3d3dy52ZG0uaW8vam9vbWxhLWNvbXBvbmVudC1idWlsZGVyKSkNCg0KPiAoaWYgY3JlYXRpbmcgYSBmb2xkZXIgYW5kIGZpbGUgdG9vayAqKjUgc2Vjb25kcyoqIGFuZCB3cml0aW5nIG9uZSBsaW5lIG9mIGNvZGUgdG9vayAqKjEwIHNlY29uZHMqKiwNCj4gbmV2ZXIgbWFraW5nIG9uZSBtaXN0YWtlIG9yIHRha2luZyBhbnkgY29mZmVlIGJyZWFrLikNCg0KKyAqTGluZSBjb3VudCo6ICoqIyMjTElORV9DT1VOVCMjIyoqDQorICpGaWxlIGNvdW50KjogKiojIyNGSUxFX0NPVU5UIyMjKioNCisgKkZvbGRlciBjb3VudCo6ICoqIyMjRk9MREVSX0NPVU5UIyMjKioNCg0KKiojIyNhY3R1YWxIb3Vyc1NwZW50IyMjIEhvdXJzKiogb3IgKiojIyNhY3R1YWxEYXlzU3BlbnQjIyMgRWlnaHQgSG91ciBEYXlzKiogKHRoZSBhY3R1YWwgdGltZSB0aGUgYXV0aG9yIHNwZW50KQ0KDQo+ICh3aXRoIHRoZSBmb2xsb3dpbmcgYnJlYWsgZG93bjoNCj4gKipkZWJ1Z2dpbmcgQCMjI2RlYnVnZ2luZ0hvdXJzIyMjaG91cnMqKiA9IGNvZGluZ3RpbWUgLyA0Ow0KPiAqKnBsYW5uaW5nIEAjIyNwbGFubmluZ0hvdXJzIyMjaG91cnMqKiA9IGNvZGluZ3RpbWUgLyA3Ow0KPiAqKm1hcHBpbmcgQCMjI21hcHBpbmdIb3VycyMjI2hvdXJzKiogPSBjb2Rpbmd0aW1lIC8gMTA7DQo+ICoqb2ZmaWNlIEAjIyNvZmZpY2VIb3VycyMjI2hvdXJzKiogPSBjb2Rpbmd0aW1lIC8gNjspDQoNCioqIyMjYWN0dWFsVG90YWxIb3VycyMjIyBIb3VycyoqIG9yICoqIyMjYWN0dWFsVG90YWxEYXlzIyMjIEVpZ2h0IEhvdXIgRGF5cyoqDQooYSB0b3RhbCBvZiB0aGUgcmVhbGlzdGljIHRpbWUgZnJhbWUgZm9yIHRoaXMgcHJvamVjdCkNCg0KPiAoaWYgY3JlYXRpbmcgYSBmb2xkZXIgYW5kIGZpbGUgdG9vayAqKjUgc2Vjb25kcyoqIGFuZCB3cml0aW5nIG9uZSBsaW5lIG9mIGNvZGUgdG9vayAqKjEwIHNlY29uZHMqKiwNCj4gd2l0aCB0aGUgbm9ybWFsIGV2ZXJ5ZGF5IHJlYWxpdGllcyBhdCB0aGUgb2ZmaWNlLCB0aGF0IGluY2x1ZGVzIHRoZSBjb21wb25lbnQgcGxhbm5pbmcsIG1hcHBpbmcgJiBkZWJ1Z2dpbmcuKQ0KDQpQcm9qZWN0IGR1cmF0aW9uOiAqKiMjI3Byb2plY3RXZWVrVGltZSMjIyB3ZWVrcyoqIG9yICoqIyMjcHJvamVjdE1vbnRoVGltZSMjIyBtb250aHMqKg0KDQo+IFRoaXMgKipjb21wb25lbnQqKiB3YXMgYnVpbGQgd2l0aCBhIEpvb21sYSBbQXV0b21hdGVkIENvbXBvbmVudCBCdWlsZGVyXShodHRwczovL3d3dy52ZG0uaW8vam9vbWxhLWNvbXBvbmVudC1idWlsZGVyKS4NCj4gRGV2ZWxvcGVkIGJ5IFtMbGV3ZWxseW4gdmFuIGRlciBNZXJ3ZV0obWFpbHRvOmpvb21sYUB2ZG0uaW8pDQoNCiMjIERvbmF0aW9ucw0KDQpJZiB5b3Ugd2FudCB0byBzdXBwb3J0IHRoaXMgcHJvamVjdCwgcGxlYXNlIGNvbnNpZGVyIGRvbmF0aW5nOg0KKiBQYXlQYWw6IFtwYXlwYWwubWUvcGF5dmRtXShodHRwczovL3d3dy5wYXlwYWwubWUvcGF5dmRtKQ0KKiBCaXRjb2luOiAxRkx4aVQ2d3l4Z1ozYm9ldmlMa1lKMURScHA0MXV6cHhhDQoqIEV0aGVyZXVtOiAweDI0MzM5MmRhYTNjOWM4YmM4NDFmY2FjZjdjN2Y3MjU0MWNiMTY4MjMg', 'Llewellyn van der Merwe', 'default.txt', '', '', 'Vast Development Method', '2.0.0', 'https://www.vdm.io/updates/demo_update_server.xml', 'Copyright (C) 2015. All Rights Reserved', '', '', '', 'Just a basic demo of the most basic implementations of the [Joomla](http://www.joomla.org) Component Builder\'s ability.', 'info@vdm.io', '', 'images/vdm/demo500.jpg', 'GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html', 'Demo', 'Demo', 'demo', '', 4, '', '', 'CS8qKg0KCSAqCUNoYW5nZSB0byBuaWNlIGZhbmN5IGRhdGUNCgkgKi8NCglwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIGZhbmN5RGF0ZSgkZGF0ZSkNCgl7DQoJCWlmICghc2VsZjo6aXNWYWxpZFRpbWVTdGFtcCgkZGF0ZSkpDQoJCXsNCgkJCSRkYXRlID0gc3RydG90aW1lKCRkYXRlKTsNCgkJfQ0KCQlyZXR1cm4gZGF0ZSgnalMgXG9cZiBGIFknLCRkYXRlKTsNCgl9DQoNCgkvKioNCgkgKglDaGFuZ2UgdG8gbmljZSBmYW5jeSB0aW1lIGFuZCBkYXRlDQoJICovDQoJcHVibGljIHN0YXRpYyBmdW5jdGlvbiBmYW5jeURhdGVUaW1lKCR0aW1lKQ0KCXsNCgkJaWYgKCFzZWxmOjppc1ZhbGlkVGltZVN0YW1wKCR0aW1lKSkNCgkJew0KCQkJJHRpbWUgPSBzdHJ0b3RpbWUoJHRpbWUpOw0KCQl9DQoJCXJldHVybiBkYXRlKCcoRzppKSBqUyBcb1xmIEYgWScsJHRpbWUpOw0KCX0NCg0KCS8qKg0KCSAqCUNoYW5nZSB0byBuaWNlIGhvdXI6bWludXRlcyB0aW1lDQoJICovDQoJcHVibGljIHN0YXRpYyBmdW5jdGlvbiBmYW5jeVRpbWUoJHRpbWUpDQoJew0KCQlpZiAoIXNlbGY6OmlzVmFsaWRUaW1lU3RhbXAoJHRpbWUpKQ0KCQl7DQoJCQkkdGltZSA9IHN0cnRvdGltZSgkdGltZSk7DQoJCX0NCgkJcmV0dXJuIGRhdGUoJ0c6aScsJHRpbWUpOw0KCX0NCg0KCS8qKg0KCSAqCUNoZWNrIGlmIHN0cmluZyBpcyBhIHZhbGlkIHRpbWUgc3RhbXANCgkgKi8NCglwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIGlzVmFsaWRUaW1lU3RhbXAoJHRpbWVzdGFtcCkNCgl7DQoJCXJldHVybiAoKGludCkgJHRpbWVzdGFtcCA9PT0gJHRpbWVzdGFtcCkNCgkJJiYgKCR0aW1lc3RhbXAgPD0gUEhQX0lOVF9NQVgpDQoJCSYmICgkdGltZXN0YW1wID49IH5QSFBfSU5UX01BWCk7DQoJfQ0K', 'CQkvLyBHZXQgQXBwbGljYXRpb24gb2JqZWN0DQoJCSRhcHAgPSBKRmFjdG9yeTo6Z2V0QXBwbGljYXRpb24oKTsNCgkJJGFwcC0+ZW5xdWV1ZU1lc3NhZ2UoJ0ZpcnN0IHNldCB0aGUgY29tcG9uZW50cyBnbG9iYWwgc2V0dGluZ3MgYW5kIHBlcm1pc3Npb25zIGluIHRoZSA8Yj5PcHRpb25zPC9iPiBhcmVhLCBvciB0aGUgZnJvbnQtZW5kIG9mIHRoZSBjb21wb25lbnQgd2lsbCBub3Qgd29yayBhcyBleHBlY3RlZC4gPGJyIC8+UGxlYXNlIG5vdGUgdGhhdCBlYWNoIHZpZXcgb24gdGhlIGZyb250LWVuZCBoYXMgYWNjZXNzIGFuZCBwZXJtaXNzaW9ucywgc28gaWYgeW91IHdvdWxkIGxpa2UgdGhlIHB1YmxpYyB0byBhY2Nlc3MgdGhvc2Ugdmlld3MgdGhleSBtdXN0IGJlIGdpdmVuIHRoZSBhY2Nlc3MgYW5kIHBlcm1pc3Npb24uJywgJ0luZm8nKTs=', '', '', '', '', 'Demo Component', '', '', 'https://www.vdm.io/', '{\"version\":[\"1.0.5\",\"2.0.0\"],\"mysql\":[\"\",\"\"],\"url\":[\"https://github.com/namibia/demo-joomla-3-component/archive/v1.0.5.zip\",\"https://github.com/namibia/demo-joomla-3-component/archive/v2.0.0.zip\"]}', '', 1, '2016-10-18 11:44:09', '2017-08-21 12:21:14', '', '0000-00-00 00:00:00', 28, '', 3, 'tdfzIrDwJ1n5TjAZEOjo5rsZq242Z93W6XJoOQQzVC0=', ''); +(25, '', 1, '', '', '', '', '', 1, 1, '', '', '', '', '', '', '{\"adminview\":[\"109\"],\"icomoon\":[\"eye-open\"],\"mainmenu\":[\"1\"],\"dashboard_add\":[\"1\"],\"dashboard_list\":[\"1\"],\"submenu\":[\"1\"],\"checkin\":[\"1\"],\"history\":[\"1\"],\"metadata\":[\"1\"],\"access\":[\"1\"],\"port\":[\"1\"],\"edit_create_site_view\":[\"1\"],\"order\":[\"1\"]}', '', '', '', '', '', '', '', 1, '{\"siteview\":[\"23\",\"25\"],\"menu\":[\"1\",\"0\"],\"metadata\":[\"1\",\"1\"],\"default_view\":[\"1\",\"0\"],\"access\":[\"1\",\"1\"],\"public\":[\"1\",\"1\"]}', '', '', 1, '', '', '', '', '', '', 2, '', '', 1, 'IyAjIyNDb21wb25lbnRfbmFtZSMjIyAoIyMjVkVSU0lPTiMjIykNCg0KIVsjIyNDb21wb25lbnRfbmFtZSMjIyBpbWFnZV0oaHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL25hbWliaWEvZGVtby1qb29tbGEtMy1jb21wb25lbnQvbWFzdGVyL2FkbWluL2Fzc2V0cy9pbWFnZXMvdmRtLWNvbXBvbmVudC5qcGcgIlRoZSAjIyNDb21wb25lbnRfbmFtZSMjIyIpDQoNCiMjI0RFU0NSSVBUSU9OIyMjDQoNCiMgQnVpbGQgRGV0YWlscw0KDQorICpDb21wYW55KjogWyMjI0NPTVBBTllOQU1FIyMjXSgjIyNBVVRIT1JXRUJTSVRFIyMjKQ0KKyAqQXV0aG9yKjogWyMjI0FVVEhPUiMjI10obWFpbHRvOiMjI0FVVEhPUkVNQUlMIyMjKQ0KKyAqTmFtZSo6IFsjIyNDb21wb25lbnRfbmFtZSMjI10oIyMjQVVUSE9SV0VCU0lURSMjIykNCisgKkZpcnN0IEJ1aWxkKjogIyMjQ1JFQVRJT05EQVRFIyMjDQorICpMYXN0IEJ1aWxkKjogIyMjQlVJTEREQVRFIyMjDQorICpWZXJzaW9uKjogIyMjVkVSU0lPTiMjIw0KKyAqQ29weXJpZ2h0KjogIyMjQ09QWVJJR0hUIyMjDQorICpMaWNlbnNlKjogIyMjTElDRU5TRSMjIw0KDQojIyBCdWlsZCBUaW1lDQoNCioqIyMjdG90YWxIb3VycyMjIyBIb3VycyoqIG9yICoqIyMjdG90YWxEYXlzIyMjIEVpZ2h0IEhvdXIgRGF5cyoqIChhY3R1YWwgdGltZSB0aGUgYXV0aG9yIHNhdmVkIC0NCmR1ZSB0byBbQXV0b21hdGVkIENvbXBvbmVudCBCdWlsZGVyXShodHRwczovL3d3dy52ZG0uaW8vam9vbWxhLWNvbXBvbmVudC1idWlsZGVyKSkNCg0KPiAoaWYgY3JlYXRpbmcgYSBmb2xkZXIgYW5kIGZpbGUgdG9vayAqKjUgc2Vjb25kcyoqIGFuZCB3cml0aW5nIG9uZSBsaW5lIG9mIGNvZGUgdG9vayAqKjEwIHNlY29uZHMqKiwNCj4gbmV2ZXIgbWFraW5nIG9uZSBtaXN0YWtlIG9yIHRha2luZyBhbnkgY29mZmVlIGJyZWFrLikNCg0KKyAqTGluZSBjb3VudCo6ICoqIyMjTElORV9DT1VOVCMjIyoqDQorICpGaWxlIGNvdW50KjogKiojIyNGSUxFX0NPVU5UIyMjKioNCisgKkZvbGRlciBjb3VudCo6ICoqIyMjRk9MREVSX0NPVU5UIyMjKioNCg0KKiojIyNhY3R1YWxIb3Vyc1NwZW50IyMjIEhvdXJzKiogb3IgKiojIyNhY3R1YWxEYXlzU3BlbnQjIyMgRWlnaHQgSG91ciBEYXlzKiogKHRoZSBhY3R1YWwgdGltZSB0aGUgYXV0aG9yIHNwZW50KQ0KDQo+ICh3aXRoIHRoZSBmb2xsb3dpbmcgYnJlYWsgZG93bjoNCj4gKipkZWJ1Z2dpbmcgQCMjI2RlYnVnZ2luZ0hvdXJzIyMjaG91cnMqKiA9IGNvZGluZ3RpbWUgLyA0Ow0KPiAqKnBsYW5uaW5nIEAjIyNwbGFubmluZ0hvdXJzIyMjaG91cnMqKiA9IGNvZGluZ3RpbWUgLyA3Ow0KPiAqKm1hcHBpbmcgQCMjI21hcHBpbmdIb3VycyMjI2hvdXJzKiogPSBjb2Rpbmd0aW1lIC8gMTA7DQo+ICoqb2ZmaWNlIEAjIyNvZmZpY2VIb3VycyMjI2hvdXJzKiogPSBjb2Rpbmd0aW1lIC8gNjspDQoNCioqIyMjYWN0dWFsVG90YWxIb3VycyMjIyBIb3VycyoqIG9yICoqIyMjYWN0dWFsVG90YWxEYXlzIyMjIEVpZ2h0IEhvdXIgRGF5cyoqDQooYSB0b3RhbCBvZiB0aGUgcmVhbGlzdGljIHRpbWUgZnJhbWUgZm9yIHRoaXMgcHJvamVjdCkNCg0KPiAoaWYgY3JlYXRpbmcgYSBmb2xkZXIgYW5kIGZpbGUgdG9vayAqKjUgc2Vjb25kcyoqIGFuZCB3cml0aW5nIG9uZSBsaW5lIG9mIGNvZGUgdG9vayAqKjEwIHNlY29uZHMqKiwNCj4gd2l0aCB0aGUgbm9ybWFsIGV2ZXJ5ZGF5IHJlYWxpdGllcyBhdCB0aGUgb2ZmaWNlLCB0aGF0IGluY2x1ZGVzIHRoZSBjb21wb25lbnQgcGxhbm5pbmcsIG1hcHBpbmcgJiBkZWJ1Z2dpbmcuKQ0KDQpQcm9qZWN0IGR1cmF0aW9uOiAqKiMjI3Byb2plY3RXZWVrVGltZSMjIyB3ZWVrcyoqIG9yICoqIyMjcHJvamVjdE1vbnRoVGltZSMjIyBtb250aHMqKg0KDQo+IFRoaXMgKipjb21wb25lbnQqKiB3YXMgYnVpbGQgd2l0aCBhIEpvb21sYSBbQXV0b21hdGVkIENvbXBvbmVudCBCdWlsZGVyXShodHRwczovL3d3dy52ZG0uaW8vam9vbWxhLWNvbXBvbmVudC1idWlsZGVyKS4NCj4gRGV2ZWxvcGVkIGJ5IFtMbGV3ZWxseW4gdmFuIGRlciBNZXJ3ZV0obWFpbHRvOmpvb21sYUB2ZG0uaW8pDQoNCiMjIERvbmF0aW9ucw0KDQpJZiB5b3Ugd2FudCB0byBzdXBwb3J0IHRoaXMgcHJvamVjdCwgcGxlYXNlIGNvbnNpZGVyIGRvbmF0aW5nOg0KKiBQYXlQYWw6IFtwYXlwYWwubWUvcGF5dmRtXShodHRwczovL3d3dy5wYXlwYWwubWUvcGF5dmRtKQ0KKiBCaXRjb2luOiAxRkx4aVQ2d3l4Z1ozYm9ldmlMa1lKMURScHA0MXV6cHhhDQoqIEV0aGVyZXVtOiAweDI0MzM5MmRhYTNjOWM4YmM4NDFmY2FjZjdjN2Y3MjU0MWNiMTY4MjMg', 'Llewellyn van der Merwe', 'default.txt', '', '', 'Vast Development Method', '2.0.0', 'https://www.vdm.io/updates/demo_update_server.xml', 'Copyright (C) 2015. All Rights Reserved', '', '', '', 'Just a basic demo of the most basic implementations of the [Joomla](http://www.joomla.org) Component Builder\'s ability.', 'info@vdm.io', '', 'images/vdm/demo500.jpg', 'GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html', 'Demo', 'Demo', 'demo', '', 4, '', '', 'CS8qKg0KCSAqCUNoYW5nZSB0byBuaWNlIGZhbmN5IGRhdGUNCgkgKi8NCglwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIGZhbmN5RGF0ZSgkZGF0ZSkNCgl7DQoJCWlmICghc2VsZjo6aXNWYWxpZFRpbWVTdGFtcCgkZGF0ZSkpDQoJCXsNCgkJCSRkYXRlID0gc3RydG90aW1lKCRkYXRlKTsNCgkJfQ0KCQlyZXR1cm4gZGF0ZSgnalMgXG9cZiBGIFknLCRkYXRlKTsNCgl9DQoNCgkvKioNCgkgKglDaGFuZ2UgdG8gbmljZSBmYW5jeSB0aW1lIGFuZCBkYXRlDQoJICovDQoJcHVibGljIHN0YXRpYyBmdW5jdGlvbiBmYW5jeURhdGVUaW1lKCR0aW1lKQ0KCXsNCgkJaWYgKCFzZWxmOjppc1ZhbGlkVGltZVN0YW1wKCR0aW1lKSkNCgkJew0KCQkJJHRpbWUgPSBzdHJ0b3RpbWUoJHRpbWUpOw0KCQl9DQoJCXJldHVybiBkYXRlKCcoRzppKSBqUyBcb1xmIEYgWScsJHRpbWUpOw0KCX0NCg0KCS8qKg0KCSAqCUNoYW5nZSB0byBuaWNlIGhvdXI6bWludXRlcyB0aW1lDQoJICovDQoJcHVibGljIHN0YXRpYyBmdW5jdGlvbiBmYW5jeVRpbWUoJHRpbWUpDQoJew0KCQlpZiAoIXNlbGY6OmlzVmFsaWRUaW1lU3RhbXAoJHRpbWUpKQ0KCQl7DQoJCQkkdGltZSA9IHN0cnRvdGltZSgkdGltZSk7DQoJCX0NCgkJcmV0dXJuIGRhdGUoJ0c6aScsJHRpbWUpOw0KCX0NCg0KCS8qKg0KCSAqCUNoZWNrIGlmIHN0cmluZyBpcyBhIHZhbGlkIHRpbWUgc3RhbXANCgkgKi8NCglwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIGlzVmFsaWRUaW1lU3RhbXAoJHRpbWVzdGFtcCkNCgl7DQoJCXJldHVybiAoKGludCkgJHRpbWVzdGFtcCA9PT0gJHRpbWVzdGFtcCkNCgkJJiYgKCR0aW1lc3RhbXAgPD0gUEhQX0lOVF9NQVgpDQoJCSYmICgkdGltZXN0YW1wID49IH5QSFBfSU5UX01BWCk7DQoJfQ0K', 'CQkvLyBHZXQgQXBwbGljYXRpb24gb2JqZWN0DQoJCSRhcHAgPSBKRmFjdG9yeTo6Z2V0QXBwbGljYXRpb24oKTsNCgkJJGFwcC0+ZW5xdWV1ZU1lc3NhZ2UoJ1RoaXMgaXMgYSBkZW1vIGNvbXBvbmVudCBkZXZlbG9wZWQgaW4gPGEgaHJlZj0iaHR0cDovL3ZkbS5iei9jb21wb25lbnQtYnVpbGRlciIgdGFnZXQ9Il9iYWxuayIgdGl0bGU9Ikpvb21sYSBDb21wb25lbnQgQnVpbGRlciI+SkNCPC9hPiEgWW91IGNhbiBidWlsZCBtb3JlIGNvbXBvbmVudHMgbGlrZSB0aGlzIHdpdGggSkNCLCBjaGVja291dCBvdXIgcGFnZSBvbiA8YSBocmVmPSJodHRwczovL2dpdGh1Yi5jb20vdmRtLWlvL0pvb21sYS1Db21wb25lbnQtQnVpbGRlciIgdGFnZXQ9Il9iYWxuayIgdGl0bGU9Ikpvb21sYSBDb21wb25lbnQgQnVpbGRlciI+Z2l0aHViPC9hPiBmb3IgbW9yZSBpbmZvLiBUaGUgZnV0dXJlIG9mIDxhIGhyZWY9Imh0dHA6Ly92ZG0uYnovY29tcG9uZW50LWJ1aWxkZXIiIHRhZ2V0PSJfYmFsbmsiIHRpdGxlPSJKb29tbGEgQ29tcG9uZW50IEJ1aWxkZXIiPkpvb21sYSBDb21wb25lbnQgRGV2ZWxvcG1lbnQ8L2E+IGlzIEhlcmUhJywgJ0luZm8nKTs=', '', '', '', '', 'Demo Component', '', '', 'https://www.vdm.io/', '{\"version\":[\"1.0.5\",\"2.0.0\"],\"mysql\":[\"\",\"\"],\"url\":[\"https://github.com/namibia/demo-joomla-3-component/archive/v1.0.5.zip\",\"https://github.com/namibia/demo-joomla-3-component/archive/v2.0.0.zip\"]}', '', 1, '2016-10-18 11:44:09', '2017-08-25 00:36:01', '', '0000-00-00 00:00:00', 30, '', 3, 'V6inNhoApqD2JvhSrOd+R/OzoW8mTod30wXoypEZacY=', ''); -- -- Dumping data for table `#__componentbuilder_admin_view` @@ -819,7 +849,7 @@ INSERT INTO `#__componentbuilder_dynamic_get` (`id`, `add_php_after_getitem`, `a -- INSERT INTO `#__componentbuilder_snippet` (`id`, `description`, `heading`, `name`, `snippet`, `type`, `url`, `usage`, `params`, `published`, `version`, `hits`, `ordering`) VALUES -(1, 'The grid system of UIkit follows the mobile-first approach and accomodates up to 10 grid columns. It uses units with predefined classes inside each grid, which define the column width. It is also possible to combine the grid with classes from the Flex component, although it works only in modern browsers.', 'Create a fully responsive, fluid and nestable grid layout.', 'Grid', 'PGRpdiBkYXRhLXVrLWdyaWQtbWFyZ2luPSIiIGNsYXNzPSJ0bS1ncmlkLXRydW5jYXRlIHVrLWdyaWQgdWstZ3JpZC1kaXZpZGVyIHVrLXRleHQtY2VudGVyIj4NCiAgICA8ZGl2IGNsYXNzPSJ1ay13aWR0aC1tZWRpdW0tMS0zIj4NCiAgICAJPGRpdiBjbGFzcz0idWstcGFuZWwgdWstcGFuZWwtYm94Ij4NCiAgICAgICAgCXtjb250ZW50fQ0KICAgICAgICA8L2Rpdj4NCiAgICA8L2Rpdj4NCiAgICA8ZGl2IGNsYXNzPSJ1ay13aWR0aC1tZWRpdW0tMS0zIj4NCiAgICAJPGRpdiBjbGFzcz0idWstcGFuZWwgdWstcGFuZWwtYm94Ij4NCiAgICAgICAgCXtjb250ZW50fQ0KICAgICAgICA8L2Rpdj4NCiAgICA8L2Rpdj4NCiAgICA8ZGl2IGNsYXNzPSJ1ay13aWR0aC1tZWRpdW0tMS0zIj4NCiAgICAJPGRpdiBjbGFzcz0idWstcGFuZWwgdWstcGFuZWwtYm94Ij4NCiAgICAgICAgCXtjb250ZW50fQ0KICAgICAgICA8L2Rpdj4NCiAgICA8L2Rpdj4NCjwvZGl2Pg==', 1, 'http://getuikit.com/docs/grid.html', 'To create the grid container, add the .uk-grid class to a parent element. Add one of the .uk-width-* classes to child elements to determine, how the units shall be sized. The grid supports 1, 2, 3, 4, 5, 6 and 10 unit divisions. This table gives you an overview of the uk-width-* classes that can be applied to units.', '', 1, 3, '', 1), +(1, 'The grid system of UIkit follows the mobile-first approach and accomodates up to 10 grid columns. It uses units with predefined classes inside each grid, which define the column width. It is also possible to combine the grid with classes from the Flex component, although it works only in modern browsers.', 'Create a fully responsive, fluid and nestable grid layout.', 'Grid', 'PGRpdiBkYXRhLXVrLWdyaWQtbWFyZ2luPSIiIGNsYXNzPSJ0bS1ncmlkLXRydW5jYXRlIHVrLWdyaWQgdWstZ3JpZC1kaXZpZGVyIHVrLXRleHQtY2VudGVyIj4NCiAgICA8ZGl2IGNsYXNzPSJ1ay13aWR0aC1tZWRpdW0tMS0zIj4NCiAgICAJPGRpdiBjbGFzcz0idWstcGFuZWwgdWstcGFuZWwtYm94Ij4NCiAgICAgICAgCXtjb250ZW50fQ0KICAgICAgICA8L2Rpdj4NCiAgICA8L2Rpdj4NCiAgICA8ZGl2IGNsYXNzPSJ1ay13aWR0aC1tZWRpdW0tMS0zIj4NCiAgICAJPGRpdiBjbGFzcz0idWstcGFuZWwgdWstcGFuZWwtYm94Ij4NCiAgICAgICAgCXtjb250ZW50fQ0KICAgICAgICA8L2Rpdj4NCiAgICA8L2Rpdj4NCiAgICA8ZGl2IGNsYXNzPSJ1ay13aWR0aC1tZWRpdW0tMS0zIj4NCiAgICAJPGRpdiBjbGFzcz0idWstcGFuZWwgdWstcGFuZWwtYm94Ij4NCiAgICAgICAgCXtjb250ZW50fQ0KICAgICAgICA8L2Rpdj4NCiAgICA8L2Rpdj4NCjwvZGl2Pg==', 1, 'http://getuikit.com/docs/grid.html', 'To create the grid container, add the .uk-grid class to a parent element. Add one of the .uk-width-* classes to child elements to determine, how the units shall be sized. The grid supports 1, 2, 3, 4, 5, 6 and 10 unit divisions. This table gives you an overview of the uk-width-* classes that can be applied to units.', '', 1, 4, '', 1), (2, 'UIkit uses panels to outline certain sections of your content, which can be styled differently. Typically, panels are arranged in grid columns from the Grid component.', 'Create layout boxes with different styles.', 'Panel', 'PGRpdiBkYXRhLXVrLWdyaWQtbWFyZ2luPSIiIGNsYXNzPSJ1ay1ncmlkIj4NCiAgICA8ZGl2IGNsYXNzPSJ1ay13aWR0aC1tZWRpdW0tMS0yIj4NCiAgICAgICAgPGRpdiBjbGFzcz0idWstcGFuZWwgdWstcGFuZWwtYm94Ij4NCiAgICAgICAgICAgIDxoMyBjbGFzcz0idWstcGFuZWwtdGl0bGUiPnt0aXRsZX08L2gzPg0KICAgICAgICAgICAge2NvbnRlbnR9DQogICAgICAgIDwvZGl2Pg0KICAgIDwvZGl2Pg0KICAgIDxkaXYgY2xhc3M9InVrLXdpZHRoLW1lZGl1bS0xLTIiPg0KICAgICAgICA8ZGl2IGNsYXNzPSJ1ay1wYW5lbCB1ay1wYW5lbC1ib3giPg0KICAgICAgICAgICAgPGgzIGNsYXNzPSJ1ay1wYW5lbC10aXRsZSI+e3RpdGxlfTwvaDM+DQogICAgICAgICAgICB7Y29udGVudH0NCiAgICAgICAgPC9kaXY+DQogICAgPC9kaXY+DQo8L2Rpdj4=', 1, 'http://getuikit.com/docs/panel.html', 'The Panel component consists of the panel itself, the panel title and a panel badge. To prevent redundant white space, top and bottom margins are removed from the panel\'s content.', '', 1, 3, '', 1), (3, '', 'Separate content sections by bundling them in blocks with different styles.', 'Block', 'PGRpdiBjbGFzcz0idWstYmxvY2sgdWstYmxvY2stcHJpbWFyeSI+e2NvbnRlbnR9PC9kaXY+', 1, 'http://getuikit.com/docs/block.html', 'To apply this component, just add the .uk-block class to a container element.', '', 1, 2, '', 2), (4, '', 'Create articles within your page.', 'Article', 'PGFydGljbGUgY2xhc3M9InVrLWFydGljbGUiPg0KICAgIDxoMSBjbGFzcz0idWstYXJ0aWNsZS10aXRsZSI+e3RpdGxlfTwvaDE+DQogICAgPHAgY2xhc3M9InVrLWFydGljbGUtbWV0YSI+e21ldGF9PC9wPg0KICAgIDxwIGNsYXNzPSJ1ay1hcnRpY2xlLWxlYWQiPntjb250ZW50fTwvcD4NCiAgICB7Y29udGVudH0NCiAgICA8aHIgY2xhc3M9InVrLWFydGljbGUtZGl2aWRlciI+DQogICAge2NvbnRlbnR9DQo8L2FydGljbGU+', 1, 'http://getuikit.com/docs/article.html', 'The article component consists of the article itself, a title, meta data, an opening paragraph and dividers.', '', 1, 1, '', 3), @@ -956,7 +986,7 @@ INSERT INTO `#__componentbuilder_fieldtype` (`id`, `catid`, `description`, `name (21, '', 'Using this generic form field type forces you to write SQL in an XML file and is rather limited. For more flexibility, consider using Custom FieldType.\r\n\r\nThe sql form field type provides a drop down list of entries obtained by running a query on the Joom', 'SQL', '{\"name\":[\"type\",\"name\",\"label\",\"query\",\"default\",\"required\",\"readonly\",\"disabled\",\"description\",\"key_field\",\"value_field\",\"translate\",\"showon\"],\"example\":[\"sql\",\"title\",\"Select an article\",\"SELECT id, concat( title, \' (\', created, \')\') AS title FROM #__content\",\"10\",\"\",\"\",\"\",\"\",\"id\",\"title\",\"\",\"\"],\"adjustable\":[\"0\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\"],\"mandatory\":[\"1\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"],\"translatable\":[\"0\",\"0\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"1\",\"0\",\"0\",\"0\",\"0\"],\"description\":[\"(mandatory) must be sql.\",\"(mandatory) is the unique name of the field. This must match the name of the query results column that contains the values that will be shown to the user in the drop-down list, unless a different name is specified in the value_field attribute.\",\"(mandatory) (translatable) is the descriptive title of the field.\",\"(mandatory) is the SQL query which will provide the data for the drop-down list. The query must return two columns; one called \'value\' (unless overridden by the key_field attribute) which will hold the values of the list items; the other called the same as the value of the name attribute (unless overridden by the value_field attribute) containing the text to be shown in the drop-down list.\",\"(optional) is the default value. This is the value of the \'value\' field, unless overridden by the key_field attribute.\",\"(optional) The field must be filled before submitting the form.\",\"(optional) The field cannot be changed and will automatically inherit the default value\",\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\",\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\",\"(optional) is the name of the column that will contain values for the parameter. If omitted then the column called \'value\' will be used, if it exists.\",\"(optional) is the name of the column that will contain values to be shown to the user in the drop-down list. If omitted then the column with the same name as the name attribute will be used, if it exists.\",\"(optional) will translate the output of the value_field if set to true. It defaults to false.\",\"(optional) show this field on the bases of the value in another field.\"]}', 'provides a drop down list of entries obtained by running a query on the Joomla Database. The first results column returned by the query provides the values for the drop down box.', '', 1, 2, '', ''), (22, '', 'The Tag field type provides a point where you can enter tags - this is either AJAX or nested.', 'Tag', '{\"name\":[\"type\",\"name\",\"mode\",\"label\",\"description\",\"id\",\"class\",\"published\",\"language\",\"multiple\",\"custom\",\"showon\"],\"example\":[\"tag\",\"tags\",\"ajax\",\"Tags\",\"Assign tags to ###VIEW### items. Tag names must be unique.\",\"\",\"inputbox small\",\"\",\"\",\"true\",\"\",\"\"],\"adjustable\":[\"0\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\"],\"mandatory\":[\"1\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"],\"translatable\":[\"0\",\"0\",\"0\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"],\"description\":[\"(mandatory) must be tag.\",\"(mandatory) is the unique name of the parameter.\",\"(mandatory) is the way the tags will be loaded, the options are ( ajax or nested )\",\"(mandatory) (translatable) is the descriptive title of the field.\",\"(optional) (translatable) is the description of the field.\",\"(optional) is the id to add to the field. Note if none is set this will be the name of the field.\",\"(optional) is the class to add to the field.\",\"(optional) determines if non published tags should be allowed.\",\"(optional) is language to filter the existing tags by.\",\"(optional) is the ability to add more than 1 tag to the form field.\",\"(optional) if the ajax mode is chosen setting this to [deny] will prevent users from adding in new tags.\",\"(optional) show this field on the bases of the value in another field.\"]}', 'provides an entry point for tags (either AJAX or Nested).', '', 1, 2, '', ''), (23, '', 'The tel field type is an alias for a text field. Telephone numbers can be validated using the tel rule and filtered using the tel input filter.', 'Tel', '{\"name\":[\"type\",\"name\",\"label\",\"size\",\"maxlength\",\"default\",\"description\",\"class\",\"readonly\",\"disabled\",\"required\",\"filter\",\"validated\",\"message\",\"hint\",\"showon\",\"onchange\"],\"example\":[\"text\",\"phone\",\"Phone\",\"10\",\"50\",\"\",\"Enter phone number\",\"text_area\",\"false\",\"false\",\"false\",\"tel\",\"tel\",\"Error! Please add phone number here.\",\"Your Phone Number\",\"\",\"\"],\"adjustable\":[\"0\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\"],\"mandatory\":[\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"],\"translatable\":[\"0\",\"0\",\"1\",\"0\",\"0\",\"0\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"1\",\"0\",\"0\"],\"description\":[\"(mandatory) must be text.\",\"(mandatory) is the unique name of the field.\",\"(mandatory) (translatable) is the descriptive title of the field.\",\"(optional) is the width of the text box in characters. If omitted the width is determined by the browser. The value of size does not limit the number of characters that may be entered.\",\"(optional) limits the number of characters that may be entered.\",\"(optional) (not translatable) is the default value.\",\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\",\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'text_area\'.\",\"(optional) The field cannot be changed and will automatically inherit the default value\",\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\",\"(optional) The field must be filled before submitting the form.\",\"(optional) allow the system to save certain html tags or raw data.\",\"(optional) allow the system to validated the input data.\",\"(optional) The error message that will be displayed instead of the default message.\",\"(optional) The placeholder to display inside the text box.\",\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\",\"(optional) HTML equivalent attribute (javascript use)\"]}', 'provides an input field for a telephone number.', '', 1, 4, '', ''), -(24, '', 'The text form field type provides a text box for data entry. If the field has a value saved, this value is displayed when the page is first loaded. If not, the default value (if any) is selected.', 'Text', '{\"name\":[\"type\",\"name\",\"label\",\"size\",\"maxlength\",\"default\",\"description\",\"class\",\"readonly\",\"disabled\",\"required\",\"filter\",\"validate\",\"field\",\"message\",\"hint\",\"showon\",\"onchange\"],\"example\":[\"text\",\"mytextvalue\",\"Enter some text\",\"10\",\"50\",\"Some text\",\"Enter some description\",\"text_area\",\"false\",\"false\",\"false\",\"STRING\",\"\",\"\",\"Error! Please add some text here.\",\"Your Name Here\",\"\",\"\"],\"adjustable\":[\"0\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\"],\"mandatory\":[\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"],\"translatable\":[\"0\",\"0\",\"1\",\"0\",\"0\",\"0\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"1\",\"0\",\"0\"],\"description\":[\"(mandatory) must be text.\",\"(mandatory) is the unique name of the field.\",\"(mandatory) (translatable) is the descriptive title of the field.\",\"(optional) is the width of the text box in characters. If omitted the width is determined by the browser. The value of size does not limit the number of characters that may be entered.\",\"(optional) limits the number of characters that may be entered.\",\"(optional) (not translatable) is the default value.\",\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\",\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'text_area\'.\",\"(optional) The field cannot be changed and will automatically inherit the default value\",\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\",\"(optional) The field must be filled before submitting the form.\",\"(optional) allow the system to save certain html tags or raw data.\",\"(optional) makes the system validate the data.\",\"(optional) used in validation of \\\"equals\\\" to link the field to match.\",\"(optional) The error message that will be displayed instead of the default message.\",\"(optional) The placeholder to display inside the text box.\",\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\",\"(optional) HTML equivalent attribute (javascript use)\"]}', 'provides a text box for data entry.', '', 1, 5, '', ''), +(24, '', 'The text form field type provides a text box for data entry. If the field has a value saved, this value is displayed when the page is first loaded. If not, the default value (if any) is selected.', 'Text', '{\"name\":[\"type\",\"name\",\"label\",\"size\",\"maxlength\",\"default\",\"description\",\"class\",\"readonly\",\"disabled\",\"required\",\"filter\",\"validate\",\"field\",\"message\",\"hint\",\"autocomplete\",\"showon\",\"onchange\"],\"example\":[\"text\",\"mytextvalue\",\"Enter some text\",\"10\",\"50\",\"Some text\",\"Enter some description\",\"text_area\",\"false\",\"false\",\"false\",\"STRING\",\"\",\"\",\"Error! Please add some text here.\",\"Your Name Here\",\"on\",\"\",\"\"],\"adjustable\":[\"0\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\"],\"mandatory\":[\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"],\"translatable\":[\"0\",\"0\",\"1\",\"0\",\"0\",\"0\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"1\",\"0\",\"0\",\"0\"],\"description\":[\"(mandatory) must be text.\",\"(mandatory) is the unique name of the field.\",\"(mandatory) (translatable) is the descriptive title of the field.\",\"(optional) is the width of the text box in characters. If omitted the width is determined by the browser. The value of size does not limit the number of characters that may be entered.\",\"(optional) limits the number of characters that may be entered.\",\"(optional) (not translatable) is the default value.\",\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\",\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'text_area\'.\",\"(optional) The field cannot be changed and will automatically inherit the default value\",\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\",\"(optional) The field must be filled before submitting the form.\",\"(optional) allow the system to save certain html tags or raw data.\",\"(optional) makes the system validate the data.\",\"(optional) used in validation of \\\"equals\\\" to link the field to match.\",\"(optional) The error message that will be displayed instead of the default message.\",\"(optional) The placeholder to display inside the text box.\",\"(optional) The autocomplete state for the form field. If \'off\' element will not be automatically completed by browser.\",\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\",\"(optional) HTML equivalent attribute (javascript use)\"]}', 'provides a text box for data entry.', '', 1, 6, '', ''), (25, '', 'The textarea form field type provides a text area for entry of multi-line text. If the field has a value saved, this value is displayed when the page is first loaded. If not, the default value (if any) is selected.', 'Textarea', '{\"name\":[\"type\",\"name\",\"label\",\"rows\",\"cols\",\"default\",\"description\",\"class\",\"filter\",\"hint\",\"required\",\"readonly\",\"disabled\",\"showon\",\"onchange\"],\"example\":[\"textarea\",\"mytextarea\",\"Enter some text\",\"10\",\"5\",\"default text\",\"Text Area\",\"text_area\",\"raw\",\"\",\"false\",\"false\",\"false\",\"\",\"\"],\"adjustable\":[\"0\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\"],\"mandatory\":[\"1\",\"1\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"],\"translatable\":[\"0\",\"0\",\"1\",\"0\",\"0\",\"0\",\"1\",\"0\",\"0\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\"],\"description\":[\"(mandatory) must be textarea.\",\"(mandatory) is the unique name of the field.\",\"(mandatory) (translatable) is the descriptive title of the field.\",\"(mandatory) is the height of the visible text area in lines. If omitted the width is determined by the browser. The value of rows does not limit the number of lines that may be entered.\",\"(mandatory) is the width of the visible text area in characters. If omitted the width is determined by the browser. The value of cols does not limit the number of characters that may be entered.\",\"(optional) (not translatable) is the default value.\",\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\",\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'text_area\'.\",\"(optional) allow the system to save certain html tags or raw data.\",\"(optional) The placeholder to display inside the textarea.\",\"(optional) The field must be filled before submitting the form.\",\"(optional) The field cannot be changed and will automatically inherit the default value\",\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\",\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\",\"(optional) HTML equivalent attribute (javascript use)\"]}', 'provides a text area for entry of multi-line text.', '', 1, 5, '', ''), (26, '', 'The timezones form field type provides a drop down list of time zones. If the field has a value saved, this value is displayed when the page is first loaded. If not, the default value (if any) is selected.', 'Timezone', '{\"name\":[\"type\",\"name\",\"label\",\"default\",\"description\",\"showon\"],\"example\":[\"timezone\",\"timezone\",\"Timezone\",\"\",\"\",\"\"],\"adjustable\":[\"0\",\"1\",\"1\",\"1\",\"1\",\"1\"],\"mandatory\":[\"1\",\"1\",\"1\",\"0\",\"0\",\"0\"],\"translatable\":[\"0\",\"0\",\"1\",\"0\",\"1\",\"0\"],\"description\":[\"(mandatory) must be timezone.\",\"(mandatory) is the unique name of the field.\",\"(mandatory) (translatable) is the descriptive title of the field.\",\"(optional) is the default time zone. For example, use \'-10\' for \'(UTC -10:00) Hawaii\'.\",\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\",\"(optional) show this field on the bases of the value in another field.\"]}', 'provides a drop down list of time zones.', '', 1, 2, '', ''), (27, '', 'This field essentially is a text field with the type of url. If a fully qualified url (that is one with a scheme and domain such as http://example.com) is entered and it uses idn (that is uses characters that are non ascii such as ê or Ψ) it will translat', 'URL', '{\"name\":[\"type\",\"name\",\"label\",\"size\",\"maxlength\",\"default\",\"description\",\"class\",\"readonly\",\"disabled\",\"required\",\"filter\",\"validated\",\"message\",\"hint\",\"showon\",\"onchange\"],\"example\":[\"url\",\"website\",\"Website\",\"10\",\"50\",\"\",\"Enter website address\",\"text_area\",\"\",\"\",\"\",\"url\",\"url\",\"Error! Please add website here.\",\"Your Website Here\",\"\",\"\"],\"adjustable\":[\"0\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\"],\"mandatory\":[\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"],\"translatable\":[\"0\",\"0\",\"1\",\"0\",\"0\",\"0\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"1\",\"0\",\"0\"],\"description\":[\"(mandatory) must be url.\",\"(mandatory) is the unique name of the field.\",\"(mandatory) (translatable) is the descriptive title of the field.\",\"(optional) is the width of the text box in characters. If omitted the width is determined by the browser. The value of size does not limit the number of characters that may be entered.\",\"(optional) limits the number of characters that may be entered.\",\"(optional) (not translatable) is the default value.\",\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\",\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'text_area\'.\",\"(optional) The field cannot be changed and will automatically inherit the default value\",\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\",\"(optional) The field must be filled before submitting the form.\",\"(optional) allow the system to save certain html tags or raw data.\",\"(optional) allow the system to validated the input data.\",\"(optional) The error message that will be displayed instead of the default message.\",\"(optional) The placeholder to display inside the text box.\",\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\",\"(optional) HTML equivalent attribute (javascript use)\"]}', 'provides a URL text input field.', '', 1, 4, '', ''), diff --git a/admin/sql/uninstall.mysql.utf8.sql b/admin/sql/uninstall.mysql.utf8.sql index 7212c0456..45ae6542a 100644 --- a/admin/sql/uninstall.mysql.utf8.sql +++ b/admin/sql/uninstall.mysql.utf8.sql @@ -11,4 +11,5 @@ DROP TABLE IF EXISTS `#__componentbuilder_field`; DROP TABLE IF EXISTS `#__componentbuilder_fieldtype`; DROP TABLE IF EXISTS `#__componentbuilder_language_translation`; DROP TABLE IF EXISTS `#__componentbuilder_language`; +DROP TABLE IF EXISTS `#__componentbuilder_ftp`; DROP TABLE IF EXISTS `#__componentbuilder_help_document`; diff --git a/admin/sql/updates/mysql/2.5.1.sql b/admin/sql/updates/mysql/2.5.1.sql new file mode 100644 index 000000000..58f264924 --- /dev/null +++ b/admin/sql/updates/mysql/2.5.1.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS `#__componentbuilder_ftp` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', + `name` VARCHAR(255) NOT NULL DEFAULT '', + `signature` TEXT NOT NULL, + `params` text NOT NULL DEFAULT '', + `published` TINYINT(3) NOT NULL DEFAULT 1, + `created_by` INT(10) unsigned NOT NULL DEFAULT 0, + `modified_by` INT(10) unsigned NOT NULL DEFAULT 0, + `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `checked_out` int(11) unsigned NOT NULL DEFAULT 0, + `checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + `version` INT(10) unsigned NOT NULL DEFAULT 1, + `hits` INT(10) unsigned NOT NULL DEFAULT 0, + `access` INT(10) unsigned NOT NULL DEFAULT 0, + `ordering` INT(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `idx_access` (`access`), + KEY `idx_checkout` (`checked_out`), + KEY `idx_createdby` (`created_by`), + KEY `idx_modifiedby` (`modified_by`), + KEY `idx_state` (`published`), + KEY `idx_name` (`name`) +) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; diff --git a/admin/sql/updates/mysql/2.5.2.sql b/admin/sql/updates/mysql/2.5.2.sql new file mode 100644 index 000000000..47b9ba166 --- /dev/null +++ b/admin/sql/updates/mysql/2.5.2.sql @@ -0,0 +1,3 @@ +ALTER TABLE `#__componentbuilder_admin_view` ADD `add_php_before_save` TINYINT(1) NOT NULL DEFAULT 0 AFTER `add_php_before_publish`; + +ALTER TABLE `#__componentbuilder_admin_view` ADD `php_before_save` MEDIUMTEXT NOT NULL AFTER `php_before_publish`; diff --git a/admin/sql/updates/mysql/2.5.3.sql b/admin/sql/updates/mysql/2.5.3.sql new file mode 100644 index 000000000..e7873cf2b --- /dev/null +++ b/admin/sql/updates/mysql/2.5.3.sql @@ -0,0 +1 @@ +ALTER TABLE `#__componentbuilder_joomla_component` ADD `toignore` TEXT NOT NULL AFTER `system_name`; diff --git a/admin/tables/admin_view.php b/admin/tables/admin_view.php index cb705589b..7d9de93aa 100644 --- a/admin/tables/admin_view.php +++ b/admin/tables/admin_view.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage admin_view.php diff --git a/admin/tables/ftp.php b/admin/tables/ftp.php new file mode 100644 index 000000000..f58567f64 --- /dev/null +++ b/admin/tables/ftp.php @@ -0,0 +1,351 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +use Joomla\Registry\Registry; + +// import Joomla table library +jimport('joomla.database.table'); + +/** + * Ftps Table class + */ +class ComponentbuilderTableFtp extends JTable +{ + /** + * Ensure the params and metadata in json encoded in the bind method + * + * @var array + * @since 3.3 + */ + protected $_jsonEncode = array('params', 'metadata'); + + /** + * Constructor + * + * @param object Database connector object + */ + function __construct(&$db) + { + parent::__construct('#__componentbuilder_ftp', 'id', $db); + + // Adding History Options + JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_componentbuilder.ftp')); + } + + public function bind($array, $ignore = '') + { + + if (isset($array['params']) && is_array($array['params'])) + { + $registry = new JRegistry; + $registry->loadArray($array['params']); + $array['params'] = (string) $registry; + } + + if (isset($array['metadata']) && is_array($array['metadata'])) + { + $registry = new JRegistry; + $registry->loadArray($array['metadata']); + $array['metadata'] = (string) $registry; + } + + // Bind the rules. + if (isset($array['rules']) && is_array($array['rules'])) + { + $rules = new JAccessRules($array['rules']); + $this->setRules($rules); + } + return parent::bind($array, $ignore); + } + + /** + * Overload the store method for the Ftp table. + * + * @param boolean Toggle whether null values should be updated. + * @return boolean True on success, false on failure. + * @since 1.6 + */ + public function store($updateNulls = false) + { + $date = JFactory::getDate(); + $user = JFactory::getUser(); + + if ($this->id) + { + // Existing item + $this->modified = $date->toSql(); + $this->modified_by = $user->get('id'); + } + else + { + // New ftp. A ftp created and created_by field can be set by the user, + // so we don't touch either of these if they are set. + if (!(int) $this->created) + { + $this->created = $date->toSql(); + } + if (empty($this->created_by)) + { + $this->created_by = $user->get('id'); + } + } + + if (isset($this->alias)) + { + // Verify that the alias is unique + $table = JTable::getInstance('ftp', 'ComponentbuilderTable'); + + if ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->setError(JText::_('COM_COMPONENTBUILDER_FTP_ERROR_UNIQUE_ALIAS')); + return false; + } + } + + if (isset($this->url)) + { + // Convert IDN urls to punycode + $this->url = JStringPunycode::urlToPunycode($this->url); + } + if (isset($this->website)) + { + // Convert IDN urls to punycode + $this->website = JStringPunycode::urlToPunycode($this->website); + } + + return parent::store($updateNulls); + } + + /** + * Overloaded check method to ensure data integrity. + * + * @return boolean True on success. + */ + public function check() + { + if (isset($this->alias)) + { + // Generate a valid alias + $this->generateAlias(); + + $table = JTable::getInstance('ftp', 'componentbuilderTable'); + + while ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) + { + $this->alias = JString::increment($this->alias, 'dash'); + } + } + + /* + * Clean up keywords -- eliminate extra spaces between phrases + * and cr (\r) and lf (\n) characters from string. + * Only process if not empty. + */ + if (!empty($this->metakey)) + { + // Array of characters to remove. + $bad_characters = array("\n", "\r", "\"", "<", ">"); + + // Remove bad characters. + $after_clean = JString::str_ireplace($bad_characters, "", $this->metakey); + + // Create array using commas as delimiter. + $keys = explode(',', $after_clean); + $clean_keys = array(); + + foreach ($keys as $key) + { + // Ignore blank keywords. + if (trim($key)) + { + $clean_keys[] = trim($key); + } + } + + // Put array back together delimited by ", " + $this->metakey = implode(", ", $clean_keys); + } + + // Clean up description -- eliminate quotes and <> brackets + if (!empty($this->metadesc)) + { + // Only process if not empty + $bad_characters = array("\"", "<", ">"); + $this->metadesc = JString::str_ireplace($bad_characters, "", $this->metadesc); + } + + // If we don't have any access rules set at this point just use an empty JAccessRules class + if (!$this->getRules()) + { + $rules = $this->getDefaultAssetValues('com_componentbuilder.ftp.'.$this->id); + $this->setRules($rules); + } + + // Set ordering + if ($this->published < 0) + { + // Set ordering to 0 if state is archived or trashed + $this->ordering = 0; + } + + return true; + } + + /** + * Gets the default asset values for a component. + * + * @param $string $component The component asset name to search for + * + * @return JAccessRules The JAccessRules object for the asset + */ + protected function getDefaultAssetValues($component, $try = true) + { + // Need to find the asset id by the name of the component. + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select($db->quoteName('id')) + ->from($db->quoteName('#__assets')) + ->where($db->quoteName('name') . ' = ' . $db->quote($component)); + $db->setQuery($query); + $db->execute(); + if ($db->loadRowList()) + { + // asset alread set so use saved rules + $assetId = (int) $db->loadResult(); + return JAccess::getAssetRules($assetId); + } + // try again + elseif ($try) + { + $try = explode('.',$component); + $result = $this->getDefaultAssetValues($try[0], false); + if ($result instanceof JAccessRules) + { + if (isset($try[1])) + { + $_result = (string) $result; + $_result = json_decode($_result); + foreach ($_result as $name => &$rule) + { + $v = explode('.', $name); + if ($try[1] !== $v[0]) + { + // remove since it is not part of this view + unset($_result->$name); + } + else + { + // clear the value since we inherit + $rule = array(); + } + } + // check if there are any view values remaining + if (count($_result)) + { + $_result = json_encode($_result); + $_result = array($_result); + // Instantiate and return the JAccessRules object for the asset rules. + $rules = new JAccessRules; + $rules->mergeCollection($_result); + + return $rules; + } + } + return $result; + } + } + return JAccess::getAssetRules(0); + } + + /** + * Method to compute the default name of the asset. + * The default name is in the form 'table_name.id' + * where id is the value of the primary key of the table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetName() + { + $k = $this->_tbl_key; + return 'com_componentbuilder.ftp.'.(int) $this->$k; + } + + /** + * Method to return the title to use for the asset table. + * + * @return string + * @since 2.5 + */ + protected function _getAssetTitle() + { + if (isset($this->title)) + { + return $this->title; + } + return ''; + } + + /** + * Get the parent asset id for the record + * + * @return int + * @since 2.5 + */ + protected function _getAssetParentId(JTable $table = NULL, $id = NULL) + { + $asset = JTable::getInstance('Asset'); + $asset->loadByName('com_componentbuilder'); + + return $asset->id; + } + + /** + * Generate a valid alias from title / date. + * Remains public to be able to check for duplicated alias before saving + * + * @return string + */ + public function generateAlias() + { + if (empty($this->alias)) + { + $this->alias = $this->name; + } + + $this->alias = JApplication::stringURLSafe($this->alias); + + if (trim(str_replace('-', '', $this->alias)) == '') + { + $this->alias = JFactory::getDate()->format("Y-m-d-H-i-s"); + } + + return $this->alias; + } + +} diff --git a/admin/tables/help_document.php b/admin/tables/help_document.php index 5c4b29858..45217b177 100644 --- a/admin/tables/help_document.php +++ b/admin/tables/help_document.php @@ -11,7 +11,7 @@ /-------------------------------------------------------------------------------------------------------------------------------/ @version @update number 6 of this MVC - @build 18th October, 2016 + @build 17th October, 2016 @created 4th March, 2016 @package Component Builder @subpackage help_document.php diff --git a/admin/tables/joomla_component.php b/admin/tables/joomla_component.php index 607a268cb..beb29a17c 100644 --- a/admin/tables/joomla_component.php +++ b/admin/tables/joomla_component.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 359 of this MVC - @build 23rd August, 2017 + @version @update number 366 of this MVC + @build 7th September, 2017 @created 6th May, 2015 @package Component Builder @subpackage joomla_component.php diff --git a/admin/views/admin_view/submitbutton.js b/admin/views/admin_view/submitbutton.js index 7661492e4..34a28cb67 100644 --- a/admin/views/admin_view/submitbutton.js +++ b/admin/views/admin_view/submitbutton.js @@ -9,8 +9,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage submitbutton.js diff --git a/admin/views/admin_view/tmpl/edit.php b/admin/views/admin_view/tmpl/edit.php index 66e84c6a4..f0f32c3ba 100644 --- a/admin/views/admin_view/tmpl/edit.php +++ b/admin/views/admin_view/tmpl/edit.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage edit.php @@ -377,251 +377,251 @@ jQuery('#adminForm').on('change', '#jform_add_php_getlistquery',function (e) }); -// #jform_add_php_save listeners for add_php_save_vvvvvxh function +// #jform_add_php_before_save listeners for add_php_before_save_vvvvvxh function +jQuery('#jform_add_php_before_save').on('keyup',function() +{ + var add_php_before_save_vvvvvxh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); + vvvvvxh(add_php_before_save_vvvvvxh); + +}); +jQuery('#adminForm').on('change', '#jform_add_php_before_save',function (e) +{ + e.preventDefault(); + var add_php_before_save_vvvvvxh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); + vvvvvxh(add_php_before_save_vvvvvxh); + +}); + +// #jform_add_php_save listeners for add_php_save_vvvvvxi function jQuery('#jform_add_php_save').on('keyup',function() { - var add_php_save_vvvvvxh = jQuery("#jform_add_php_save input[type='radio']:checked").val(); - vvvvvxh(add_php_save_vvvvvxh); + var add_php_save_vvvvvxi = jQuery("#jform_add_php_save input[type='radio']:checked").val(); + vvvvvxi(add_php_save_vvvvvxi); }); jQuery('#adminForm').on('change', '#jform_add_php_save',function (e) { e.preventDefault(); - var add_php_save_vvvvvxh = jQuery("#jform_add_php_save input[type='radio']:checked").val(); - vvvvvxh(add_php_save_vvvvvxh); + var add_php_save_vvvvvxi = jQuery("#jform_add_php_save input[type='radio']:checked").val(); + vvvvvxi(add_php_save_vvvvvxi); }); -// #jform_add_php_postsavehook listeners for add_php_postsavehook_vvvvvxi function +// #jform_add_php_postsavehook listeners for add_php_postsavehook_vvvvvxj function jQuery('#jform_add_php_postsavehook').on('keyup',function() { - var add_php_postsavehook_vvvvvxi = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); - vvvvvxi(add_php_postsavehook_vvvvvxi); + var add_php_postsavehook_vvvvvxj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); + vvvvvxj(add_php_postsavehook_vvvvvxj); }); jQuery('#adminForm').on('change', '#jform_add_php_postsavehook',function (e) { e.preventDefault(); - var add_php_postsavehook_vvvvvxi = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); - vvvvvxi(add_php_postsavehook_vvvvvxi); + var add_php_postsavehook_vvvvvxj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); + vvvvvxj(add_php_postsavehook_vvvvvxj); }); -// #jform_add_php_allowedit listeners for add_php_allowedit_vvvvvxj function +// #jform_add_php_allowedit listeners for add_php_allowedit_vvvvvxk function jQuery('#jform_add_php_allowedit').on('keyup',function() { - var add_php_allowedit_vvvvvxj = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); - vvvvvxj(add_php_allowedit_vvvvvxj); + var add_php_allowedit_vvvvvxk = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); + vvvvvxk(add_php_allowedit_vvvvvxk); }); jQuery('#adminForm').on('change', '#jform_add_php_allowedit',function (e) { e.preventDefault(); - var add_php_allowedit_vvvvvxj = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); - vvvvvxj(add_php_allowedit_vvvvvxj); + var add_php_allowedit_vvvvvxk = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); + vvvvvxk(add_php_allowedit_vvvvvxk); }); -// #jform_add_php_batchcopy listeners for add_php_batchcopy_vvvvvxk function +// #jform_add_php_batchcopy listeners for add_php_batchcopy_vvvvvxl function jQuery('#jform_add_php_batchcopy').on('keyup',function() { - var add_php_batchcopy_vvvvvxk = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); - vvvvvxk(add_php_batchcopy_vvvvvxk); + var add_php_batchcopy_vvvvvxl = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); + vvvvvxl(add_php_batchcopy_vvvvvxl); }); jQuery('#adminForm').on('change', '#jform_add_php_batchcopy',function (e) { e.preventDefault(); - var add_php_batchcopy_vvvvvxk = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); - vvvvvxk(add_php_batchcopy_vvvvvxk); + var add_php_batchcopy_vvvvvxl = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); + vvvvvxl(add_php_batchcopy_vvvvvxl); }); -// #jform_add_php_batchmove listeners for add_php_batchmove_vvvvvxl function +// #jform_add_php_batchmove listeners for add_php_batchmove_vvvvvxm function jQuery('#jform_add_php_batchmove').on('keyup',function() { - var add_php_batchmove_vvvvvxl = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); - vvvvvxl(add_php_batchmove_vvvvvxl); + var add_php_batchmove_vvvvvxm = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); + vvvvvxm(add_php_batchmove_vvvvvxm); }); jQuery('#adminForm').on('change', '#jform_add_php_batchmove',function (e) { e.preventDefault(); - var add_php_batchmove_vvvvvxl = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); - vvvvvxl(add_php_batchmove_vvvvvxl); + var add_php_batchmove_vvvvvxm = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); + vvvvvxm(add_php_batchmove_vvvvvxm); }); -// #jform_add_php_before_publish listeners for add_php_before_publish_vvvvvxm function +// #jform_add_php_before_publish listeners for add_php_before_publish_vvvvvxn function jQuery('#jform_add_php_before_publish').on('keyup',function() { - var add_php_before_publish_vvvvvxm = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); - vvvvvxm(add_php_before_publish_vvvvvxm); + var add_php_before_publish_vvvvvxn = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); + vvvvvxn(add_php_before_publish_vvvvvxn); }); jQuery('#adminForm').on('change', '#jform_add_php_before_publish',function (e) { e.preventDefault(); - var add_php_before_publish_vvvvvxm = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); - vvvvvxm(add_php_before_publish_vvvvvxm); + var add_php_before_publish_vvvvvxn = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); + vvvvvxn(add_php_before_publish_vvvvvxn); }); -// #jform_add_php_after_publish listeners for add_php_after_publish_vvvvvxn function +// #jform_add_php_after_publish listeners for add_php_after_publish_vvvvvxo function jQuery('#jform_add_php_after_publish').on('keyup',function() { - var add_php_after_publish_vvvvvxn = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); - vvvvvxn(add_php_after_publish_vvvvvxn); + var add_php_after_publish_vvvvvxo = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); + vvvvvxo(add_php_after_publish_vvvvvxo); }); jQuery('#adminForm').on('change', '#jform_add_php_after_publish',function (e) { e.preventDefault(); - var add_php_after_publish_vvvvvxn = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); - vvvvvxn(add_php_after_publish_vvvvvxn); + var add_php_after_publish_vvvvvxo = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); + vvvvvxo(add_php_after_publish_vvvvvxo); }); -// #jform_add_php_before_delete listeners for add_php_before_delete_vvvvvxo function +// #jform_add_php_before_delete listeners for add_php_before_delete_vvvvvxp function jQuery('#jform_add_php_before_delete').on('keyup',function() { - var add_php_before_delete_vvvvvxo = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); - vvvvvxo(add_php_before_delete_vvvvvxo); + var add_php_before_delete_vvvvvxp = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); + vvvvvxp(add_php_before_delete_vvvvvxp); }); jQuery('#adminForm').on('change', '#jform_add_php_before_delete',function (e) { e.preventDefault(); - var add_php_before_delete_vvvvvxo = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); - vvvvvxo(add_php_before_delete_vvvvvxo); + var add_php_before_delete_vvvvvxp = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); + vvvvvxp(add_php_before_delete_vvvvvxp); }); -// #jform_add_php_after_delete listeners for add_php_after_delete_vvvvvxp function +// #jform_add_php_after_delete listeners for add_php_after_delete_vvvvvxq function jQuery('#jform_add_php_after_delete').on('keyup',function() { - var add_php_after_delete_vvvvvxp = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); - vvvvvxp(add_php_after_delete_vvvvvxp); + var add_php_after_delete_vvvvvxq = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); + vvvvvxq(add_php_after_delete_vvvvvxq); }); jQuery('#adminForm').on('change', '#jform_add_php_after_delete',function (e) { e.preventDefault(); - var add_php_after_delete_vvvvvxp = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); - vvvvvxp(add_php_after_delete_vvvvvxp); + var add_php_after_delete_vvvvvxq = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); + vvvvvxq(add_php_after_delete_vvvvvxq); }); -// #jform_add_php_document listeners for add_php_document_vvvvvxq function +// #jform_add_php_document listeners for add_php_document_vvvvvxr function jQuery('#jform_add_php_document').on('keyup',function() { - var add_php_document_vvvvvxq = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvxq(add_php_document_vvvvvxq); + var add_php_document_vvvvvxr = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvxr(add_php_document_vvvvvxr); }); jQuery('#adminForm').on('change', '#jform_add_php_document',function (e) { e.preventDefault(); - var add_php_document_vvvvvxq = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvxq(add_php_document_vvvvvxq); - -}); - -// #jform_add_sql listeners for add_sql_vvvvvxr function -jQuery('#jform_add_sql').on('keyup',function() -{ - var add_sql_vvvvvxr = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxr(add_sql_vvvvvxr); - -}); -jQuery('#adminForm').on('change', '#jform_add_sql',function (e) -{ - e.preventDefault(); - var add_sql_vvvvvxr = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxr(add_sql_vvvvvxr); - -}); - -// #jform_source listeners for source_vvvvvxs function -jQuery('#jform_source').on('keyup',function() -{ - var source_vvvvvxs = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvxs = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxs(source_vvvvvxs,add_sql_vvvvvxs); - -}); -jQuery('#adminForm').on('change', '#jform_source',function (e) -{ - e.preventDefault(); - var source_vvvvvxs = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvxs = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxs(source_vvvvvxs,add_sql_vvvvvxs); + var add_php_document_vvvvvxr = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvxr(add_php_document_vvvvvxr); }); // #jform_add_sql listeners for add_sql_vvvvvxs function jQuery('#jform_add_sql').on('keyup',function() { - var source_vvvvvxs = jQuery("#jform_source input[type='radio']:checked").val(); var add_sql_vvvvvxs = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxs(source_vvvvvxs,add_sql_vvvvvxs); + vvvvvxs(add_sql_vvvvvxs); }); jQuery('#adminForm').on('change', '#jform_add_sql',function (e) { e.preventDefault(); - var source_vvvvvxs = jQuery("#jform_source input[type='radio']:checked").val(); var add_sql_vvvvvxs = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxs(source_vvvvvxs,add_sql_vvvvvxs); + vvvvvxs(add_sql_vvvvvxs); }); -// #jform_source listeners for source_vvvvvxu function +// #jform_source listeners for source_vvvvvxt function jQuery('#jform_source').on('keyup',function() { - var source_vvvvvxu = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu); + var source_vvvvvxt = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxt = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxt(source_vvvvvxt,add_sql_vvvvvxt); }); jQuery('#adminForm').on('change', '#jform_source',function (e) { e.preventDefault(); - var source_vvvvvxu = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu); + var source_vvvvvxt = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxt = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxt(source_vvvvvxt,add_sql_vvvvvxt); }); -// #jform_add_sql listeners for add_sql_vvvvvxu function +// #jform_add_sql listeners for add_sql_vvvvvxt function jQuery('#jform_add_sql').on('keyup',function() { - var source_vvvvvxu = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu); + var source_vvvvvxt = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxt = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxt(source_vvvvvxt,add_sql_vvvvvxt); }); jQuery('#adminForm').on('change', '#jform_add_sql',function (e) { e.preventDefault(); - var source_vvvvvxu = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu); + var source_vvvvvxt = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxt = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxt(source_vvvvvxt,add_sql_vvvvvxt); }); -// #jform_add_custom_import listeners for add_custom_import_vvvvvxw function -jQuery('#jform_add_custom_import').on('keyup',function() +// #jform_source listeners for source_vvvvvxv function +jQuery('#jform_source').on('keyup',function() { - var add_custom_import_vvvvvxw = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvxw(add_custom_import_vvvvvxw); + var source_vvvvvxv = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxv = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxv(source_vvvvvxv,add_sql_vvvvvxv); }); -jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e) +jQuery('#adminForm').on('change', '#jform_source',function (e) { e.preventDefault(); - var add_custom_import_vvvvvxw = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvxw(add_custom_import_vvvvvxw); + var source_vvvvvxv = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxv = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxv(source_vvvvvxv,add_sql_vvvvvxv); + +}); + +// #jform_add_sql listeners for add_sql_vvvvvxv function +jQuery('#jform_add_sql').on('keyup',function() +{ + var source_vvvvvxv = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxv = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxv(source_vvvvvxv,add_sql_vvvvvxv); + +}); +jQuery('#adminForm').on('change', '#jform_add_sql',function (e) +{ + e.preventDefault(); + var source_vvvvvxv = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxv = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxv(source_vvvvvxv,add_sql_vvvvvxv); }); @@ -640,18 +640,33 @@ jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e) }); -// #jform_add_custom_button listeners for add_custom_button_vvvvvxy function +// #jform_add_custom_import listeners for add_custom_import_vvvvvxy function +jQuery('#jform_add_custom_import').on('keyup',function() +{ + var add_custom_import_vvvvvxy = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvvxy(add_custom_import_vvvvvxy); + +}); +jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e) +{ + e.preventDefault(); + var add_custom_import_vvvvvxy = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvvxy(add_custom_import_vvvvvxy); + +}); + +// #jform_add_custom_button listeners for add_custom_button_vvvvvxz function jQuery('#jform_add_custom_button').on('keyup',function() { - var add_custom_button_vvvvvxy = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvxy(add_custom_button_vvvvvxy); + var add_custom_button_vvvvvxz = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvxz(add_custom_button_vvvvvxz); }); jQuery('#adminForm').on('change', '#jform_add_custom_button',function (e) { e.preventDefault(); - var add_custom_button_vvvvvxy = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvxy(add_custom_button_vvvvvxy); + var add_custom_button_vvvvvxz = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvxz(add_custom_button_vvvvvxz); }); diff --git a/admin/views/admin_view/view.html.php b/admin/views/admin_view/view.html.php index 8e33b9edf..6f202afdd 100644 --- a/admin/views/admin_view/view.html.php +++ b/admin/views/admin_view/view.html.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage view.html.php @@ -71,10 +71,10 @@ class ComponentbuilderViewAdmin_view extends JViewLegacy } // Get Linked view data - $this->vxxfields = $this->get('Vxxfields'); + $this->vxyfields = $this->get('Vxyfields'); // Get Linked view data - $this->vxylinked_components = $this->get('Vxylinked_components'); + $this->vxzlinked_components = $this->get('Vxzlinked_components'); // Set the toolbar $this->addToolBar(); diff --git a/admin/views/admin_views/tmpl/default.php b/admin/views/admin_views/tmpl/default.php index 63e0db868..408967ef0 100644 --- a/admin/views/admin_views/tmpl/default.php +++ b/admin/views/admin_views/tmpl/default.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage default.php diff --git a/admin/views/admin_views/tmpl/default_batch_body.php b/admin/views/admin_views/tmpl/default_batch_body.php index 5738211a5..69992cf3e 100644 --- a/admin/views/admin_views/tmpl/default_batch_body.php +++ b/admin/views/admin_views/tmpl/default_batch_body.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage default_batch_body.php diff --git a/admin/views/admin_views/tmpl/default_batch_footer.php b/admin/views/admin_views/tmpl/default_batch_footer.php index 0be653349..25e021063 100644 --- a/admin/views/admin_views/tmpl/default_batch_footer.php +++ b/admin/views/admin_views/tmpl/default_batch_footer.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage default_batch_footer.php diff --git a/admin/views/admin_views/tmpl/default_body.php b/admin/views/admin_views/tmpl/default_body.php index 9a576b89d..a00b695bf 100644 --- a/admin/views/admin_views/tmpl/default_body.php +++ b/admin/views/admin_views/tmpl/default_body.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage default_body.php diff --git a/admin/views/admin_views/tmpl/default_foot.php b/admin/views/admin_views/tmpl/default_foot.php index b82ebf348..40911c695 100644 --- a/admin/views/admin_views/tmpl/default_foot.php +++ b/admin/views/admin_views/tmpl/default_foot.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage default_foot.php diff --git a/admin/views/admin_views/tmpl/default_head.php b/admin/views/admin_views/tmpl/default_head.php index 23cdf2d40..a6fb7598e 100644 --- a/admin/views/admin_views/tmpl/default_head.php +++ b/admin/views/admin_views/tmpl/default_head.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage default_head.php diff --git a/admin/views/admin_views/tmpl/default_toolbar.php b/admin/views/admin_views/tmpl/default_toolbar.php index 055c7f58b..8aeeab357 100644 --- a/admin/views/admin_views/tmpl/default_toolbar.php +++ b/admin/views/admin_views/tmpl/default_toolbar.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage default_toolbar.php diff --git a/admin/views/admin_views/view.html.php b/admin/views/admin_views/view.html.php index cf8c2a0c2..d469a1cfa 100644 --- a/admin/views/admin_views/view.html.php +++ b/admin/views/admin_views/view.html.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version @update number 111 of this MVC - @build 17th July, 2017 + @version @update number 114 of this MVC + @build 28th August, 2017 @created 30th April, 2015 @package Component Builder @subpackage view.html.php diff --git a/admin/views/componentbuilder/tmpl/default.php b/admin/views/componentbuilder/tmpl/default.php index e9b21f032..c9b3137ed 100644 --- a/admin/views/componentbuilder/tmpl/default.php +++ b/admin/views/componentbuilder/tmpl/default.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage default.php diff --git a/admin/views/componentbuilder/tmpl/default_closed_issues_the_closed_issues_on_github.php b/admin/views/componentbuilder/tmpl/default_closed_issues_the_closed_issues_on_github.php index 340c0715a..e1b8082f6 100644 --- a/admin/views/componentbuilder/tmpl/default_closed_issues_the_closed_issues_on_github.php +++ b/admin/views/componentbuilder/tmpl/default_closed_issues_the_closed_issues_on_github.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage default_closed_issues_the_closed_issues_on_github.php diff --git a/admin/views/componentbuilder/tmpl/default_main.php b/admin/views/componentbuilder/tmpl/default_main.php index 746adaf86..0e6954648 100644 --- a/admin/views/componentbuilder/tmpl/default_main.php +++ b/admin/views/componentbuilder/tmpl/default_main.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage default_main.php diff --git a/admin/views/componentbuilder/tmpl/default_open_issues_the_open_issues_on_github.php b/admin/views/componentbuilder/tmpl/default_open_issues_the_open_issues_on_github.php index 5372fe243..3c1a7a554 100644 --- a/admin/views/componentbuilder/tmpl/default_open_issues_the_open_issues_on_github.php +++ b/admin/views/componentbuilder/tmpl/default_open_issues_the_open_issues_on_github.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage default_open_issues_the_open_issues_on_github.php diff --git a/admin/views/componentbuilder/tmpl/default_readme_information.php b/admin/views/componentbuilder/tmpl/default_readme_information.php index 411a0d708..a675825eb 100644 --- a/admin/views/componentbuilder/tmpl/default_readme_information.php +++ b/admin/views/componentbuilder/tmpl/default_readme_information.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage default_readme_information.php diff --git a/admin/views/componentbuilder/tmpl/default_releases_information.php b/admin/views/componentbuilder/tmpl/default_releases_information.php index 8ae22bb85..e47758a98 100644 --- a/admin/views/componentbuilder/tmpl/default_releases_information.php +++ b/admin/views/componentbuilder/tmpl/default_releases_information.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage default_releases_information.php diff --git a/admin/views/componentbuilder/tmpl/default_vast_development_method_notice_board.php b/admin/views/componentbuilder/tmpl/default_vast_development_method_notice_board.php index 72966f094..dc4b5ea43 100644 --- a/admin/views/componentbuilder/tmpl/default_vast_development_method_notice_board.php +++ b/admin/views/componentbuilder/tmpl/default_vast_development_method_notice_board.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage default_vast_development_method_notice_board.php diff --git a/admin/views/componentbuilder/tmpl/default_vdm.php b/admin/views/componentbuilder/tmpl/default_vdm.php index 68765b3fd..817d08a10 100644 --- a/admin/views/componentbuilder/tmpl/default_vdm.php +++ b/admin/views/componentbuilder/tmpl/default_vdm.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage default_vdm.php diff --git a/admin/views/componentbuilder/view.html.php b/admin/views/componentbuilder/view.html.php index cc8c39461..bca05445c 100644 --- a/admin/views/componentbuilder/view.html.php +++ b/admin/views/componentbuilder/view.html.php @@ -10,8 +10,8 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.5.1 - @build 23rd August, 2017 + @version 2.5.4 + @build 13th September, 2017 @created 30th April, 2015 @package Component Builder @subpackage view.html.php diff --git a/admin/views/custom_admin_view/tmpl/edit.php b/admin/views/custom_admin_view/tmpl/edit.php index 4d597e0d3..8b5d118bf 100644 --- a/admin/views/custom_admin_view/tmpl/edit.php +++ b/admin/views/custom_admin_view/tmpl/edit.php @@ -165,123 +165,123 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder'); + + + diff --git a/admin/views/ftp/tmpl/index.html b/admin/views/ftp/tmpl/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/ftp/tmpl/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/ftp/view.html.php b/admin/views/ftp/view.html.php new file mode 100644 index 000000000..a925c155e --- /dev/null +++ b/admin/views/ftp/view.html.php @@ -0,0 +1,213 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Ftp View class + */ +class ComponentbuilderViewFtp extends JViewLegacy +{ + /** + * display method of View + * @return void + */ + public function display($tpl = null) + { + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('
', $errors)); + return false; + } + + // Assign the variables + $this->form = $this->get('Form'); + $this->item = $this->get('Item'); + $this->script = $this->get('Script'); + $this->state = $this->get('State'); + // get action permissions + $this->canDo = ComponentbuilderHelper::getActions('ftp',$this->item); + // get input + $jinput = JFactory::getApplication()->input; + $this->ref = $jinput->get('ref', 0, 'word'); + $this->refid = $jinput->get('refid', 0, 'int'); + $this->referral = ''; + if ($this->refid) + { + // return to the item that refered to this item + $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; + } + elseif($this->ref) + { + // return to the list view that refered to this item + $this->referral = '&ref='.(string)$this->ref; + } + + // Get Linked view data + $this->wadlinked_components = $this->get('Wadlinked_components'); + + // Set the toolbar + $this->addToolBar(); + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JFactory::getApplication()->input->set('hidemainmenu', true); + $user = JFactory::getUser(); + $userId = $user->id; + $isNew = $this->item->id == 0; + + JToolbarHelper::title( JText::_($isNew ? 'COM_COMPONENTBUILDER_FTP_NEW' : 'COM_COMPONENTBUILDER_FTP_EDIT'), 'pencil-2 article-add'); + // Built the actions for new and existing records. + if ($this->refid || $this->ref) + { + if ($this->canDo->get('ftp.create') && $isNew) + { + // We can create the record. + JToolBarHelper::save('ftp.save', 'JTOOLBAR_SAVE'); + } + elseif ($this->canDo->get('ftp.edit')) + { + // We can save the record. + JToolBarHelper::save('ftp.save', 'JTOOLBAR_SAVE'); + } + if ($isNew) + { + // Do not creat but cancel. + JToolBarHelper::cancel('ftp.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + // We can close it. + JToolBarHelper::cancel('ftp.cancel', 'JTOOLBAR_CLOSE'); + } + } + else + { + if ($isNew) + { + // For new records, check the create permission. + if ($this->canDo->get('ftp.create')) + { + JToolBarHelper::apply('ftp.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('ftp.save', 'JTOOLBAR_SAVE'); + JToolBarHelper::custom('ftp.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + }; + JToolBarHelper::cancel('ftp.cancel', 'JTOOLBAR_CANCEL'); + } + else + { + if ($this->canDo->get('ftp.edit')) + { + // We can save the new record + JToolBarHelper::apply('ftp.apply', 'JTOOLBAR_APPLY'); + JToolBarHelper::save('ftp.save', 'JTOOLBAR_SAVE'); + // We can save this record, but check the create permission to see + // if we can return to make a new one. + if ($this->canDo->get('ftp.create')) + { + JToolBarHelper::custom('ftp.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); + } + } + $canVersion = ($this->canDo->get('core.version') && $this->canDo->get('ftp.version')); + if ($this->state->params->get('save_history', 1) && $this->canDo->get('ftp.edit') && $canVersion) + { + JToolbarHelper::versions('com_componentbuilder.ftp', $this->item->id); + } + if ($this->canDo->get('ftp.create')) + { + JToolBarHelper::custom('ftp.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false); + } + JToolBarHelper::cancel('ftp.cancel', 'JTOOLBAR_CLOSE'); + } + } + JToolbarHelper::divider(); + // set help url for this view if found + $help_url = ComponentbuilderHelper::getHelpUrl('ftp'); + if (ComponentbuilderHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); + } + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 30) + { + // use the helper htmlEscape method instead and shorten the string + return ComponentbuilderHelper::htmlEscape($var, $this->_charset, true, 30); + } + // use the helper htmlEscape method instead. + return ComponentbuilderHelper::htmlEscape($var, $this->_charset); + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $isNew = ($this->item->id < 1); + $document = JFactory::getDocument(); + $document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_FTP_NEW' : 'COM_COMPONENTBUILDER_FTP_EDIT')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/ftp.css"); + + // Add the CSS for Footable + $document->addStyleSheet('https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'); + $document->addStyleSheet(JURI::root() .'media/com_componentbuilder/footable/css/footable.standalone.min.css'); + // Add the JavaScript for Footable (adding all funtions) + $document->addScript(JURI::root() .'media/com_componentbuilder/footable/js/footable.min.js'); + + $footable = "jQuery(document).ready(function() { jQuery(function () { jQuery('.footable').footable();});});"; + $document->addScriptDeclaration($footable); + + $document->addScript(JURI::root() . $this->script); + $document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/ftp/submitbutton.js"); + JText::script('view not acceptable. Error'); + } +} diff --git a/admin/views/ftps/index.html b/admin/views/ftps/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/ftps/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/ftps/tmpl/default.php b/admin/views/ftps/tmpl/default.php new file mode 100644 index 000000000..55b23cb2d --- /dev/null +++ b/admin/views/ftps/tmpl/default.php @@ -0,0 +1,99 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// load tooltip behavior +JHtml::_('behavior.tooltip'); +JHtml::_('behavior.multiselect'); +JHtml::_('dropdown.init'); +JHtml::_('formbehavior.chosen', 'select'); + +if ($this->saveOrder) +{ + $saveOrderingUrl = 'index.php?option=com_componentbuilder&task=ftps.saveOrderAjax&tmpl=component'; + JHtml::_('sortablelist.sortable', 'ftpList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl); +} + +?> + +
+sidebar)): ?> +
+ sidebar; ?> +
+
+ +
+ +items)): ?> + loadTemplate('toolbar');?> +
+ +
+ + loadTemplate('toolbar');?> + + loadTemplate('head');?> + loadTemplate('foot');?> + loadTemplate('body');?> +
+ + canCreate && $this->canEdit) : ?> + JText::_('COM_COMPONENTBUILDER_FTPS_BATCH_OPTIONS'), + 'footer' => $this->loadTemplate('batch_footer') + ), + $this->loadTemplate('batch_body') + ); ?> + + + + +
+ + + + \ No newline at end of file diff --git a/admin/views/ftps/tmpl/default_batch_body.php b/admin/views/ftps/tmpl/default_batch_body.php new file mode 100644 index 000000000..6db6bb0c4 --- /dev/null +++ b/admin/views/ftps/tmpl/default_batch_body.php @@ -0,0 +1,32 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + +

+batchDisplay; ?> \ No newline at end of file diff --git a/admin/views/ftps/tmpl/default_batch_footer.php b/admin/views/ftps/tmpl/default_batch_footer.php new file mode 100644 index 000000000..8769ddec6 --- /dev/null +++ b/admin/views/ftps/tmpl/default_batch_footer.php @@ -0,0 +1,37 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + + + + \ No newline at end of file diff --git a/admin/views/ftps/tmpl/default_body.php b/admin/views/ftps/tmpl/default_body.php new file mode 100644 index 000000000..643cd4b87 --- /dev/null +++ b/admin/views/ftps/tmpl/default_body.php @@ -0,0 +1,108 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +$edit = "index.php?option=com_componentbuilder&view=ftps&task=ftp.edit"; + +?> +items as $i => $item): ?> + user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0; + $userChkOut = JFactory::getUser($item->checked_out); + $canDo = ComponentbuilderHelper::getActions('ftp',$item,'ftps'); + ?> + + + get('ftp.edit.state')): ?> + saveOrder) + { + $iconClass = ' inactive'; + } + else + { + $iconClass = ' inactive tip-top" hasTooltip" title="' . JHtml::tooltipText('JORDERINGDISABLED'); + } + ?> + + + + saveOrder) : ?> + + + + ⋮ + + + + get('ftp.edit')): ?> + checked_out) : ?> + + id); ?> + + □ + + + id); ?> + + + □ + + + + get('ftp.edit')): ?> +
+ escape($item->name); ?> + checked_out): ?> + name, $item->checked_out_time, 'ftps.', $canCheckin); ?> + +
+ +
escape($item->name); ?>
+ + + + get('ftp.edit.state')) : ?> + checked_out) : ?> + + published, $i, 'ftps.', true, 'cb'); ?> + + published, $i, 'ftps.', false, 'cb'); ?> + + + published, $i, 'ftps.', true, 'cb'); ?> + + + published, $i, 'ftps.', false, 'cb'); ?> + + + + id; ?> + + + \ No newline at end of file diff --git a/admin/views/ftps/tmpl/default_foot.php b/admin/views/ftps/tmpl/default_foot.php new file mode 100644 index 000000000..c654f5483 --- /dev/null +++ b/admin/views/ftps/tmpl/default_foot.php @@ -0,0 +1,32 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + + pagination->getListFooter(); ?> + \ No newline at end of file diff --git a/admin/views/ftps/tmpl/default_head.php b/admin/views/ftps/tmpl/default_head.php new file mode 100644 index 000000000..54eec3e1a --- /dev/null +++ b/admin/views/ftps/tmpl/default_head.php @@ -0,0 +1,61 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> + + canEdit&& $this->canState): ?> + + ', 'ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING'); ?> + + + + + + + ▾ + + + ■ + + + + listDirn, $this->listOrder); ?> + + canState): ?> + + listDirn, $this->listOrder); ?> + + + + + + + + listDirn, $this->listOrder); ?> + + \ No newline at end of file diff --git a/admin/views/ftps/tmpl/default_toolbar.php b/admin/views/ftps/tmpl/default_toolbar.php new file mode 100644 index 000000000..3b8b30473 --- /dev/null +++ b/admin/views/ftps/tmpl/default_toolbar.php @@ -0,0 +1,59 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +?> +
+ +
+ + +
+
+ + pagination->getLimitBox(); ?> +
+
+ + +
+
+ + +
+
+
\ No newline at end of file diff --git a/admin/views/ftps/tmpl/index.html b/admin/views/ftps/tmpl/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/views/ftps/tmpl/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/views/ftps/view.html.php b/admin/views/ftps/view.html.php new file mode 100644 index 000000000..0cc018990 --- /dev/null +++ b/admin/views/ftps/view.html.php @@ -0,0 +1,304 @@ + + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import Joomla view library +jimport('joomla.application.component.view'); + +/** + * Componentbuilder View class for the Ftps + */ +class ComponentbuilderViewFtps extends JViewLegacy +{ + /** + * Ftps view display method + * @return void + */ + function display($tpl = null) + { + if ($this->getLayout() !== 'modal') + { + // Include helper submenu + ComponentbuilderHelper::addSubmenu('ftps'); + } + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('
', $errors)); + return false; + } + + // Assign data to the view + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + $this->state = $this->get('State'); + $this->user = JFactory::getUser(); + $this->listOrder = $this->escape($this->state->get('list.ordering')); + $this->listDirn = $this->escape($this->state->get('list.direction')); + $this->saveOrder = $this->listOrder == 'ordering'; + // get global action permissions + $this->canDo = ComponentbuilderHelper::getActions('ftp'); + $this->canEdit = $this->canDo->get('ftp.edit'); + $this->canState = $this->canDo->get('ftp.edit.state'); + $this->canCreate = $this->canDo->get('ftp.create'); + $this->canDelete = $this->canDo->get('ftp.delete'); + $this->canBatch = $this->canDo->get('core.batch'); + + // We don't need toolbar in the modal window. + if ($this->getLayout() !== 'modal') + { + $this->addToolbar(); + $this->sidebar = JHtmlSidebar::render(); + // load the batch html + if ($this->canCreate && $this->canEdit && $this->canState) + { + $this->batchDisplay = JHtmlBatch_::render(); + } + } + + // Display the template + parent::display($tpl); + + // Set the document + $this->setDocument(); + } + + /** + * Setting the toolbar + */ + protected function addToolBar() + { + JToolBarHelper::title(JText::_('COM_COMPONENTBUILDER_FTPS'), 'flash'); + JHtmlSidebar::setAction('index.php?option=com_componentbuilder&view=ftps'); + JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields'); + + if ($this->canCreate) + { + JToolBarHelper::addNew('ftp.add'); + } + + // Only load if there are items + if (ComponentbuilderHelper::checkArray($this->items)) + { + if ($this->canEdit) + { + JToolBarHelper::editList('ftp.edit'); + } + + if ($this->canState) + { + JToolBarHelper::publishList('ftps.publish'); + JToolBarHelper::unpublishList('ftps.unpublish'); + JToolBarHelper::archiveList('ftps.archive'); + + if ($this->canDo->get('core.admin')) + { + JToolBarHelper::checkin('ftps.checkin'); + } + } + + // Add a batch button + if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) + { + // Get the toolbar object instance + $bar = JToolBar::getInstance('toolbar'); + // set the batch button name + $title = JText::_('JTOOLBAR_BATCH'); + // Instantiate a new JLayoutFile instance and render the batch button + $layout = new JLayoutFile('joomla.toolbar.batch'); + // add the button to the page + $dhtml = $layout->render(array('title' => $title)); + $bar->appendButton('Custom', $dhtml, 'batch'); + } + + if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) + { + JToolbarHelper::deleteList('', 'ftps.delete', 'JTOOLBAR_EMPTY_TRASH'); + } + elseif ($this->canState && $this->canDelete) + { + JToolbarHelper::trash('ftps.trash'); + } + + if ($this->canDo->get('core.export') && $this->canDo->get('ftp.export')) + { + JToolBarHelper::custom('ftps.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true); + } + } + + if ($this->canDo->get('core.import') && $this->canDo->get('ftp.import')) + { + JToolBarHelper::custom('ftps.importData', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_DATA', false); + } + + // set help url for this view if found + $help_url = ComponentbuilderHelper::getHelpUrl('ftps'); + if (ComponentbuilderHelper::checkString($help_url)) + { + JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); + } + + // add the options comp button + if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) + { + JToolBarHelper::preferences('com_componentbuilder'); + } + + if ($this->canState) + { + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_PUBLISHED'), + 'filter_published', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true) + ); + // only load if batch allowed + if ($this->canBatch) + { + JHtmlBatch_::addListSelection( + JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_STATE'), + 'batch[published]', + JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true) + ); + } + } + + JHtmlSidebar::addFilter( + JText::_('JOPTION_SELECT_ACCESS'), + 'filter_access', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + JHtmlBatch_::addListSelection( + JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS'), + 'batch[access]', + JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text') + ); + } + + // Set Name Selection + $this->nameOptions = $this->getTheNameSelections(); + if ($this->nameOptions) + { + // Name Filter + JHtmlSidebar::addFilter( + '- Select '.JText::_('COM_COMPONENTBUILDER_FTP_NAME_LABEL').' -', + 'filter_name', + JHtml::_('select.options', $this->nameOptions, 'value', 'text', $this->state->get('filter.name')) + ); + + if ($this->canBatch && $this->canCreate && $this->canEdit) + { + // Name Batch Selection + JHtmlBatch_::addListSelection( + '- Keep Original '.JText::_('COM_COMPONENTBUILDER_FTP_NAME_LABEL').' -', + 'batch[name]', + JHtml::_('select.options', $this->nameOptions, 'value', 'text') + ); + } + } + } + + /** + * Method to set up the document properties + * + * @return void + */ + protected function setDocument() + { + $document = JFactory::getDocument(); + $document->setTitle(JText::_('COM_COMPONENTBUILDER_FTPS')); + $document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/ftps.css"); + } + + /** + * Escapes a value for output in a view script. + * + * @param mixed $var The output to escape. + * + * @return mixed The escaped value. + */ + public function escape($var) + { + if(strlen($var) > 50) + { + // use the helper htmlEscape method instead and shorten the string + return ComponentbuilderHelper::htmlEscape($var, $this->_charset, true); + } + // use the helper htmlEscape method instead. + return ComponentbuilderHelper::htmlEscape($var, $this->_charset); + } + + /** + * Returns an array of fields the table can be sorted by + * + * @return array Array containing the field name to sort by as the key and display text as value + */ + protected function getSortFields() + { + return array( + 'a.sorting' => JText::_('JGRID_HEADING_ORDERING'), + 'a.published' => JText::_('JSTATUS'), + 'a.name' => JText::_('COM_COMPONENTBUILDER_FTP_NAME_LABEL'), + 'a.id' => JText::_('JGRID_HEADING_ID') + ); + } + + protected function getTheNameSelections() + { + // Get a db connection. + $db = JFactory::getDbo(); + + // Create a new query object. + $query = $db->getQuery(true); + + // Select the text. + $query->select($db->quoteName('name')); + $query->from($db->quoteName('#__componentbuilder_ftp')); + $query->order($db->quoteName('name') . ' ASC'); + + // Reset the query using our newly populated query object. + $db->setQuery($query); + + $results = $db->loadColumn(); + + if ($results) + { + $results = array_unique($results); + $_filter = array(); + foreach ($results as $name) + { + // Now add the name and its text to the options array + $_filter[] = JHtml::_('select.option', $name, $name); + } + return $_filter; + } + return false; + } +} diff --git a/admin/views/help_document/submitbutton.js b/admin/views/help_document/submitbutton.js index 43fc878f4..b8f8f0aac 100644 --- a/admin/views/help_document/submitbutton.js +++ b/admin/views/help_document/submitbutton.js @@ -10,7 +10,7 @@ /-------------------------------------------------------------------------------------------------------------------------------/ @version @update number 6 of this MVC - @build 18th October, 2016 + @build 17th October, 2016 @created 4th March, 2016 @package Component Builder @subpackage submitbutton.js diff --git a/admin/views/help_document/tmpl/edit.php b/admin/views/help_document/tmpl/edit.php index 623e00438..f16b477a7 100644 --- a/admin/views/help_document/tmpl/edit.php +++ b/admin/views/help_document/tmpl/edit.php @@ -11,7 +11,7 @@ /-------------------------------------------------------------------------------------------------------------------------------/ @version @update number 6 of this MVC - @build 18th October, 2016 + @build 17th October, 2016 @created 4th March, 2016 @package Component Builder @subpackage edit.php @@ -127,21 +127,6 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');