aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch_dev/v_recordings.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_recordings.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_recordings.tmp')
-rw-r--r--config/freeswitch_dev/v_recordings.tmp10
1 files changed, 6 insertions, 4 deletions
diff --git a/config/freeswitch_dev/v_recordings.tmp b/config/freeswitch_dev/v_recordings.tmp
index f4632831..8cfff7d9 100644
--- a/config/freeswitch_dev/v_recordings.tmp
+++ b/config/freeswitch_dev/v_recordings.tmp
@@ -31,8 +31,8 @@ require("guiconfig.inc");
require("/usr/local/pkg/v_config.inc");
$a_recordings = &$config['installedpackages']['freeswitchrecordings']['config'];
-$dir_recordings = '/usr/local/freeswitch/recordings/';
-$dir_music_on_hold_8000 = '/usr/local/freeswitch/sounds/music/8000/';
+$dir_recordings = $v_recordings_dir.'/recordings/';
+$dir_music_on_hold_8000 = $v_dir.'/sounds/music/8000/';
if ($_GET['a'] == "download") {
@@ -118,7 +118,7 @@ if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_na
if ($_GET['act'] == "del") {
if ($_GET['type'] == 'rec') {
if ($a_recordings[$_GET['id']]) {
- unlink_if_exists('/usr/local/freeswitch/recordings/'.$a_recordings[$_GET['id']]['filename']);
+ unlink_if_exists($v_recordings_dir.$a_recordings[$_GET['id']]['filename']);
unset($a_recordings[$_GET['id']]);
write_config();
header("Location: v_recordings.php");
@@ -150,7 +150,9 @@ function EvalSound(soundobj) {
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php
include("fbegin.inc");
-echo "<p class=\"pgtitle\">$v_project_label: Recordings</p>\n";
+if ($v_label_show) {
+ echo "<p class=\"pgtitle\">$v_label: Recordings</p>\n";
+}
?>
<div id="mainlevel">