コード例 #1
0
ファイル: cache.mod.php プロジェクト: pf5512/phpstudy
	function clearAll()
	{
		$this->CheckAdminPrivs('cache');
		include(LIB_PATH.'io.han.php');
		$IO=new IoHandler();
		@$IO->ClearDir(CACHE_PATH);
		@$IO->ClearDir(ROOT_PATH . '/uc_client/data/cache/');
		
		$this->DatabaseHandler->Query("DELETE FROM ".TABLE_PREFIX.'system_failedlogins', 'UNBUFFERED');
		
		$this->Messager("缓存已清空",null);
	}
コード例 #2
0
ファイル: cache.func.php プロジェクト: pf5512/phpstudy
function cacheclear($handle=false)
{
	if(true === $handle) {
		static $sCacheIoHandler = null;
		if(is_null($sCacheIoHandler)) {
			include_once(LIB_PATH . 'io.han.php');
			$sCacheIoHandler = new IoHandler();
		}
		return @$sCacheIoHandler->ClearDir(CACHE_PATH);
	}
	return true;
}
コード例 #3
0
ファイル: tttuangou.mod.php プロジェクト: pf5512/phpstudy
	function __clear_upload_image()
	{
				$load = new Load();
		$load->lib('io');
		IoHandler::ClearDir(UPLOAD_PATH);
	}