Skip to content
Snippets Groups Projects
Select Git revision
  • 3b325a576325aa869968506ba0668c285df62ca6
  • master default
  • test/issue-1775
  • rave
  • ORIGINAL_2007
5 results

exportJSONAlert.php

Blame
  • exportJSONAlert.php 410 B
    <?php
    
    require_once dirname(__FILE__).'/../config.inc.php';
    require_once 'functions.inc.php';
    
    if (!isset($output)) {
        $output = getCAPData($config);
    }
    
    $jsonContents = $output->toJSON('alert');
    
    $jsonContents = 'unlAlerts.data = ' . $jsonContents . ";\n";
    
    $jsonContents .= 'try {
    unlAlerts.server.init();
    } catch(e) {}'."\n";
    
    file_put_contents(dirname(__FILE__).'/../www/json/unlcap.js', $jsonContents);