Пример #1
0
    exit;
}
if (isset($_GET["id-js"])) {
    client_js();
    exit;
}
if (isset($_GET["id-popup"])) {
    client_popup();
    exit;
}
if (isset($_POST["ID"])) {
    client_save();
    exit;
}
if (isset($_POST["delete-id"])) {
    client_delete();
    exit;
}
page();
function client_js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = "{computer}:{add}";
    if ($_GET["id-js"] > 0) {
        $q = new mysql();
        $sql = "SELECT hostname FROM amanda_hosts WHERE ID='{$_GET["id-js"]}'";
        $ligne = @mysql_fetch_array($q->QUERY_SQL($sql, 'artica_backup'));
        $title = "{$ligne["hostname"]}";
    }
    $title = $tpl->_ENGINE_parse_body($title);
Пример #2
0
     campaign_list($option, $task);
     break;
     // ------------------------------------ Clients
 // ------------------------------------ Clients
 case 'client.edit':
     client_edit($id, $option, $task);
     break;
 case 'client.save':
 case 'client.apply':
     client_save($id, $option, $task);
     break;
 case 'client.cancel':
     client_cancel($id, $option, $task);
     break;
 case 'client.delete':
     client_delete($cid, $option, $task);
     break;
 case 'client.publish':
     client_publish($cid, 1, $option, $task);
     break;
 case 'client.unpublish':
     client_publish($cid, 0, $option, $task);
     break;
 case 'client':
 case 'client.list':
     client_list($option, $task);
     break;
     // ------------------------------------ Groups
 // ------------------------------------ Groups
 case 'group.edit':
     group_edit($id, $option, $task);