mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1489 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5f91108021
commit
fb52f9fa49
4 changed files with 39 additions and 8 deletions
|
|
@ -487,11 +487,8 @@
|
|||
$url_list[] = sprintf("%s=%s",$key, $val);
|
||||
}
|
||||
|
||||
preg_match("/([a-zA-Z\_]+)\.php/i", $_SERVER['PHP_SELF'], $match);
|
||||
$filename = $match[0];
|
||||
if($filename == 'index.php') $filename = '';
|
||||
|
||||
return './'.$filename.'?'.htmlspecialchars(implode('&', $url_list));
|
||||
$path = str_replace('index.php','',$_SERVER['SCRIPT_NAME']);
|
||||
return sprintf('%s?%s', $path, htmlspecialchars(implode('&',$url_list)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -56,8 +56,11 @@
|
|||
// 최종 결과를 common_layout에 넣어버림
|
||||
Context::set('zbxe_final_content', $zbxe_final_content);
|
||||
$output = $oTemplate->compile('./common/tpl', 'common_layout');
|
||||
|
||||
} else {
|
||||
|
||||
$output = $content;
|
||||
|
||||
}
|
||||
|
||||
// 애드온 실행
|
||||
|
|
@ -70,7 +73,21 @@
|
|||
$this->_debugOutput();
|
||||
|
||||
// 컨텐츠 출력
|
||||
print trim($output);
|
||||
$this->display($output);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 최종 결과물의 출력
|
||||
**/
|
||||
function display($content) {
|
||||
if(Context::getResponseMethod()=="XMLRPC") {
|
||||
print $content;
|
||||
return;
|
||||
}
|
||||
|
||||
$path = str_replace('index.php','',$_SERVER['SCRIPT_NAME']);
|
||||
|
||||
print preg_replace('!(href|src)=("|\'){0,1}\.\/([a-zA-Z0-9\_^\/]+)\/!is', '\\1=\\2'.$path.'$3/', $content);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue