Exemplo n.º 1
0
 /**
  * Sets Template order
  * @param $get $_GET (optional)
  * @access public
  * @author Tomasz Iwanow aka TomaszBG - microvision@gmail.com
  * @return void
  */
 function setTemplateOrder($get = array())
 {
     if (count($get) > 0) {
         if (isset($get['templateOrder'])) {
             amSessionRegister(AM_SESSION_CURRENT_TEMPLATE_ORDER);
             amSetSessionVariable(AM_SESSION_CURRENT_TEMPLATE_ORDER, $get['templateOrder']);
             $this->strTemplateOrder = $get['templateOrder'];
         }
     } else {
         $templateOrder = amGetSesssionVariable(AM_SESSION_CURRENT_TEMPLATE_ORDER);
         if (false !== $templateOrder) {
             $this->strTemplateOrder = $templateOrder;
         } else {
             $this->strTemplateOrder = AM_DEFAULT_TEMPLATE_ORDER;
         }
     }
 }
 /**
  * Sets the interface language
  * @param $get $_GET (optional)
  * @access public
  * @author Sam West aka Nimmit - osc@kangaroopartners.com
  * @return void
  */
 function setInterfaceLanguage($get = array())
 {
     // setting new interface language
     if (count($get) > 0) {
         if (is_numeric($get['language_id'])) {
             amSessionRegister(AM_SESSION_CURRENT_LANG_VAR_NAME);
             amSetSessionVariable(AM_SESSION_CURRENT_LANG_VAR_NAME, $get['language_id']);
             $this->intLanguageId = $get['language_id'];
         }
     } else {
         $langId = amGetSesssionVariable(AM_SESSION_CURRENT_LANG_VAR_NAME);
         if (false !== $langId) {
             $this->intLanguageId = $langId;
         } else {
             $this->intLanguageId = AM_DEFAULT_LANGUAGE_ID;
         }
     }
 }