From 5e883170bb05eb9c9ec5a3146840f96d224cb28e Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 9 Apr 2009 00:22:43 +0000 Subject: [PATCH] =?UTF-8?q?1.=20=EA=B0=80=EC=83=81=EC=82=AC=EC=9D=B4?= =?UTF-8?q?=ED=8A=B8=EC=9D=98=20=EA=B5=AC=EB=B6=84=20=EB=B3=80=EC=88=98?= =?UTF-8?q?=EB=AA=85=EC=9D=84=20sid=EC=97=90=EC=84=9C=20vid=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=202.=20rank=5Fcount=20=EC=9C=84=EC=A0=AF?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EA=B7=B8=EB=A3=B9=EC=9D=B4=20=EC=A7=80?= =?UTF-8?q?=EC=A0=95=EB=90=98=EC=A7=80=20=EC=95=8A=EC=95=98=EC=9D=84=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=20=ED=95=B4=EB=8B=B9=20=EA=B0=80=EC=83=81=20?= =?UTF-8?q?=EC=82=AC=EC=9D=B4=ED=8A=B8=EC=9D=98=20=EB=AA=A8=EB=93=A0=20?= =?UTF-8?q?=EA=B7=B8=EB=A3=B9=EC=9D=84=20=EB=8C=80=EC=83=81=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6053 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- .htaccess | 22 +++++++++---------- classes/context/Context.class.php | 21 +++++++++--------- common/js/xml_handler.js | 4 ++-- common/tpl/common_layout.html | 2 +- modules/editor/tpl/js/uploader.js | 2 +- modules/file/file.model.php | 2 +- .../homepage/homepage.admin.controller.php | 8 +++---- .../homepage/tpl/filter/insert_homepage.xml | 4 ++-- modules/homepage/tpl/index.html | 10 ++++----- modules/homepage/tpl/js/homepage.js | 8 +++---- modules/module/lang/en.lang.php | 6 ++--- modules/module/lang/es.lang.php | 6 ++--- modules/module/lang/fr.lang.php | 6 ++--- modules/module/lang/jp.lang.php | 6 ++--- modules/module/lang/ko.lang.php | 6 ++--- modules/module/lang/ru.lang.php | 6 ++--- modules/module/lang/zh-CN.lang.php | 6 ++--- modules/module/lang/zh-TW.lang.php | 6 ++--- modules/module/module.controller.php | 2 +- modules/module/module.model.php | 16 +++++++------- widgets/rank_count/rank_count.class.php | 16 ++++++++++---- 21 files changed, 87 insertions(+), 78 deletions(-) diff --git a/.htaccess b/.htaccess index d1fcecb8c..a65bb32ed 100644 --- a/.htaccess +++ b/.htaccess @@ -36,29 +36,29 @@ RewriteRule ^atom$ ./index.php?module=rss&act=atom [L] RewriteRule ^([a-zA-Z0-9_]+)/rss$ ./index.php?mid=$1&act=rss [L] RewriteRule ^([a-zA-Z0-9_]+)/atom$ ./index.php?mid=$1&act=atom [L] RewriteRule ^([a-zA-Z0-9_]+)/api$ ./index.php?mid=$1&act=api [L] -RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/rss$ ./index.php?sid=$1&mid=$2&act=rss [L] -RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/atom$ ./index.php?sid=$1&mid=$2&act=atom [L] -RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/api$ ./index.php?sid=$1&mid=$2&act=api [L] +RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/rss$ ./index.php?vid=$1&mid=$2&act=rss [L] +RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/atom$ ./index.php?vid=$1&mid=$2&act=atom [L] +RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/api$ ./index.php?vid=$1&mid=$2&act=api [L] # administrator page RewriteRule ^admin/?$ ./index.php?module=admin [L] # document permanent link RewriteRule ^([[:digit:]]+)$ ./index.php?document_srl=$1 [L] -# sid + document permanent link -RewriteRule ^([a-zA-Z0-9_]+)/([[:digit:]]+)$ ./index.php?sid=$1&document_srl=$2 [L] +# vid + document permanent link +RewriteRule ^([a-zA-Z0-9_]+)/([[:digit:]]+)$ ./index.php?vid=$1&document_srl=$2 [L] # mid link RewriteRule ^([a-zA-Z0-9_]+)(/){0,1}$ ./index.php?mid=$1 [L] -# sid + mid link -RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)(/){0,1}$ ./index.php?sid=$1&mid=$2 [L] +# vid + mid link +RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)(/){0,1}$ ./index.php?vid=$1&mid=$2 [L] # mid + document link RewriteRule ^([a-zA-Z0-9_]+)/([[:digit:]]+)$ ./index.php?mid=$1&document_srl=$2 [L] -# sid + mid + document link -RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([[:digit:]]+)$ ./index.php?sid=$1&mid=$2&document_srl=$3 [L] +# vid + mid + document link +RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([[:digit:]]+)$ ./index.php?vid=$1&mid=$2&document_srl=$3 [L] # mid + entry title RewriteRule ^([a-zA-Z0-9_]+)/entry/(.+)$ ./index.php?mid=$1&entry=$2 [L] -# sid + mid + entry title -RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/entry/(.+)$ ./index.php?sid=$1&mid=$2&entry=$3 [L] +# vid + mid + entry title +RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/entry/(.+)$ ./index.php?vid=$1&mid=$2&entry=$3 [L] diff --git a/classes/context/Context.class.php b/classes/context/Context.class.php index 4795e13a6..d5a3b0fbf 100644 --- a/classes/context/Context.class.php +++ b/classes/context/Context.class.php @@ -105,7 +105,7 @@ $site_module_info = $oModuleModel->getDefaultMid(); Context::set('site_module_info', $site_module_info); - if($site_module_info->site_srl && isSiteID($site_module_info->sid)) Context::set('sid', $site_module_info->sid); + if($site_module_info->site_srl && isSiteID($site_module_info->vid)) Context::set('vid', $site_module_info->vid); } // 사용자 설정 언어 타입이 없으면 기본 언어타입으로 지정 @@ -770,13 +770,13 @@ // SiteID 요청시 전처리 if($domain && isSiteID($domain)) { - $sid = $domain; + $vid = $domain; $domain = ''; } // SiteID가 요청되지 않았다면 현재 site_module_info에서 SiteID 판별 - if(!$sid && $site_module_info->domain && isSiteID($site_module_info->domain)) { - $sid = $site_module_info->domain; + if(!$vid && $site_module_info->domain && isSiteID($site_module_info->domain)) { + $vid = $site_module_info->domain; } if(!$domain) { @@ -808,7 +808,7 @@ } $get_vars[$key] = $val; } - unset($get_vars['sid']); + unset($get_vars['vid']); /* member module중의 쪽지함/친구 관리 기능이 communication 모듈로 이전하여 하위 호환성을 위한 act값 변경 */ if($get_vars['act'] == 'dispMemberFriend') $get_vars['act'] = 'dispCommunicationFriend'; @@ -822,9 +822,10 @@ $var_count = count($get_vars); if(!$var_count) { - if($sid) { - if($this->allow_rewrite) $path .= $sid; - else $path .= '?sid='.$sid; + return $path; + if($vid) { + if($this->allow_rewrite) $path .= $vid; + else $path .= '?vid='.$vid; } return $path; } @@ -838,7 +839,7 @@ asort($var_keys); $target = implode('.',$var_keys); - if($sid) $rpath = $path.$sid .'/'; + if($vid) $rpath = $path.$vid .'/'; else $rpath = $path; switch($target) { @@ -854,7 +855,7 @@ } // rewrite 모듈을 사용하지 않고 인자의 값이 2개 이상이거나 rewrite모듈을 위한 인자로 적당하지 않을 경우 - if($sid) $url = 'sid='.$sid; + if($vid) $url = 'vid='.$vid; foreach($get_vars as $key => $val) { if(!isset($val)) continue; if(is_array($val) && count($val)) { diff --git a/common/js/xml_handler.js b/common/js/xml_handler.js index ab2c36587..a10d00b98 100644 --- a/common/js/xml_handler.js +++ b/common/js/xml_handler.js @@ -18,7 +18,7 @@ function exec_xml(module, act, params, callback_func, response_tags, callback_fu } oXml.addParam("module", module); oXml.addParam("act", act); - if(typeof(xeSid)!='undefined') oXml.addParam('sid', xeSid); + if(typeof(xeVid)!='undefined') oXml.addParam('vid', xeVid); if(typeof(response_tags)=="undefined" || response_tags.length<1) response_tags = new Array('error','message'); @@ -430,7 +430,7 @@ $.exec_json = function(action,data,func){ } $.extend(data,{module:action[0],act:action[1]}); - if(typeof(xeSid)!='undefined') $.extend(data,{sid:xeSid}); + if(typeof(xeVid)!='undefined') $.extend(data,{vid:xeVid}); $.ajax({ type:"POST" ,dataType:"json" diff --git a/common/tpl/common_layout.html b/common/tpl/common_layout.html index 956862cdf..459102ae3 100644 --- a/common/tpl/common_layout.html +++ b/common/tpl/common_layout.html @@ -52,7 +52,7 @@