Skip to content
Snippets Groups Projects
Commit 3b325a57 authored by Kevin Abel's avatar Kevin Abel
Browse files

Update sample config and export script to use $config var

parent b61b8927
No related branches found
No related tags found
No related merge requests found
......@@ -9,3 +9,8 @@ function autoload($class)
spl_autoload_register('autoload');
set_include_path(__DIR__ . '/src' );
$config = array(
'proxyUrl' => 'http://www.getrave.com/rss/unl/channel1',
'recentTimeframe' => '',
);
......@@ -2,7 +2,7 @@
require_once dirname(__FILE__).'/../config.inc.php';
require_once 'functions.inc.php';
$output = getCAPData();
$output = getCAPData($config);
file_put_contents(dirname(__FILE__).'/../www/xml/unlcap.xml', $output->toXML('alert', 'urn:oasis:names:tc:emergency:cap:1.2'));
include dirname(__FILE__).'/exportJSONAlert.php';
......@@ -4,12 +4,12 @@ require_once dirname(__FILE__).'/../config.inc.php';
require_once 'functions.inc.php';
if (!isset($output)) {
$output = getCAPData();
$output = getCAPData($config);
}
$jsonContents = $output->toJSON('alert');
$jsonContents = 'unlAlerts.data = ' . $jsonContents . "\n";
$jsonContents = 'unlAlerts.data = ' . $jsonContents . ";\n";
$jsonContents .= 'try {
unlAlerts.server.init();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment