check_parameters(); if (eregi("(adm.xml)|(users.xml)", $checked['xml']) || eregi("adm", $checked['xsl']) || isset($xmlSave)) { auth_check_login(); } $xmlContent = BVSDocXml("root", $checked['xml']); if (isset($_REQUEST['debug'])) { debug($_REQUEST['debug']); } if (isset($xslSave)) { $xslSave = "../" . $checked['xslSave']; $sucessWriteXml = xmlWrite($xmlContent, $xslSave, $checked['xmlSave']); if ($sucessWriteXml != '' && $checked['page'] != 'users') { // generate html htmlWrite($sucessWriteXml); // generate ini iniWrite($sucessWriteXml); if ($checked['page'] == 'collection' || $checked['page'] == 'topic') { // generate metaiah define xml defineMetaIAHWrite(); } } if (isset($xmlT)) { if ($xmlT == "saved") { $xmlContent = BVSDocXml("root", $checked['xmlSave']); } } } $xslTransform = normalizePath($checked['xsl'], "SITE_PATH"); if ($debug == "XSL") { die($xslContent); }
$xmlContent = BVSDocXml("root", $checked['xml']); if (isset($_REQUEST['debug'])) { debug($_REQUEST['debug']); } $xsl_params = array(); if (isset($checked['portal'])) { $xsl_params['portal'] = $checked['portal']; } if (isset($xslSave)) { $xslSave = "../" . $checked['xslSave']; $sucessWriteXml = xmlWrite($xmlContent, $xslSave, $checked['xmlSave'], $xsl_params); if ($sucessWriteXml != '' && $checked['page'] != 'users') { // generate html htmlWrite($sucessWriteXml, $xsl_params); // generate ini iniWrite($sucessWriteXml, $xsl_params); if ($checked['page'] == 'collection' || $checked['page'] == 'topic') { // generate metaiah define xml defineMetaIAHWrite(); } } if (isset($xmlT)) { if ($xmlT == "saved") { $xmlContent = BVSDocXml("root", $checked['xmlSave']); } } } $xslTransform = SITE_PATH . $checked['xsl']; if ($debug == "XSL") { die($xslContent); }