Esempio n. 1
0
    } else {
        $target = 'computersprofileedit';
    }
} else {
    if ($groupedit) {
        $target = 'computersgroupcreator';
    } else {
        $target = 'computersprofilecreator';
    }
}
$subedition = false;
if (strlen($_GET['subedition']) && $_GET['subedition'] == '1') {
    $subedition = true;
}
// getting request and id parameters
$id = idGet();
$imaging_server = quickGet('imaging_server');
$group = new Group($id, true);
$request = quickGet('request');
if (strlen($request)) {
    $r = new Request();
    $r->parse($request);
    $request = $r;
} elseif (strlen($id)) {
    $r = new Request();
    $r->parse($group->getRequest());
    $request = $r;
} else {
    $request = new Request();
}
// a part of the request has to be removed
Esempio n. 2
0
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC.  If not, see <http://www.gnu.org/licenses/>.
 */
require "modules/base/computers/localSidebar.php";
require "graph/navbar.inc.php";
require_once "modules/dyngroup/includes/includes.php";
require_once "modules/pulse2/includes/utilities.php";
/*
 * Display right top shortcuts menu
 */
right_top_shortcuts_display();
$gid = idGet();
$group = getPGobject($gid, True);
$edition = True;
if ($group->isDyn()) {
    if ($group->type == 0) {
        $title = _T("Edit a dynamic group", 'dyngroup');
    } else {
        /* shouldn't happen */
        $title = _T("Edit a profile", 'dyngroup');
    }
    $p = new PageGenerator($title);
    $p->setSideMenu($sidemenu);
    $p->display();
    require "creator.php";
} else {
    if ($group->type == 0) {