* @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html * * Websites: http://www.joomlashine.com * Technical Support: Feedback - http://www.joomlashine.com/contact-us/get-support.html */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); if (!class_exists('JSNMobilizeHelper')) { require_once JPATH_ROOT . '/administrator/components/com_mobilize/helpers/mobilize.php'; } $isloaded = JSNMobilizeHelper::checkVMVersion(); if ($isloaded != true) { if (!class_exists('shopFunctionsF')) { require JPATH_VM_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php'; } $comUserOption = shopfunctionsF::getComUserOption(); } if (empty($this->url)) { $uri = JFactory::getURI(); $url = $uri->toString(array('path', 'query', 'fragment')); } else { $url = $this->url; } $user = JFactory::getUser(); if (!isset($this->show)) { $this->show = true; } if ($this->show and $user->id == 0) { JHtml::_('behavior.formvalidation'); JHTML::_('behavior.modal'); //Extra login stuff, systems like openId and plugins HERE
function lUser() { $_groupList = $this->_model->getGroupList(); if (!is_array($_groupList)) { $this->_lists['gid'] = '<input type="hidden" name="gid" value="' . $this->_userDetails->JUser->get('gid') . '" /><strong>' . JText::_($_groupList) . '</strong>'; } else { $this->_lists['gid'] = JHTML::_('select.genericlist', $_groupList, 'gid', 'size="10"', 'value', 'text', $this->_userDetails->JUser->get('gid')); } if (!class_exists('shopFunctionsF')) { require JPATH_VM_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php'; } $comUserOption = shopfunctionsF::getComUserOption(); $this->_lists['canBlock'] = $this->_currentUser->authorize($comUserOption, 'block user') && $this->_model->getId() != $this->_cuid; // Can't block myself TODO I broke that, please retest if it is working again $this->_lists['canSetMailopt'] = $this->_currentUser->authorize('workflow', 'email_events'); $this->_lists['block'] = JHTML::_('select.booleanlist', 'block', 'class="inputbox"', $this->_userDetails->JUser->get('block'), 'COM_VIRTUEMART_YES', 'COM_VIRTUEMART_NO'); $this->_lists['sendEmail'] = JHTML::_('select.booleanlist', 'sendEmail', 'class="inputbox"', $this->_userDetails->JUser->get('sendEmail'), 'COM_VIRTUEMART_YES', 'COM_VIRTUEMART_NO'); $this->_lists['params'] = $this->_userDetails->JUser->getParameters(true); $this->_lists['custnumber'] = $this->_model->getCustomerNumberById($this->_model->getId()); //TODO I do not understand for what we have that by Max. if ($this->_model->getId() < 1) { $this->_lists['register_new'] = 1; } else { $this->_lists['register_new'] = 0; } }