From d62b5e18760e501965463b6914102eb253e0cd8a Mon Sep 17 00:00:00 2001 From: mcrane Date: Fri, 7 Aug 2009 16:22:23 -0600 Subject: FreeSWITCH dev dump the majority of hard coded paths and add a few preferences. --- config/freeswitch_dev/v_recordings.tmp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'config/freeswitch_dev/v_recordings.tmp') 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) { $v_project_label: Recordings

\n"; +if ($v_label_show) { + echo "

$v_label: Recordings

\n"; +} ?>
-- cgit v1.2.3