function adlib($id, $type) { // create adlib xml basic structure $XML = new simpleXmlElement("<?xml version='1.0' encoding='utf-8'?><adlibXML xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.adlibsoft.com/adlibXML.xsd' />"); echoall("Start Adlib XML export"); echoall("Connect database"); $daba = new database(); $daba->connect("localhost", "iggmp", "1s87J37r0"); if ($daba->select("thesaurus")) { echoall("Database connected"); } else { die("***ERROR - Database connection failed"); } $termType = thesaurus::get_name($id); echoall("Starte bei <b>'" . thesaurus::get_name($id) . "'</b>"); //------------------------------------------------------------------------------ // create recordList xml_insert($XML, new simpleXmlElement("<recordList />")); // insert records in recordList $subXml = _subtree($id, $termType); if ($subXml) { xml_insert($XML->recordList, $subXml); } echoall("XML export completed<hr>"); echoall($XML); return $XML->asXML(); }
public static function construct($construct, $vars) { // parse construct.xml echoall($construct); }
<html> <head><TITLE></TITLE></head> <body> <h1>Transfer Parents to new table</h1> <?php include "liboutput.php"; include "libdatabase.php"; // connect database $daba = new database(); $daba->connect("localhost", "iggmp", "1s87J37r0"); $daba->select("thesaurus"); $res = mysql_query("SELECT * FROM entry where descriptor='0'"); $tempArray = fetch_to_array($res, ""); echo "Anzahl: " . count($tempArray) . "<hr>"; foreach ($tempArray as $entry) { echoall($entry); database::query("UPDATE entry SET status='1' WHERE ID='" . $entry[ID] . "'"); echo "<hr>"; } ?> </body></html>
function olivxml_writeFile($xml, $file) { echoall("write " . (string) $xml . " to {$file}"); }
function echoalert($text) { echo "<div id='alert'>"; echoall($text); echo "</div>"; }
function tempfunc($value) { echoall($value); // return (strtolower($value)); }