Minahito
minah****@users*****
2006年 11月 7日 (火) 15:36:19 JST
Index: xoops2jp/html/modules/stdCache/blocks/cacheclear.php diff -u xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.1.2.2 xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.1.2.3 --- xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.1.2.2 Sat Oct 14 13:53:05 2006 +++ xoops2jp/html/modules/stdCache/blocks/cacheclear.php Tue Nov 7 15:36:19 2006 @@ -28,25 +28,4 @@ } } -function Stdcache_cacheclear_show() -{ - $root =& XCube_Root::getSingleton(); - - if (!$root->mController->isEnableCacheFeature()) { - return false; - } - - if($handler = opendir(XOOPS_CACHE_PATH)) { - while(($file = readdir($handler)) !== false) { - if(preg_match("/\w+\.cache\.html$/", $file, $matches)) { - @unlink(XOOPS_CACHE_PATH . "/" . $matches[0]); - } - } - closedir($handler); - } - - $block['dmy'] = true; - return $block; -} - ?> \ No newline at end of file