[Phpfreechat-svn] SF.net SVN: phpfreechat: [507] trunk/src
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-05-26 14:32:21
|
Revision: 507 Author: kerphi Date: 2006-05-26 07:32:01 -0700 (Fri, 26 May 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=507&view=rev Log Message: ----------- Change the directory and file creation rights to 0700 (thanks to Thomas Lu?\195?\159nig for the notice) Modified Paths: -------------- branches/0.x/src/pfctools.php branches/0.x/src/phpfreechatcontainerfile.class.php trunk/src/containers/file.class.php trunk/src/pfctools.php Modified: branches/0.x/src/pfctools.php =================================================================== --- branches/0.x/src/pfctools.php 2006-05-25 11:47:21 UTC (rev 506) +++ branches/0.x/src/pfctools.php 2006-05-26 14:32:01 UTC (rev 507) @@ -103,7 +103,7 @@ } -function mkdir_r($path, $mode = 0777) +function mkdir_r($path, $mode = 0700) { // This function creates the specified directory using mkdir(). Note // that the recursive feature on mkdir() is broken with PHP 5.0.4 for @@ -128,7 +128,7 @@ * @param string $dest Destination path * @return bool Returns TRUE on success, FALSE on failure */ -function copyr($source, $dest, $mode = 0777) +function copyr($source, $dest, $mode = 0700) { // Simple copy for a file if (is_file($source)) { Modified: branches/0.x/src/phpfreechatcontainerfile.class.php =================================================================== --- branches/0.x/src/phpfreechatcontainerfile.class.php 2006-05-25 11:47:21 UTC (rev 506) +++ branches/0.x/src/phpfreechatcontainerfile.class.php 2006-05-26 14:32:01 UTC (rev 507) @@ -78,7 +78,7 @@ if ($ok && !file_exists($c->container_cfg_data_file)) { @touch($c->container_cfg_data_file); - @chmod($c->container_cfg_data_file, 0777); + @chmod($c->container_cfg_data_file, 0700); } if ($ok && !file_exists($c->container_cfg_data_file)) { @@ -113,7 +113,7 @@ if ($ok && !file_exists($c->container_cfg_index_file)) { @touch($c->container_cfg_index_file); - @chmod($c->container_cfg_index_file, 0777); + @chmod($c->container_cfg_index_file, 0700); } if ($ok && !file_exists($c->container_cfg_index_file)) { @@ -168,7 +168,7 @@ $my_filename = $c->container_cfg_nickname_dir."/".$this->_encode($c->nick); if (file_exists($my_filename)) $there = true; touch($my_filename); - @chmod($my_filename, 0777); + @chmod($my_filename, 0700); return $there; } Modified: trunk/src/containers/file.class.php =================================================================== --- trunk/src/containers/file.class.php 2006-05-25 11:47:21 UTC (rev 506) +++ trunk/src/containers/file.class.php 2006-05-26 14:32:01 UTC (rev 507) @@ -190,7 +190,7 @@ $nick_filename = $nick_dir."/".$this->_encode($nick); if (file_exists($nick_filename)) $there = true; @touch($nick_filename); - @chmod($nick_filename, 0777); + @chmod($nick_filename, 0700); // append the nickname to the cache list $_chan = ($chan == NULL) ? "SERVER" : $chan; Modified: trunk/src/pfctools.php =================================================================== --- trunk/src/pfctools.php 2006-05-25 11:47:21 UTC (rev 506) +++ trunk/src/pfctools.php 2006-05-26 14:32:01 UTC (rev 507) @@ -103,7 +103,7 @@ } -function mkdir_r($path, $mode = 0777) +function mkdir_r($path, $mode = 0700) { // This function creates the specified directory using mkdir(). Note // that the recursive feature on mkdir() is broken with PHP 5.0.4 for @@ -138,7 +138,7 @@ * @param string $dest Destination path * @return bool Returns TRUE on success, FALSE on failure */ -function copyr($source, $dest, $mode = 0777) +function copyr($source, $dest, $mode = 0700) { // Simple copy for a file if (is_file($source)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |