From cd5bee24927d619859854edce45596303cc1a0f1 Mon Sep 17 00:00:00 2001 From: mcrane Date: Tue, 11 Aug 2009 02:03:31 -0600 Subject: FreeSWITCH dev package make sure directory exists and add the option to hide the path on the fax edit page. --- config/freeswitch_dev/v_fax_edit.tmp | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) (limited to 'config/freeswitch_dev') diff --git a/config/freeswitch_dev/v_fax_edit.tmp b/config/freeswitch_dev/v_fax_edit.tmp index 1548f3fb..603e72c4 100644 --- a/config/freeswitch_dev/v_fax_edit.tmp +++ b/config/freeswitch_dev/v_fax_edit.tmp @@ -46,6 +46,28 @@ if (isset($id) && $a_fax[$id]) { $pconfig['faxemail'] = $a_fax[$id]['faxemail']; $pconfig['faxdomain'] = $a_fax[$id]['faxdomain']; $pconfig['faxdescription'] = $a_fax[$id]['faxdescription']; + + if (!is_dir($v_storage_dir)) { + exec("mkdir ".$v_storage_dir); + } + + if (!is_dir($v_storage_dir.'/fax/')) { + exec("mkdir ".$v_storage_dir."/fax/"); + } + + $faxfolder = $v_storage_dir.'/fax/'.$a_fax[$id]['faxextension']; + if (!is_dir($faxfolder)) { + exec('mkdir '.$faxfolder); + } + if (!is_dir($faxfolder.'/inbox/')) { + exec('mkdir '.$faxfolder.'/inbox/'); + } + if (!is_dir($faxfolder.'/sent/')) { + exec('mkdir '.$faxfolder.'/sent/'); + } + if (!is_dir($faxfolder.'/temp/')) { + exec('mkdir '.$faxfolder.'/temp/'); + } } clearstatcache(); //clear file status cache @@ -550,7 +572,12 @@ build_menu(); Inbox - location: + location: "; + echo $dir_fax_inbox; + } + ?> @@ -636,7 +663,12 @@ build_menu(); Sent - location: + location: "; + echo $dir_fax_sent; + } + ?> -- cgit v1.2.3