Ejemplo n.º 1
0
    </script>
    
</head>

<body>

	<div class='content'>

        <div id='w_notif'></div>
        
		<div style="padding:30px">

        <?php 
if ($system_id && $rpass) {
    try {
        $data = Av_center::add_system($system_id, $rpass);
        $config_nt = array('content' => sprintf(_("<< %s >> successfully authenticated"), "<b>" . $data['hostname'] . "</b>"), 'options' => array('type' => 'nf_success', 'cancel_button' => false), 'style' => 'width: 60%; margin: 10px auto 30px auto; text-align:center;');
        $nt = new Notification('nt_1', $config_nt);
        $nt->show();
        Util::make_form("POST", AV_MAIN_PATH . "/#configuration/deployment/components", "_top", "Close");
    } catch (Exception $e) {
        $config_nt = array('content' => $e->getMessage(), 'options' => array('type' => 'nf_error', 'cancel_button' => false), 'style' => 'width: 80%; margin: 10px auto 30px auto; text-align:center;');
        $nt = new Notification('nt_1', $config_nt);
        $nt->show();
        Util::make_form("POST", "add_system.php?id=" . urlencode($system_id));
    }
} else {
    ?>
            
            <form action="add_system.php" method="POST">
            <input type="hidden" name="id" value="<?php