ordendlicher abbruch bei fehlenden xml file
git-svn-id: svn://svn.cccv.de/engel-system@6 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
f315d1de76
commit
1c8b0b3784
|
@ -58,9 +58,8 @@ else
|
||||||
|
|
||||||
|
|
||||||
//readXMLfile("xml.php.xml");
|
//readXMLfile("xml.php.xml");
|
||||||
readXMLfile("/tmp/engelXML");
|
if( readXMLfile("/tmp/engelXML") == 0)
|
||||||
|
{
|
||||||
|
|
||||||
/*
|
/*
|
||||||
echo "<pre><br>";
|
echo "<pre><br>";
|
||||||
echo $XMLmain->name;
|
echo $XMLmain->name;
|
||||||
|
@ -442,6 +441,7 @@ echo "<form action=\"dbUpdateFromXLS.php\">\n";
|
||||||
echo "\t<input type=\"submit\" name=\"UpdateALL\" value=\"now\">\n";
|
echo "\t<input type=\"submit\" name=\"UpdateALL\" value=\"now\">\n";
|
||||||
echo "</form>\n";
|
echo "</form>\n";
|
||||||
|
|
||||||
|
} //if XMLopenOOK
|
||||||
|
|
||||||
include ("./inc/footer.php");
|
include ("./inc/footer.php");
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -107,7 +107,8 @@ function readXMLfile( $file )
|
||||||
xml_set_character_data_handler($xml_parser, "character_data_handler");
|
xml_set_character_data_handler($xml_parser, "character_data_handler");
|
||||||
if (!($fp = fopen($file, "r")))
|
if (!($fp = fopen($file, "r")))
|
||||||
{
|
{
|
||||||
die("could not open XML input");
|
echo(" <h1>could not open XML file \"$file\"</h1>");
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( $XMLDEBUG) echo "<pre>";
|
if( $XMLDEBUG) echo "<pre>";
|
||||||
|
@ -122,6 +123,7 @@ function readXMLfile( $file )
|
||||||
}
|
}
|
||||||
if( $XMLDEBUG) echo "</pre>";
|
if( $XMLDEBUG) echo "</pre>";
|
||||||
xml_parser_free($xml_parser);
|
xml_parser_free($xml_parser);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*#######################################################################################*/
|
/*#######################################################################################*/
|
||||||
|
@ -132,7 +134,7 @@ function getXMLsubPease( $Sourse, $Name )
|
||||||
return $value;
|
return $value;
|
||||||
|
|
||||||
echo "<h1>Fehler: getXMLsubPease( $Sourse, $Name ) not found</h1>";
|
echo "<h1>Fehler: getXMLsubPease( $Sourse, $Name ) not found</h1>";
|
||||||
die;
|
// die;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue