list
$featurecodes = featurecodes_getAllFeaturesDetailed();
if (isset($featurecodes)) {
foreach ($featurecodes as $item) {
$moduledesc =isset($item['moduledescription'])?_($item['moduledescription']):null;
$moduleena = ($item['moduleenabled'] == 1 ? true : false);
if ($moduleena) {
$featureena = ($item['featureenabled'] == 1 ? true : false);
if ($featureena) {
$featureid = $item['modulename'] . ':' . $item['featurename'];
$featuredesc = _($item['featuredescription']);
$featurecodedefault = (isset($item['defaultcode']) ? $item['defaultcode'] : '');
$featurecodecustom = (isset($item['customcode']) ? $item['customcode'] : '');
$featureactualcode = ($featurecodecustom != '' ? $featurecodecustom : $featurecodedefault);
$fclist[$featureid] = $featuredesc." ($featureactualcode)";
}
}
}
asort($fclist);
}
?>
'._("Misc Destination").' '.$extdisplay.' '._("deleted").'!
';
} else {
if ($extdisplay){
//get details for this meetme
$thisMiscDest = miscdests_get($extdisplay);
//create variables
$description = "";
$destdial = "";
extract($thisMiscDest);
}
$delURL = $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'].'&action=delete';
$helptext = _("Misc Destinations are for adding destinations that can be used by other FreePBX modules, generally used to route incoming calls. If you want to create feature codes that can be dialed by internal users and go to various destinations, please see the
Misc Applications module.");
if ($extdisplay){ ?>
''
:
"._("Add Misc Destination")."";
echo $helptext;
}
?>