Esempio n. 1
0
 /**
  * Changes the content language
  *
  */
 function changeContentLanguage()
 {
     if ($this->request('i')) {
         $lngid = (int) $this->request('i');
         if (rad_lang::changeContentLanguage($lngid)) {
             $lng = rad_lang::getLangByID($lngid);
             echo 'RADCHLangs.changeContentResult(1,' . $lng->lng_id . ',"' . $lng->lng_code . '");';
         } else {
             echo 'RADCHLangs.changeContentResult(0);';
         }
     } else {
         $this->securityHoleAlert(__FILE__, __LINE__, $this->getClassName());
     }
 }