Warning: xml_parse(): 17 is not a valid XML Parser resource in /admincp/journalupgrade2.php on line 99
print_form_header("journalupgrade" . $upgradingto . ".php", 'stepthree'); print_table_header("vB Journal Upgrade: " . $versions[$currentversion-1] ." to " . $versions[$nextversion-1] . "(Step 2/3)"); require_once('./includes/adminfunctions_template.php'); if (!($xml = file_read('./'.$admincpdir.'/vbj_templates_upgrade' . $upgradingto . '.xml'))) { print_description_row("<b>Can Not Find Journal Template File</b>(vbj_templates_upgrade" . $upgradingto . ".xml)"); } else { $intemplate = 0; $counter = 0; $curtag = ''; $arr = array(); $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); xml_set_element_handler($parser, 'xml_parse_style_otag', 'xml_parse_style_ctag'); xml_set_character_data_handler($parser, 'xml_parse_style_cdata'); xml_parser_free($parser); /* if (!@xml_parse($parser, $xml)) { print_description_row("<b>Can Not Parse Journal Template File</b>(vbj_templates_upgrade" . $upgradingto . ".xml)"); } */ xml_parse($parser, $xml); require_once('./includes/functions_xml.php'); foreach($arr AS $title => $template) { $title = addslashes($title); $template['template'] = addslashes(xml_unescape_cdata($template['template'])); $template['username'] = addslashes(xml_unescape_cdata($template['username'])); print_r($template); if ($template['templatetype'] != 'template') { // template is a special template $querybits[] = "($styleid, '$template[templatetype]', '$title', '$template[template]', '', $template[dateline], '$template[username]', '" . addslashes($template['version']) . "')"; } else { // template is a standard template $querybits[] = "($styleid, '$template[templatetype]', '$title', '" . addslashes(compile_template(stripslashes($template['template']))) . "', '$template[template]', $template[dateline], '$template[username]', '" . addslashes($template['version']) . "')"; } } } print_submit_row("Continue on to Step 3 of 3", 0);