Example #1
0
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;
}
//Framework URL
$url = empty($_SERVER['HTTPS']) ? 'http://' : 'https://';
$url .= 'SERVER_IP/ossim/session/login.php?action=logout';
/**************************************************************
*****************  Network Configuraton Data  *****************
***************************************************************/
$network_cnf = Av_center::get_network_configuration($system_id);
if ($network_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 {
    $cnf_data = $network_cnf['data'];
    $yes_no = array('no' => _('No'), 'yes' => _('Yes'));
    ?>
	<div id='nc_notification'>
        <div id='nc_info' class='c_info'></div>
	</div>
    
	<div id='nc_container'>
		
		<div class="w_overlay" style="height:100%;"></div>