Subversion-Projekte lars-tiefland.ci

Revision

Revision 2049 | Revision 2242 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2049 Revision 2107
Zeile 484... Zeile 484...
484
		$list = $this->list_files($filepath);
484
		$list = $this->list_files($filepath);
485
		if ( ! empty($list))
485
		if ( ! empty($list))
486
		{
486
		{
487
			for ($i = 0, $c = count($list); $i < $c; $i++)
487
			for ($i = 0, $c = count($list); $i < $c; $i++)
488
			{
488
			{
489
				// If we can't delete the item it's probaly a directory,
489
				// If we can't delete the item it's probably a directory,
490
				// so we'll recursively call delete_dir()
490
				// so we'll recursively call delete_dir()
491
				if ( ! preg_match('#/\.\.?$#', $list[$i]) && ! @ftp_delete($this->conn_id, $list[$i]))
491
				if ( ! preg_match('#/\.\.?$#', $list[$i]) && ! @ftp_delete($this->conn_id, $list[$i]))
492
				{
492
				{
493
					$this->delete_dir($filepath.$list[$i]);
493
					$this->delete_dir($filepath.$list[$i]);
494
				}
494
				}