diff options
author | mcrane <mctch@yahoo.com> | 2009-08-09 02:12:29 -0600 |
---|---|---|
committer | mcrane <mctch@yahoo.com> | 2009-08-09 02:13:29 -0600 |
commit | 44f44e817107347cb73bc74a92c60e1a6fc63014 (patch) | |
tree | ee0e5e45769516e5e679e192880d8bd551df0817 /config/freeswitch_dev/v_profiles.tmp | |
parent | d7d26e97b3928fb7e98cbf44dcbf4ef3523dbd19 (diff) | |
download | pfsense-packages-44f44e817107347cb73bc74a92c60e1a6fc63014.tar.gz pfsense-packages-44f44e817107347cb73bc74a92c60e1a6fc63014.tar.bz2 pfsense-packages-44f44e817107347cb73bc74a92c60e1a6fc63014.zip |
FreeSWITCH dev package replace the rest of the hard coded paths, update wording, fix labels on a few pages, fix wav and mp3 download and play tools.
Diffstat (limited to 'config/freeswitch_dev/v_profiles.tmp')
-rw-r--r-- | config/freeswitch_dev/v_profiles.tmp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/config/freeswitch_dev/v_profiles.tmp b/config/freeswitch_dev/v_profiles.tmp index a8e12e9c..f3bdc873 100644 --- a/config/freeswitch_dev/v_profiles.tmp +++ b/config/freeswitch_dev/v_profiles.tmp @@ -35,7 +35,7 @@ require("/usr/local/pkg/v_config.inc"); if ($_GET['a'] == "default") { conf_mount_rw(); - exec("cp /usr/local/freeswitch/conf.orig/sip_profiles/".$_GET['f']." /usr/local/freeswitch/conf/sip_profiles/".$_GET['f']); + exec("cp ".$v_conf_dir.".orig/sip_profiles/".$_GET['f']." ".$v_conf_dir."/sip_profiles/".$_GET['f']); $savemsg = "Restore Default"; conf_mount_ro(); } @@ -43,7 +43,7 @@ if ($_GET['a'] == "default") { if ($_POST['a'] == "save") { conf_mount_rw(); $content = ereg_replace("\r","",$_POST['code']); - $fd = fopen("/usr/local/freeswitch/conf/sip_profiles/".$_POST['f'], "w"); + $fd = fopen($v_conf_dir."/sip_profiles/".$_POST['f'], "w"); fwrite($fd, $content); fclose($fd); $savemsg = "Saved"; @@ -57,7 +57,7 @@ if ($_GET['a'] == "del") { //unset($a_extensions[$_GET['id']]); //write_config(); - exec("rm /usr/local/freeswitch/conf/sip_profiles/".$_GET['f']); + exec("rm ".$v_conf_dir."/sip_profiles/".$_GET['f']); header("Location: v_profiles.php"); exit; //} @@ -118,7 +118,7 @@ build_menu(); <?php - foreach (ListFiles('/usr/local/freeswitch/conf/sip_profiles') as $key=>$file){ + foreach (ListFiles($v_conf_dir.'/sip_profiles') as $key=>$file){ ?> <tr> <td class="listr" ondblclick="document.location='v_profile_edit.php?f=<?=$file;?>';" valign="middle"> @@ -194,7 +194,11 @@ build_menu(); <br> <br> -/usr/local/freeswitch/conf/sip_profiles +<?php +if ($v_path_show) { + echo $v_conf_dir."/sip_profiles\n"; +} +?> <br> <br> <br> |