Skip to content
Snippets Groups Projects
Commit fe7bd660 authored by Brett Bieber's avatar Brett Bieber
Browse files

After the xml file has been generated, build the json file.

parent 2daa896b
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,11 @@ ...@@ -3,7 +3,11 @@
function __autoload($class) function __autoload($class)
{ {
$file = dirname(__FILE__).'/src/'.str_replace('_', DIRECTORY_SEPARATOR, $class).'.php'; $file = dirname(__FILE__).'/src/'.str_replace('_', DIRECTORY_SEPARATOR, $class).'.php';
if (file_exists($file)) {
require $file; require $file;
return true;
}
return false;
} }
spl_autoload_register('__autoload'); spl_autoload_register('__autoload');
......
...@@ -55,3 +55,4 @@ $xmlCAP = exportCAPAlert(); ...@@ -55,3 +55,4 @@ $xmlCAP = exportCAPAlert();
file_put_contents(dirname(__FILE__).'/xml/unlcap.xml', $xmlCAP); file_put_contents(dirname(__FILE__).'/xml/unlcap.xml', $xmlCAP);
require dirname(__FILE__).'/exportJSONAlert.php';
<?php <?php
ini_set('display_errors',false);
require_once dirname(__FILE__).'/../src/xml2json/xml2json.php'; require_once dirname(__FILE__).'/../src/xml2json/xml2json.php';
$file = dirname(__FILE__).'/xml/unlcap.xml'; $file = dirname(__FILE__).'/xml/unlcap.xml';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment