Esempio n. 1
0
 $name = $stringClass->text2html($name);
 $by = $stringClass->text2html($by);
 $intro = $stringClass->text2html($intro);
 $main = $stringClass->text2html($main);
 */
 #################
 # start XML creation process (MAIN FILE)
 $xmlClass->createXMLFile();
 # set the Path of the file
 $xmlClass->setPath("misc/groupware/writeable/projects/shared/" . $_GET['id'] . "/main.xml");
 ##############################ATTENTION!!!
 $xmlClass->setOverwrite(true);
 # add comment
 $xmlClass->add_comment(XML_CLASS_COMMENT);
 # open XML element
 $xmlClass->open_xml_element("main");
 # add XML element (Name)
 $xmlClass->add_xml_element("name", $name);
 # add XML element (MOTD)
 $xmlClass->add_xml_element("motd", $intro);
 # add XML element (Description)
 $xmlClass->add_xml_element("description", $main);
 # add XML element (Main block)
 $xmlClass->add_xml_element("MainBlock", "This is only a test text to view results of webpages parsing. Modify me!");
 # add XML element (ChangeLog)
 $xmlClass->add_xml_element("ChangeLog", "Change Log for " . $name . "\n\nLast Update " . date("D, d M Y H:i:s", $stringClass->get_current_date()) . " " . $_COOKIE['myforum'] . "\n");
 # add XML element (ToDo list)
 $xmlClass->add_xml_element("ToDo", "Modify me! (ToDo list)");
 # close XML element
 $xmlClass->close_xml_element("main", "Created on " . date("D, d M Y H:i:s", $stringClass->get_current_date()) . " by " . $_COOKIE['myforum']);
 # close XML creation process