|
From: andi <bin...@li...> - 2001-10-07 14:07:17
|
andi Sun Oct 7 07:07:12 2001 EDT
Modified files:
/r2/binarycloud/base/utils xml2php.php
Log:
Added conf/ImageRepository.php.xml and related processing (xml2php)
Index: r2/binarycloud/base/utils/xml2php.php
diff -u r2/binarycloud/base/utils/xml2php.php:1.7 r2/binarycloud/base/utils/xml2php.php:1.8
--- r2/binarycloud/base/utils/xml2php.php:1.7 Wed Sep 12 11:11:41 2001
+++ r2/binarycloud/base/utils/xml2php.php Sun Oct 7 07:07:12 2001
@@ -2,7 +2,7 @@
<?php
// {{{ Header
/*
- * -File $Id: xml2php.php,v 1.7 2001/09/12 18:11:41 andi Exp $
+ * -File $Id: xml2php.php,v 1.8 2001/10/07 14:07:12 andi Exp $
* -License LGPL (http://www.gnu.org/copyleft/lesser.html)
* -Copyright 2001, Intacct Corp.
* -Author odysseas tsatalos, ody...@ya...
@@ -11,6 +11,8 @@
// }}}
// Initialize {{{
+global $HTTP_SERVER_VARS;
+$argv = $HTTP_SERVER_VARS['argv'];
$kUsageStr = "Usage: $argv[0] SITEBUILD_DIR TYPE XML_FILE OUT_FILE\n";
if (sizeof($argv)!=5) die($kUsageStr);
array_shift($argv);
@@ -61,6 +63,12 @@
$buffer.="global \$QueryManager;";
$buffer.=$nl.$nl;
$buffer.="\$QueryManager->datasources = ";
+ $buffer.=$txtTree;
+ break;
+ case 'images_def' :
+ $buffer.="global \$ImageRepository;";
+ $buffer.=$nl.$nl;
+ $buffer.="\$ImageRepository = ";
$buffer.=$txtTree;
break;
default:
|