Exemple #1
0
require_once 'data/sections/configuration/utilities.php';
session_write_close();
$system_id = POST('system_id');
ossim_valid($system_id, OSS_DIGIT, OSS_LETTER, '-', 'illegal:' . _('System ID'));
if (ossim_error()) {
    $config_nt = array('content' => ossim_get_error(), 'options' => array('type' => 'nf_error', 'cancel_button' => FALSE), 'style' => 'margin: auto; width: 90%; text-align: center;');
    $nt = new Notification('nt_1', $config_nt);
    $nt->show();
    exit;
}
/**************************************************************
*****************  Sensor Configuraton Data  *****************
***************************************************************/
$db = new ossim_db();
$conn = $db->connect();
$sensor_cnf = Av_center::get_sensor_configuration($system_id);
if ($sensor_cnf['status'] == 'error') {
    $config_nt = array('content' => _('Error retrieving information. Please, try again'), 'options' => array('type' => 'nf_error', 'cancel_button' => FALSE), 'style' => 'margin: 100px auto; width: 550px; text-align: center;');
    $nt = new Notification('nt_1', $config_nt);
    $nt->show();
} else {
    session_start();
    $cnf_data = $sensor_cnf['data'];
    $_SESSION['sensor_cnf'] = $cnf_data;
    session_write_close();
    /*
    echo "<pre>";
    	print_r($cnf_data);
    echo "</pre>";
    */
    ?>