| 130 | | if ($extdisplay) { |
|---|
| 131 | | //create variables for the selected route's settings |
|---|
| 132 | | $extarray=explode('/',$extdisplay,2); |
|---|
| 133 | | $ininfo=core_did_get($extarray[0],$extarray[1]); |
|---|
| 134 | | if (is_array($ininfo)) { |
|---|
| 135 | | extract($ininfo); |
|---|
| 136 | | } |
|---|
| | 130 | if ($extdisplay) { |
|---|
| | 131 | //create variables for the selected route's settings |
|---|
| | 132 | $extarray=explode('/',$extdisplay,2); |
|---|
| | 133 | $ininfo=core_did_get($extarray[0],$extarray[1]); |
|---|
| | 134 | if (is_array($ininfo) && !empty($ininfo)) { |
|---|
| | 135 | extract($ininfo); |
|---|
| | 136 | $delete_url = true; |
|---|
| 140 | | $delURL = $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'].'&action=delIncoming'; |
|---|
| 141 | | $tlabel = sprintf(_("Delete Route %s"),!empty($description)?$description:$extdisplay); |
|---|
| 142 | | $label = '<span><img width="16" height="16" border="0" title="'.$tlabel.'" alt="" src="images/core_delete.png"/> '.$tlabel.'</span>'; |
|---|
| 143 | | echo "<p><a href=".$delURL.">".$label."</a></p>"; |
|---|
| | 140 | } else { |
|---|
| | 141 | $extension = $extarray[0]; |
|---|
| | 142 | $cidnum = $extarray[1]; |
|---|
| | 143 | $delete_url = false; |
|---|
| | 144 | $extdisplay = ''; |
|---|
| | 145 | ?> |
|---|
| | 146 | <h2><?php echo _("Add Incoming Route")?></h2> |
|---|
| | 147 | <?php |
|---|
| | 148 | } |
|---|
| | 149 | |
|---|
| | 150 | if ($delete_url) { |
|---|
| | 151 | $delURL = $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'].'&action=delIncoming'; |
|---|
| | 152 | $tlabel = sprintf(_("Delete Route %s"),!empty($description)?$description:$extdisplay); |
|---|
| | 153 | $label = '<span><img width="16" height="16" border="0" title="'.$tlabel.'" alt="" src="images/core_delete.png"/> '.$tlabel.'</span>'; |
|---|
| | 154 | echo "<p><a href=".$delURL.">".$label."</a></p>"; |
|---|
| | 155 | } |
|---|