Ejemplo n.º 1
0
 function delMembers($uuids)
 {
     if ($this->can_modify()) {
         return __xmlrpc_delmembers_to_group($this->id, $uuids);
     }
     return False;
 }
Ejemplo n.º 2
0
{
    $ret = xmlrpc_resetComputerBootMenu($uuid);
    if (!isXMLRPCError() && $ret) {
        new NotifyWidgetSuccess(sprintf(_T("Default menu has been successfully restored.", "imaging")));
    }
}
if (isset($_GET['reset_defaultMenu']) && $_GET['reset_defaultMenu'] == 1) {
    resetDefaultMenu($params['uuid']);
}
//  ===============================================================
// Leave a group and reset default bootmenu
//  ===============================================================
if (isset($_GET['leave_group'], $_GET['group_uuid'], $params['uuid'])) {
    // Leave the group
    $uuid = $params['uuid'];
    $ret = __xmlrpc_delmembers_to_group($_GET['group_uuid'], array($uuid => array('uuid' => $uuid)));
    if (!isXMLRPCError() && $ret) {
        resetDefaultMenu($params['uuid']);
    }
}
if (isset($_POST['bsync'])) {
    if (isset($params['uuid'])) {
        $ret = xmlrpc_synchroComputer($params['uuid']);
    } else {
        $location = getCurrentLocation();
        if ($location == "UUID1") {
            $location_name = _T("root", "pulse2");
        } else {
            $location_name = xmlrpc_getLocationName($location);
        }
        $objprocess = array();