diff options
author | mcrane <mctch@yahoo.com> | 2009-05-14 23:47:20 -0600 |
---|---|---|
committer | mcrane <mctch@yahoo.com> | 2009-05-14 23:48:34 -0600 |
commit | 0e432ea1d03bc9e0093498d887a03ac89f3e6baa (patch) | |
tree | c521558c071334afe5e9ec20af4a65d9d61edac2 /config/freeswitch/freeswitch_extensions.tmp | |
parent | c78b004d166bb8ead6c1d9e5984f55f0fd97f866 (diff) | |
download | pfsense-packages-0e432ea1d03bc9e0093498d887a03ac89f3e6baa.tar.gz pfsense-packages-0e432ea1d03bc9e0093498d887a03ac89f3e6baa.tar.bz2 pfsense-packages-0e432ea1d03bc9e0093498d887a03ac89f3e6baa.zip |
FreeSWITCH package make sure xml config file are deleted when they are deleted in the GUI
Diffstat (limited to 'config/freeswitch/freeswitch_extensions.tmp')
-rw-r--r-- | config/freeswitch/freeswitch_extensions.tmp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/freeswitch/freeswitch_extensions.tmp b/config/freeswitch/freeswitch_extensions.tmp index eea7699e..8ef415fd 100644 --- a/config/freeswitch/freeswitch_extensions.tmp +++ b/config/freeswitch/freeswitch_extensions.tmp @@ -38,7 +38,8 @@ $a_extensions = &$config['installedpackages']['freeswitchextensions']['confi if ($_GET['act'] == "del") { if ($_GET['type'] == 'extensions') { - if ($a_extensions[$_GET['id']]) { + if ($a_extensions[$_GET['id']]) { + unlink("/usr/local/freeswitch/conf/directory/default/".$_GET['extension'].".xml"); unset($a_extensions[$_GET['id']]); write_config(); header("Location: freeswitch_extensions.php"); @@ -160,7 +161,7 @@ if ($config_change == 1) { <table border="0" cellspacing="0" cellpadding="1"> <tr> <td valign="middle"><a href="freeswitch_extensions_edit.php?id=<?=$ent['id'];?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a></td> - <td><a href="freeswitch_extensions.php?type=extensions&act=del&id=<?=$ent['id'];?>" onclick="return confirm('Do you really want to delete this?')"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td> + <td><a href="freeswitch_extensions.php?type=extensions&act=del&id=<?=$ent['id'];?>&extension=<?=$ent['extension'];?>" onclick="return confirm('Do you really want to delete this?')"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td> </tr> </table> </td> |