[Comoblog-commit] comoblog/admin/include modules.inc.php, 1.5, 1.6 xml2array.inc.php, 1.1.1.1, 1.2
Status: Inactive
Brought to you by:
markwallis
|
From: iamdecal <iam...@us...> - 2006-11-17 00:50:53
|
Update of /cvsroot/comoblog/comoblog/admin/include In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv29462/admin/include Modified Files: modules.inc.php xml2array.inc.php Log Message: Working version of captchas. not as feature complete as id like, but it works on the current version think we should sort out a may sort out a mini release? if so it needs add_comment.php list_comments.php templates/add_comment.tpl.htm templates/list_comments.tpl.htm captcha.php img/ttf/REVELMED.TTF and a bit of tidying of captcha.php tested on two systems, but i cant garentee it for everywhere Index: xml2array.inc.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/include/xml2array.inc.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- xml2array.inc.php 16 Aug 2005 05:49:45 -0000 1.1.1.1 +++ xml2array.inc.php 17 Nov 2006 00:50:46 -0000 1.2 @@ -53,16 +53,20 @@ } function GetXMLTree($xmlloc){ + error_log("checking this exists" . $xmlloc); if (file_exists($xmlloc)){ + error_log("it does" . $xmlloc); $data = implode('', file($xmlloc)); - } else { + } else { + error_log("it doesnt " . $xmlloc); $fp = fopen($xmlloc,'r'); while(!feof($fp)){ - $data = $data . fread($fp, 1024); - } - + error_log("reading file " . $xmlloc); + + $data = $data . fread($fp, 1024); + } fclose($fp); - } + } $parser = xml_parser_create('ISO-8859-1'); xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); Index: modules.inc.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/include/modules.inc.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- modules.inc.php 24 Nov 2005 05:45:39 -0000 1.5 +++ modules.inc.php 17 Nov 2006 00:50:46 -0000 1.6 @@ -46,7 +46,7 @@ function module_install ($mod_name) { $install_file = CFG_BASE_PATH.'/modules/'.$mod_name.'/install/'.$mod_name.'.xml'; - + error_log("reading file" . $install_file); // parse content of xml install file $xmlparse = &new ParseXML; $xml = $xmlparse->GetXMLTree($install_file); |