Example #1
0
function dispatchConference($op)
{
    require_once _base_ . '/lib/lib.urlmanager.php';
    $url =& UrlManager::getInstance();
    $url->setStdQuery('modname=conference&op=list');
    if (isset($_POST['undo'])) {
        $op = 'list';
    }
    switch ($op) {
        case 'list':
            conference_list($url);
            break;
        case 'startnewconf':
            conference_startnewconf($url);
            break;
        case 'modconf':
            conference_modconf();
            break;
        case 'delconf':
            conference_delconf();
            break;
        case 'booking':
            booking();
            break;
        case 'modbooking':
            modBooking();
            break;
        case 'history':
            showHistory();
            break;
        case 'log':
            showLog();
            break;
        default:
            conference_list($url);
    }
}
if (!isset($_POST["sort"])) {
    $_POST["sort"] = "";
}
if (!isset($_POST["order"])) {
    $_POST["order"] = "";
}
if (!isset($_POST["withtemplate"])) {
    $_POST["withtemplate"] = "";
}
$pfia = new PluginFusioninventoryAgents();
$pfit = new PluginFusioninventoryTask();
switch ($_POST['glpi_tab']) {
    case -1:
        showPorts($_POST["ID"], PLUGIN_FUSIONINVENTORY_MAC_UNKNOWN);
        $pfit->RemoteStateAgent(GLPI_ROOT . '/plugins/fusioninventory/front/agents.state.php', $_POST["ID"], PLUGIN_FUSIONINVENTORY_MAC_UNKNOWN, array('INVENTORY' => 1, 'NETDISCOVERY' => 1, 'WAKEONLAN' => 1));
        showHistory(PLUGIN_FUSIONINVENTORY_MAC_UNKNOWN, $_POST["ID"]);
        break;
    case 1:
        showPorts($_POST["ID"], PLUGIN_FUSIONINVENTORY_MAC_UNKNOWN);
        break;
    case 2:
        $pfit->RemoteStateAgent(GLPI_ROOT . '/plugins/fusioninventory/front/agents.state.php', $_POST["ID"], PLUGIN_FUSIONINVENTORY_MAC_UNKNOWN, array('INVENTORY' => 1, 'NETDISCOVERY' => 1, 'WAKEONLAN' => 1));
        break;
    case 3:
        showHistory(PLUGIN_FUSIONINVENTORY_MAC_UNKNOWN, $_POST["ID"]);
        break;
    default:
        showPorts($_POST["ID"], PLUGIN_FUSIONINVENTORY_MAC_UNKNOWN);
        break;
}
ajaxFooter();