get('lockTags') && $user->gid<=23 && ($view=='tags' || $view=='tag')) || ($user->gid <= 23) && ( $view=='extrafield' || $view=='extrafields' || $view=='extrafieldsgroup' || $view=='extrafieldsgroups' || $view=='user' || ($view=='users' && $task != 'element') || $view=='usergroup' || $view=='usergroups' ) ) { JError::raiseError( 403, JText::_('K2_ALERTNOTAUTH') ); } } else { JLoader::register('K2HelperPermissions', JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'helpers'.DS.'permissions.j16.php'); K2HelperPermissions::checkPermissions(); // Compatibility for gid variable if($user->authorise('core.admin', 'com_k2')){ $user->gid = 1000; } else { $user->gid = 1; } if( ($params->get('lockTags') && !$user->authorise('core.admin', 'com_k2') && ($view=='tags' || $view=='tag')) || (!$user->authorise('core.admin', 'com_k2')) && ( $view=='extrafield' || $view=='extrafields' || $view=='extrafieldsgroup' || $view=='extrafieldsgroups' || $view=='user' || ($view=='users' && $task != 'element') || $view=='usergroup' || $view=='usergroups' ) ) { JError::raiseError( 403, JText::_('K2_ALERTNOTAUTH') ); } } $document = JFactory::getDocument(); if(version_compare(JVERSION,'1.6.0','ge')) { JHtml::_('behavior.framework'); } else { JHTML::_('behavior.mootools'); } // CSS $document->addStyleSheet(JURI::root(true).'/media/k2/assets/css/k2.css?v=2.6.7'); K2HelperHTML::loadjQuery(true, JRequest::getCmd('view') == 'media'); // JS if(K2_JVERSION == '30') { JHtml::_('formbehavior.chosen', 'select'); } $document->addScriptDeclaration('K2JVersion = "'.K2_JVERSION.'";'); $document->addScript(JURI::root(true).'/media/k2/assets/js/k2.js?v=2.6.7&sitepath='.JURI::root(true).'/'); // Container CSS class definition if(K2_JVERSION == '15'){ $k2CSSContainerClass = ' isJ15'; } elseif(K2_JVERSION == '25'){ $k2CSSContainerClass = ' isJ25'; } elseif(K2_JVERSION == '30'){ $k2CSSContainerClass = ' isJ25 isJ30'; } else { $k2CSSContainerClass = ''; } if( $document->getType() != 'raw' && JRequest::getWord('task')!='deleteAttachment' && JRequest::getWord('task')!='connector' && JRequest::getWord('task')!='tag' && JRequest::getWord('task')!='extrafields' && JRequest::getWord('task')!='download' && JRequest::getWord('task')!='saveComment'): ?>
registerTask('saveAndNew', 'save'); $controller->execute(JRequest::getWord('task')); $controller->redirect(); if( $document->getType() != 'raw' && JRequest::getWord('task')!='deleteAttachment' && JRequest::getWord('task')!='connector' && JRequest::getWord('task')!='tag' && JRequest::getWord('task')!='extrafields' && JRequest::getWord('task')!='download' && JRequest::getWord('task')!='saveComment'): ?>
K2 v2.6.7 | Copyright © 2006- JoomlaWorks Ltd.