initSession(); // загрузка файла русского языка по умолчанию if($mosConfig_lang == '') { $mosConfig_lang = 'russian'; } include_once ($mosConfig_absolute_path.'/language/'.$mosConfig_lang.'.php'); // get the information about the current user from the sessions table $my = $mainframe->getUser(); // СКОРЕЕ ВСЕГО НЕ НУЖНО обнаружение первого посещения //$mainframe->detect(); $gid = intval($my->gid); // в зависимости от использования автоперекодировки в UTF-8 if($utf_conv){ header("Content-type: text/html; charset=utf-8"); header ("Cache-Control: no-cache, must-revalidate "); ob_start(); }else{ header("Content-type: text/html; "._ISO); header ("Cache-Control: no-cache, must-revalidate "); } // проверяем, какой файл необходимо подключить, данные берутся из пришедшего GET запроса if(file_exists($mosConfig_absolute_path . "/components/$option/$commponent.ajax.php")) { include_once ($mosConfig_absolute_path . "/components/$option/$commponent.ajax.php"); } else { die('error-1'); } if($utf_conv){ $_ajax_body = ob_get_contents(); ob_end_clean(); // если активированна автоматическая перекодировка в юникод echo joostina_api::convert($_ajax_body,1); // выводим перекодированный текст } ?>