Beispiel #1
0
 public static function save($params = array())
 {
     $post = JRequest::get('post');
     $post['msc_restrict'] = JRequest::getVar('msc_restrict', null, 'post', 'string', JREQUEST_ALLOWHTML);
     if (oseMscAddon::quickSavePanel('msc_', $post)) {
         $result['success'] = true;
         $result['title'] = JText::_('DONE');
         $result['content'] = JText::_('SAVE_SUCCESSFULLY');
     } else {
         $result['success'] = false;
         $result['title'] = JText::_('ERROR');
         $result['content'] = JText::_('ERROR_IN_SAVING_MSC_PARAMETERS');
     }
     return $result;
 }
 public static function save($params = array())
 {
     $result = array();
     $post = JRequest::get('post');
     if (oseMscAddon::quickSavePanel('mailchimp_', $post)) {
         $result['success'] = true;
         $result['title'] = JText::_('DONE');
         $result['content'] = JText::_('SAVE_SUCCESSFULLY');
     } else {
         $result['success'] = false;
         $result['title'] = JText::_('ERROR');
         $result['content'] = JText::_('ERROR');
     }
     return $result;
 }
 public static function save($params = array())
 {
     $result = array();
     $post = JRequest::get('post');
     if (oseMscAddon::quickSavePanel('jgroup_', $post)) {
         $result['success'] = true;
         $result['title'] = JText::_('DONE');
         $result['content'] = JText::_('SAVE_SUCCESSFULLY');
     } else {
         $result['success'] = false;
         $result['title'] = JText::_('ERROR');
         $result['content'] = JText::_('ERROR_IN_SAVING_JOOMLA_USER_GROUP_PARAMETERS');
     }
     return $result;
 }
 public static function save($params = array())
 {
     $result = array();
     $post = JRequest::get('post');
     $post['jcontent_view_control'] = empty($post['jcontent_view_control']) ? 0 : 1;
     $post['jcontent_create_control'] = empty($post['jcontent_create_control']) ? 0 : 1;
     $post['jcontent_edit_control'] = empty($post['jcontent_edit_control']) ? 0 : 1;
     if (oseMscAddon::quickSavePanel('jcontent_', $post)) {
         $result['success'] = true;
         $result['title'] = JText::_('DONE');
         $result['content'] = JText::_('SAVE_SUCCESSFULLY');
     } else {
         $result['success'] = false;
         $result['title'] = JText::_('ERROR');
         $result['content'] = JText::_('ERROR');
     }
     return $result;
 }
 public static function save($params = array())
 {
     $post = JRequest::get('post');
     if (!isset($post['licseat_contact_send'])) {
         $post['licseat_contact_send'] = 0;
     }
     if (!isset($post['licseat_internal_contact_send'])) {
         $post['licseat_internal_contact_send'] = 0;
     }
     if (!isset($post['licseat_enabled'])) {
         $post['licseat_enabled'] = 0;
     }
     if (oseMscAddon::quickSavePanel('licseat_', $post)) {
         $result['success'] = true;
         $result['title'] = JText::_('Finished');
         $result['content'] = JText::_('Save Successfully!');
     } else {
         $result['success'] = false;
         $result['title'] = JText::_('Error');
         $result['content'] = JText::_('Error in Saving License Parameters');
     }
     return $result;
 }