<?php // License for all code of this FreePBX module can be found in the license file inside the module directory // Copyright 2015 Sangoma Technologies. // extract($request, EXTR_SKIP); if ($extdisplay != '') { // We need to populate grplist with the existing extension list. $thisgrp = vmblast_get($extdisplay); $grplist = $thisgrp['grplist']; $description = $thisgrp['description']; $audio_label = $thisgrp['audio_label']; $password = $thisgrp['password']; $default_group = $thisgrp['default_group']; unset($thisgrp); $usage_list = framework_display_destination_usage(vmblast_getdest($extdisplay)); if (!empty($usage_list)) { $usagehtml = '<div class="well">'; $usagehtml .= '<h3>' . $usage_list['text'] . '</h3>'; $usagehtml .= '<p>' . $usage_list['tooltip'] . '</p>'; $usagehtml .= '</div>'; } $delURL = '?display=vmblast&action=delGRP&account=' . $extdisplay; } else { $grplist = array(); $strategy = ''; $ringing = ''; $delURL = ''; } if (function_exists('recordings_list')) { $tresults = recordings_list();
if ($action == 'delGRP') { echo '<br><h3>' . _("VMBlast Group") . ' ' . $account . ' ' . _("deleted") . '!</h3><br><br><br><br><br><br><br><br>'; } 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 = "\n\t\t\t<form name=delete action=\"{$_SERVER['PHP_SELF']}\" method=POST>\n\t\t\t\t<input type=\"hidden\" name=\"display\" value=\"{$dispnum}\">\n\t\t\t\t<input type=\"hidden\" name=\"account\" value=\"" . ltrim($extdisplay, 'GRP-') . "\">\n\t\t\t\t<input type=\"hidden\" name=\"action\" value=\"delGRP\">\n\t\t\t\t<input type=submit value=\"" . _("Delete Group") . "\">\n\t\t\t</form>"; echo "<h2>" . _("VMBlast Group") . ": " . ltrim($extdisplay, 'GRP-') . "</h2>"; echo "<p>" . $delButton . "</p>"; $usage_list = framework_display_destination_usage(vmblast_getdest(ltrim($extdisplay, 'GRP-'))); if (!empty($usage_list)) { ?> <a href="#" class="info"><?php echo $usage_list['text']; ?> :<span><?php echo $usage_list['tooltip']; ?> </span></a> <?php } } else { $grplist = array(); $strategy = ''; $ringing = '';