[Phpfreechat-svn] SF.net SVN: phpfreechat: [759] trunk/src/pfcglobalconfig.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-09-13 07:09:20
|
Revision: 759 http://svn.sourceforge.net/phpfreechat/?rev=759&view=rev Author: kerphi Date: 2006-09-13 00:09:16 -0700 (Wed, 13 Sep 2006) Log Message: ----------- [en] Remove the rm_r and copy_r verification because since refactoring I do not copy full directories anymore. [fr] Retire le teste de fonctionnement de rm_r et copy_r car depuis le refactoring, je ne copie plus de repertoires entiers. Modified Paths: -------------- trunk/src/pfcglobalconfig.class.php Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-09-12 16:53:44 UTC (rev 758) +++ trunk/src/pfcglobalconfig.class.php 2006-09-13 07:09:16 UTC (rev 759) @@ -288,43 +288,6 @@ $this->errors = array_merge($this->errors, @test_writable_dir($this->data_private_path, "data_private_path")); // $this->errors = array_merge($this->errors, @install_dir($this->jspath, $this->data_public_path."/javascript")); $this->errors = array_merge($this->errors, @test_writable_dir($this->data_private_path."/cache", "data_private_path/cache")); - - // check the copy_r and rm_r function works - if (count($this->errors) == 0) - { - $copy_r_ok = true; - $dir1 = $this->data_private_path."/copy_r1"; - $file1 = $dir1."/dummy"; - $dir2 = $this->data_private_path."/copy_r2"; - $file2 = $dir2."/dummy"; - // create a dummy directory - @mkdir($dir1); - // check the directory exists - if (!file_exists($dir1) || !is_dir($dir1)) $copy_r_ok = false; - // create a dummy file - @touch($file1); - // check the file exists - if (!file_exists($file1)) $copy_r_ok = false; - // copy_r the dummy dir - @copy_r($dir1,$dir2); - // check the directory exists - if (!file_exists($dir2) || !is_dir($dir2)) $copy_r_ok = false; - // check the file exists - if (!file_exists($file2)) $copy_r_ok = false; - if (!$copy_r_ok) - $this->errors[] = _pfc("Recursive copy doesn't works"); - - // try to remove recursively the directory - $rm_r_ok = true; - @rm_r($dir2); - @rm_r($dir1); - // check the directory doesn't exists - if (file_exists($dir1) || file_exists($dir2)) $rm_r_ok = false; - // check the file doesn't exists - if (file_exists($file1) || file_exists($file2)) $rm_r_ok = false; - if (!$copy_r_ok) - $this->errors[] = _pfc("Recursive remove doesn't works"); - } // --- // test xajax lib existance This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |