[Phpfreechat-svn] SF.net SVN: phpfreechat: [847] trunk/src/containers/file.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-10-29 10:33:57
|
Revision: 847 http://svn.sourceforge.net/phpfreechat/?rev=847&view=rev Author: kerphi Date: 2006-10-29 02:33:50 -0800 (Sun, 29 Oct 2006) Log Message: ----------- add traces to help debugging Modified Paths: -------------- trunk/src/containers/file.class.php Modified: trunk/src/containers/file.class.php =================================================================== --- trunk/src/containers/file.class.php 2006-10-28 17:03:31 UTC (rev 846) +++ trunk/src/containers/file.class.php 2006-10-29 10:33:50 UTC (rev 847) @@ -74,8 +74,12 @@ function setMeta($group, $subgroup, $leaf, $leafvalue = NULL) { + $c =& $this->c; + + if ($c->debug) + file_put_contents("/tmp/debug", "\nsetMeta(".$group.",".$subgroup.",".$leaf.",".$leafvalue.")", FILE_APPEND); + // create directories - $c =& $this->c; $dir_base = $c->container_cfg_server_dir; $dir = $dir_base.'/'.$group.'/'.$subgroup; if (!is_dir($dir)) mkdir_r($dir); @@ -107,11 +111,14 @@ function getMeta($group, $subgroup = null, $leaf = null, $withleafvalue = false) { + $c =& $this->c; + if ($c->debug) + file_put_contents("/tmp/debug", "\ngetMeta(".$group.",".$subgroup.",".$leaf.",".$withleafvalue.")", FILE_APPEND); + // read data from metadata file $ret = array(); $ret["timestamp"] = array(); $ret["value"] = array(); - $c =& $this->c; $dir_base = $c->container_cfg_server_dir; $dir = $dir_base.'/'.$group; @@ -163,6 +170,9 @@ function rmMeta($group, $subgroup = null, $leaf = null) { $c =& $this->c; + if ($c->debug) + file_put_contents("/tmp/debug", "\nrmMeta(".$group.",".$subgroup.",".$leaf.")", FILE_APPEND); + $dir = $c->container_cfg_server_dir; if ($group == NULL) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |