|
From: <ma...@us...> - 2011-05-15 13:31:36
|
Revision: 337
http://openautomation.svn.sourceforge.net/openautomation/?rev=337&view=rev
Author: makki1
Date: 2011-05-15 13:31:30 +0000 (Sun, 15 May 2011)
Log Message:
-----------
Add selectable config to check_config.php
Modified Paths:
--------------
CometVisu/trunk/visu/check_config.php
Modified: CometVisu/trunk/visu/check_config.php
===================================================================
--- CometVisu/trunk/visu/check_config.php 2011-05-15 13:06:31 UTC (rev 336)
+++ CometVisu/trunk/visu/check_config.php 2011-05-15 13:31:30 UTC (rev 337)
@@ -8,12 +8,17 @@
<?php
$dom = new DomDocument();
-$dom->load("visu_config.xml");
+$conffile = "visu_config";
+if ($_GET['config']) {
+ $conffile .= "_" . $_GET['config'];
+}
+$dom->load($conffile . ".xml");
+
if ($dom->schemaValidate("visu_config.xsd")) {
- print ("config is valid XML");
+ print ("config <b>" . $conffile . " is valid </b> XML");
} else {
- print ("config is NOT valid XML");
+ print ("config <b>" . $conffile . " is NOT </b> valid XML");
}
?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|