aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch_dev/v_vars.tmp
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-08-07 16:22:23 -0600
committermcrane <mctch@yahoo.com>2009-08-07 16:22:23 -0600
commitd62b5e18760e501965463b6914102eb253e0cd8a (patch)
tree2767bbcefe1640fc6f374b8983fceec48b6878be /config/freeswitch_dev/v_vars.tmp
parent6eeac714b3bb1f54f3c763369ddc44339a99c805 (diff)
downloadpfsense-packages-d62b5e18760e501965463b6914102eb253e0cd8a.tar.gz
pfsense-packages-d62b5e18760e501965463b6914102eb253e0cd8a.tar.bz2
pfsense-packages-d62b5e18760e501965463b6914102eb253e0cd8a.zip
FreeSWITCH dev dump the majority of hard coded paths and add a few preferences.
Diffstat (limited to 'config/freeswitch_dev/v_vars.tmp')
-rw-r--r--config/freeswitch_dev/v_vars.tmp16
1 files changed, 11 insertions, 5 deletions
diff --git a/config/freeswitch_dev/v_vars.tmp b/config/freeswitch_dev/v_vars.tmp
index 2b6787ac..feab8e19 100644
--- a/config/freeswitch_dev/v_vars.tmp
+++ b/config/freeswitch_dev/v_vars.tmp
@@ -34,7 +34,7 @@ require("/usr/local/pkg/v_config.inc");
if ($_GET['a'] == "default") {
conf_mount_rw();
- exec("cp /usr/local/freeswitch/conf.orig/vars.xml /usr/local/freeswitch/conf/vars.xml");
+ exec("cp ".$v_conf_dir.".orig/vars.xml ".$v_conf_dir."/vars.xml");
$savemsg = "Default Restored";
conf_mount_ro();
}
@@ -42,7 +42,7 @@ if ($_GET['a'] == "default") {
if ($_POST['a'] == "save") {
conf_mount_rw();
$content = ereg_replace("\r","",$_POST['code']);
- $fd = fopen("/usr/local/freeswitch/conf/vars.xml", "w");
+ $fd = fopen($v_conf_dir."/vars.xml", "w");
fwrite($fd, $content);
fclose($fd);
$savemsg = "Saved";
@@ -50,8 +50,8 @@ if ($_POST['a'] == "save") {
}
-$fd = fopen("/usr/local/freeswitch/conf/vars.xml", "r");
-$content = fread($fd, filesize("/usr/local/freeswitch/conf/vars.xml"));
+$fd = fopen($v_conf_dir."/vars.xml", "r");
+$content = fread($fd, filesize($v_conf_dir."/conf/vars.xml"));
fclose($fd);
include("head.inc");
@@ -123,7 +123,13 @@ build_menu();
<table width="98%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td>/usr/local/freeswitch/conf/vars.xml</td>
+ <td>
+ <?php
+ if ($v_path_show) {
+ echo $v_conf_dir."/vars.xml\n";
+ }
+ ?>
+ </td>
<td align='right'>
<input type="hidden" name="f" value="<?php echo $_GET['f']; ?>" />
<input type="hidden" name="a" value="save" />