git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4906 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2008-11-19 08:41:45 +00:00
parent ab71c6d468
commit beabe56505
6 changed files with 13 additions and 4 deletions

View file

@ -1224,5 +1224,11 @@
return false;
}
function getFixUrl($url){
if(eregi("(http|https):\/\/",$url)) return $url;
if(ereg("^/",$url)) return $url;
return dirname($_SERVER['PHP_SELF']) . "/" . $url;
}
}
?>

View file

@ -166,6 +166,7 @@
// 검색과 정렬을 위한 변수 설정
$args->search_target = Context::get('search_target'); ///< 검색 대상 (title, contents...)
$args->search_keyword = Context::get('search_keyword'); ///< 검색어
if($this->module_info->use_category=='Y') $args->category_srl = Context::get('category'); ///< 카테고리 사용시 선택된 카테고리
$args->sort_index = Context::get('sort_index');

View file

@ -107,7 +107,7 @@ function doChangeCategory() {
var sel_obj = xGetElementById("board_category");
var sel_idx = sel_obj.selectedIndex;
var category_srl = sel_obj.options[sel_idx].value;
location.href = current_url.setQuery('category',category_srl);
location.href = decodeURI(current_url).setQuery('category',category_srl);
}
/* 스크랩 */

View file

@ -107,7 +107,7 @@ function doChangeCategory() {
var sel_obj = xGetElementById("board_category");
var sel_idx = sel_obj.selectedIndex;
var category_srl = sel_obj.options[sel_idx].value;
location.href = current_url.setQuery('category',category_srl);
location.href = decodeURI(current_url).setQuery('category',category_srl);
}
/* 스크랩 */

View file

@ -107,7 +107,7 @@ function doChangeCategory() {
var sel_obj = xGetElementById("board_category");
var sel_idx = sel_obj.selectedIndex;
var category_srl = sel_obj.options[sel_idx].value;
location.href = current_url.setQuery('category',category_srl);
location.href = decodeURI(current_url).setQuery('category',category_srl);
}
/* 스크랩 */

View file

@ -29,6 +29,7 @@
$config->is_default = $dummy->is_default;
$config->module_srl = $dummy->module_srl;
$config->browser_title = $dummy->browser_title;
if($config->logo_image) $config->logo_image = context::getFixUrl($config->logo_image);
}
return $config;
}
@ -505,7 +506,8 @@
if(!is_dir($path)) return sprintf("%s%s%s", Context::getRequestUri(), $this->module_path, 'tpl/images/blank_photo.gif');
$filename = sprintf('%s/%d.jpg', $path, $module_srl);
if(!file_exists($filename)) return sprintf("%s%s%s", Context::getRequestUri(), $this->module_path, 'tpl/images/blank_photo.gif');
return Context::getRequestUri().$filename."?rnd=".filemtime($filename);
$src = Context::getRequestUri().$filename."?rnd=".filemtime($filename);
return $src;
}
/**