mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 16:22:41 +09:00
캐시를 지우는 외부 툴 스크립트 추가. 파일을 핸들링할때 경로를 제대로 찾아서 처리할 수 있도록 코드 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4331 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5d19990111
commit
bdc194ab1d
41 changed files with 246 additions and 95 deletions
|
|
@ -472,8 +472,13 @@
|
|||
* 현재 요청받은 스크립트 경로를 return
|
||||
**/
|
||||
function getScriptPath() {
|
||||
$url = $_SERVER['PHP_SELF']?$_SERVER['PHP_SELF']:($_SERVER['REQUEST_URI']?$_SERVER['REQUEST_URI']:$_SERVER['URL']);
|
||||
return preg_replace('/index.php/i','',$url);
|
||||
static $url = null;
|
||||
if($url === null) {
|
||||
$document_root = str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']);
|
||||
$file = str_replace('\\','/',__FILE__);
|
||||
$url = preg_replace('/index.php/i','',str_replace('config/func.inc.php','',str_replace($document_root, '', $file)));
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue