mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 07:09:56 +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
|
|
@ -443,7 +443,7 @@ class HTTPRetriever {
|
|||
|
||||
if (time()-filemtime($filename)>$this->caching) {
|
||||
$this->progress(HRP_DEBUG,"Page in cache is expired");
|
||||
@unlink($filename);
|
||||
FileHandler::removeFile($filename);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -341,7 +341,7 @@ function curl_setopt($ch,$option,$value) {
|
|||
}
|
||||
fclose($fp);
|
||||
// if a temporary file was previously created, unlink it
|
||||
if ($settings["upload-file"]["value"] && file_exists($settings["upload-file"]["value"])) unlink($settings["upload-file"]["value"]);
|
||||
if ($settings["upload-file"]["value"] && file_exists($settings["upload-file"]["value"]))FileHandler::removeFile($settings["upload-file"]["value"]);
|
||||
|
||||
// set the new upload-file filename
|
||||
$settings["upload-file"]["value"] = $tmpfilename;
|
||||
|
|
@ -581,7 +581,7 @@ function curl_close($ch) {
|
|||
$settings = &$opt["settings"];
|
||||
// if the user used CURLOPT_INFILE to specify a file to upload, remove the
|
||||
// temporary file created for the CURL binary
|
||||
if ($settings["upload-file"]["value"] && file_exists($settings["upload-file"]["value"])) unlink($settings["upload-file"]["value"]);
|
||||
if ($settings["upload-file"]["value"] && file_exists($settings["upload-file"]["value"]))FileHandler::removeFile($settings["upload-file"]["value"]);
|
||||
}
|
||||
|
||||
unset($GLOBALS["_CURLEXT_OPT"][$ch]);
|
||||
|
|
@ -634,4 +634,4 @@ function curl_version() {
|
|||
}
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -399,7 +399,7 @@ function curl_close($ch) {
|
|||
$settings = &$opt["settings"];
|
||||
// if the user used CURLOPT_INFILE to specify a file to upload, remove the
|
||||
// temporary file created for the CURL binary
|
||||
if ($settings["upload-file"]["value"] && file_exists($settings["upload-file"]["value"])) unlink($settings["upload-file"]["value"]);
|
||||
if ($settings["upload-file"]["value"] && file_exists($settings["upload-file"]["value"]))FileHandler::removeFile($settings["upload-file"]["value"]);
|
||||
}
|
||||
|
||||
unset($GLOBALS["_CURLNAT_OPT"][$ch]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue