javascript:alert('". _("Warning! Extension")." ".$account." "._("is not allowed for your account").".');";
} else {
//add group
if ($action == 'addGRP') {
$conflict_url = array();
$usage_arr = framework_check_extension_usage($account);
if (!empty($usage_arr)) {
$conflict_url = framework_display_extension_usage_alert($usage_arr);
} else if (vmblast_add($account,$vmblast_list,$description,$audio_label,$password,$default_group)) {
$_REQUEST['action'] = 'delGRP';
needreload();
redirect_standard('extdisplay');
}
}
//del group
if ($action == 'delGRP') {
vmblast_del($account);
needreload();
redirect_standard();
}
//edit group - just delete and then re-add the extension
if ($action == 'editGRP') {
vmblast_del($account);
vmblast_add($account,$vmblast_list,$description,$audio_label,$password,$default_group);
needreload();
redirect_standard('extdisplay');
}
}
}
?>
'._("VMBlast Group").' '.$account.' '._("deleted").'!
';
} else {
if ($extdisplay) {
// We need to populate grplist with the existing extension list.
$thisgrp = vmblast_get(ltrim($extdisplay,'GRP-'));
$grplist = $thisgrp['grplist'];
$description = $thisgrp['description'];
$audio_label = $thisgrp['audio_label'];
$password = $thisgrp['password'];
$default_group = $thisgrp['default_group'];
unset($thisgrp);
$delButton = "
";
echo "
"._("VMBlast Group").": ".ltrim($extdisplay,'GRP-')."
";
echo "
".$delButton."
";
$usage_list = framework_display_destination_usage(vmblast_getdest(ltrim($extdisplay,'GRP-')));
if (!empty($usage_list)) {
?>
:
"._("Conflicting Extensions")."";
echo implode('
',$conflict_url);
}
echo "
"._("Add VMBlast Group")."
";
}
?>