Example #1
0
*/
require_once 'av_init.php';
Session::logcheck("configuration-menu", "ConfigurationPlugins");
$db = new ossim_db();
$conn = $db->connect();
$category_id = GET('category_id');
$subcategory_id = GET('subcategory_id');
$sourcetype = GET('sourcetype');
ossim_valid($category_id, OSS_DIGIT, OSS_NULLABLE, 'illegal:' . _("Category ID"));
ossim_valid($subcategory_id, OSS_DIGIT, OSS_NULLABLE, 'illegal:' . _("SubCategory ID"));
ossim_valid($sourcetype, OSS_ALPHA, OSS_SPACE, OSS_NULLABLE, OSS_SLASH, 'illegal:' . _("Product Type"));
if (ossim_error()) {
    die(ossim_error());
}
if (GET('restore') != "" && Session::am_i_admin()) {
    Plugin_sid::restore_plugins($conn);
}
$ptypes = Plugin::get_ptypes($conn);
$dt_url = "getplugin.php";
if ($sourcetype != "") {
    $dt_url .= "?type={$sourcetype}&field=sourcetype";
} elseif ($category_id != "") {
    $dt_url .= "?type={$category_id}&field=category_id&subcategory_id=" . $subcategory_id;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title> <?php 
echo _('AlienVault ' . (Session::is_pro() ? 'USM' : 'OSSIM'));
?>