mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
언어선택 지원하는 언어코드만 적용하게 수정, 그외 형식적인 것들 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6398 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cc2888132a
commit
1a4366aff8
3 changed files with 27 additions and 5 deletions
|
|
@ -12,6 +12,7 @@
|
|||
var $upperUrl = NULL;
|
||||
var $nextUrl = NULL;
|
||||
var $prevUrl = NULL;
|
||||
var $etcBtn = NULL;
|
||||
|
||||
// 메뉴 네비게이션을 위한 변수
|
||||
var $childs = null;
|
||||
|
|
@ -62,8 +63,9 @@
|
|||
// 모바일 언어설정 로드(쿠키가 안되어 생각해낸 방법...-캐시파일 재생성을 클릭하면 초기화된다..)
|
||||
$this->lang = FileHandler::readFile('./files/cache/addons/mobile/setLangType/personal_settings/'.md5(trim($_SERVER['HTTP_USER_AGENT']).trim($_SERVER['HTTP_PHONE_NUMBER']).trim($_SERVER['HTTP_HTTP_PHONE_NUMBER'])).'.php');
|
||||
if($this->lang) {
|
||||
$lang_supported = Context::get('lang_supported');
|
||||
$this->lang = str_replace(array('<?php /**','**/ ?>'),array('',''),$this->lang);
|
||||
Context::setLangType($this->lang);
|
||||
if(isset($lang_supported[$this->lang])) Context::setLangType($this->lang);
|
||||
}
|
||||
Context::loadLang(_XE_PATH_.'addons/mobile/lang');
|
||||
|
||||
|
|
@ -117,7 +119,9 @@
|
|||
* 쿠키가 안되기 때문에 휴대전화마다 고유한 파일로 언어설정을 저장하는 파일 생성
|
||||
**/
|
||||
function setLangType() {
|
||||
if($this->lang) {
|
||||
$lang_supported = Context::get('lang_supported');
|
||||
// 언어 변수가 있는지 확인하고 변수가 유효한지 확인
|
||||
if($this->lang && isset($lang_supported[$this->lang])) {
|
||||
$langbuff = FileHandler::readFile('./files/cache/addons/mobile/setLangType/personal_settings/'.md5(trim($_SERVER['HTTP_USER_AGENT']).trim($_SERVER['HTTP_PHONE_NUMBER']).trim($_SERVER['HTTP_HTTP_PHONE_NUMBER'])).'.php');
|
||||
if($langbuff) FileHandler::removeFile('./files/cache/addons/mobile/setLangType/personal_settings/'.md5(trim($_SERVER['HTTP_USER_AGENT']).trim($_SERVER['HTTP_PHONE_NUMBER']).trim($_SERVER['HTTP_HTTP_PHONE_NUMBER'])).'.php');
|
||||
$langbuff = '<?php /**'.$this->lang.'**/ ?>';
|
||||
|
|
@ -400,6 +404,16 @@
|
|||
$this->nextUrl->text = $text;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 다음, 이전, 상위 이외에 기타 버튼 지정
|
||||
**/
|
||||
function setEtcBtn($url, $text) {
|
||||
if(!$url) $url = '#';
|
||||
$etc['url'] = $url;
|
||||
$etc['text'] = htmlspecialchars($text);
|
||||
$this->etcBtn[] = $etc;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief display
|
||||
**/
|
||||
|
|
@ -408,7 +422,7 @@
|
|||
$this->setHomeUrl(getUrl(), Context::getLang('cmd_go_home'));
|
||||
|
||||
// 제목 지정
|
||||
$this->setTitle(Context::getBrowserTitle());
|
||||
if(!$this->title) $this->setTitle(Context::getBrowserTitle());
|
||||
|
||||
ob_start();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue