/[cvs]/nfo/site/htdocs/inc/xmlcp/xmlcp.php.inc
ViewVC logotype

Diff of /nfo/site/htdocs/inc/xmlcp/xmlcp.php.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by rabit, Thu Sep 2 14:24:42 2004 UTC revision 1.3 by rabit, Mon Sep 6 01:02:04 2004 UTC
# Line 10  Line 10 
10  $xmlcp_tagcbfunctions = array();  $xmlcp_tagcbfunctions = array();
11  $xmlcp_cdata = '';  $xmlcp_cdata = '';
12    
13  function xmlcp_registertagcallbacks($tagname, $fn_startelement, $fn_endelement) {  function xmlcp_registertagcallbacks($tagname, $fn_startelement, $fn_endelement = '') {
14    
15  global $xmlcp_tagcbfunctions;  global $xmlcp_tagcbfunctions;
16    
17    if($tagname && $fn_startelement && $fn_endelement) {    if($tagname && $fn_startelement) {
18    
19      $xmlcp_tagcbfunctions[$tagname] = array($fn_startelement, $fn_endelement);      $xmlcp_tagcbfunctions[$tagname] = array($fn_startelement, $fn_endelement);
20    
# Line 55  function xmlcp_xmlp_endelement($h_parser Line 55  function xmlcp_xmlp_endelement($h_parser
55    
56  global $xmlcp_tagcbfunctions;  global $xmlcp_tagcbfunctions;
57    
58    if(isset($xmlcp_tagcbfunctions[$tagname])) echo $xmlcp_tagcbfunctions[$tagname][1]($h_parser, $tagname);    if(isset($xmlcp_tagcbfunctions[$tagname]) && $xmlcp_tagcbfunctions[$tagname][1]) echo $xmlcp_tagcbfunctions[$tagname][1]($h_parser, $tagname);
59    
60  }  }
61    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed