Changeset 8237
- Timestamp:
- 08/29/09 11:39:09 (4 years ago)
- Files:
-
- modules/branches/2.6/music/functions.inc.php (modified) (1 diff)
- modules/branches/2.6/music/install.php (modified) (1 diff)
- modules/branches/2.6/music/module.xml (modified) (2 diffs)
- modules/branches/2.6/music/page.music.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.6/music/functions.inc.php
r6555 r8237 9 9 if ($handle = opendir($path)){ 10 10 while (false !== ($file = readdir($handle))){ 11 if ( ($file != ".") && ($file != "..") && ($file != "CVS") && ($file != ".svn") )11 if ( ($file != ".") && ($file != "..") && ($file != "CVS") && ($file != ".svn") && ($file != ".nomusic_reserved" ) ) 12 12 { 13 13 if (is_dir("$path/$file")) modules/branches/2.6/music/install.php
r4538 r8237 7 7 if (isset($tresults)) { 8 8 foreach ($tresults as $tresult) { 9 if ($tresult != "default" ) { 9 if ($tresult == "default" ) { 10 $dir = $asterisk_conf['astvarlibdir']."/mohmp3/"; 11 } elseif ($tresult == "none") { 12 $dir = $amp_conf['ASTVARLIBDIR']."/mohmp3/.nomusic_reserved"; 13 if (!is_dir($dir)) { 14 mkdir("$dir", 0755); 15 } 16 touch($dir."/silence.wav"); 17 } else { 10 18 $dir = $asterisk_conf['astvarlibdir']."/mohmp3/{$tresult}/"; 11 } else {12 $dir = $asterisk_conf['astvarlibdir']."/mohmp3/";13 19 } 14 20 if (file_exists("{$dir}.random")) { modules/branches/2.6/music/module.xml
r8068 r8237 2 2 <rawname>music</rawname> 3 3 <name>Music on Hold</name> 4 <version>2.6.0. 0</version>4 <version>2.6.0.1</version> 5 5 <publisher>FreePBX</publisher> 6 6 <license>GPLv2+</license> … … 11 11 <description>Uploading and management of sound files (wav, mp3) to be used for on-hold music.</description> 12 12 <changelog> 13 *2.6.0.1* 3436 13 14 *2.6.0.0* added publisher/lic 14 15 *2.5.1.4* #3711 and localizations modules/branches/2.6/music/page.music.php
r7807 r8237 110 110 // 111 111 if ($tresult == "none") { 112 $dir = "/dev/null"; 113 $File_Write.="[{$tresult}]\nmode=files\ndirectory={$dir}\n"; 114 continue; 115 } 116 if ($tresult != "default" ) { 112 $dir = $amp_conf['ASTVARLIBDIR']."/mohmp3/.nomusic_reserved"; 113 if (!is_dir($dir)) { 114 makemusiccategory($dir); 115 } 116 touch($dir."/silence.wav"); 117 } elseif ($tresult != "default" ) { 117 118 $dir = $amp_conf['ASTVARLIBDIR']."/mohmp3/{$tresult}/"; 118 119 } else { … … 304 305 if (!isAlphanumeric(theForm.category.value)) 305 306 return warnInvalid(theForm.category, msgInvalidCategoryName); 306 if (theForm.category.value == "default" || theForm.category.value == "none" )307 if (theForm.category.value == "default" || theForm.category.value == "none" || theForm.category.value == ".nomusic_reserved") 307 308 return warnInvalid(theForm.category, msgReservedCategoryName); 308 309 … … 355 356 if (!isAlphanumeric(theForm.category.value)) 356 357 return warnInvalid(theForm.category, msgInvalidCategoryName); 357 if (theForm.category.value == "default" || theForm.category.value == "none" )358 if (theForm.category.value == "default" || theForm.category.value == "none" || theForm.category.value == ".nomusic_reserved") 358 359 return warnInvalid(theForm.category, msgReservedCategoryName); 359 360 if (isEmpty(theForm.stream.value))
