Changeset 7342
- Timestamp:
- 01/06/09 15:58:59 (3 years ago)
- Files:
-
- modules/branches/2.5 (modified) (1 prop)
- modules/branches/2.5/backup/bin/ampbackup.pl (modified) (3 diffs)
- modules/branches/2.5/backup/i18n/backup.pot (modified) (8 diffs)
- modules/branches/2.5/backup/i18n/sv_SE/LC_MESSAGES/backup.mo (modified) (previous)
- modules/branches/2.5/backup/i18n/sv_SE/LC_MESSAGES/backup.po (modified) (8 diffs)
- modules/branches/2.5/backup/schedule_functions.php (modified) (6 diffs)
- modules/branches/2.5/core/functions.inc.php (modified) (10 diffs)
- modules/branches/2.5/core/page.general.php (modified) (1 diff)
- modules/branches/2.5/dashboard/page.index.php (modified) (1 diff)
- modules/branches/2.5/ivr/page.ivr.php (modified) (2 diffs)
- modules/branches/2.5/music/page.music.php (modified) (4 diffs)
- modules/branches/2.5/paging/functions.inc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5
- Property svnmerge-integrated changed from /modules/branches/2.4:1-5852,5908 /modules/branches/2.6:1-7080,7132,7158-7174,7222,7261 to /modules/branches/2.4:1-5852,5908 /modules/branches/2.6:1-7080,7132,7158-7174,7177,7179-7186,7191-7202,7204-7226,7228-7250,7252-7273,7279-7286,7289-7292,7294-7295,7297-7312,7317-7320,7322-7331,7333-7340
modules/branches/2.5/backup/bin/ampbackup.pl
r7126 r7342 63 63 $User_Preferences{"ASTETCDIR"} = "/etc/asterisk"; 64 64 65 $User_Preferences{"CDRDBNAME"} = "asteriskcdrdb"; 66 65 67 $User_Preferences{"AMPPROVROOT"} = ""; 66 68 $User_Preferences{"AMPPROVEXCLUDE"} = ""; … … 114 116 # the WEB ROOT directory 115 117 $webroot = $User_Preferences{"AMPWEBROOT"}; 116 117 # Provisioning root(s) and exclude list, if phone configuratoins should be backed up 118 # CDR database 119 $cdrdatabase = $User_Preferences{"CDRDBNAME"}; 120 121 # Provisioning root(s) and exclude list, if phone configurations should be backed up 118 122 # 119 123 $provroot = $User_Preferences{"AMPPROVROOT"}; … … 209 213 if ( $Backup_CDR eq "yes" ){ 210 214 system ("/bin/tar -Pcz -f /tmp/ampbackups.$Stamp/cdr.tar.gz $webroot/admin/cdr"); 211 system ("mysqldump --add-drop-table -h $hostname -u $username -p$password --database asteriskcdrdb> /tmp/ampbackups.$Stamp/asteriskcdr.sql");215 system ("mysqldump --add-drop-table -h $hostname -u $username -p$password --database $cdrdatabase > /tmp/ampbackups.$Stamp/asteriskcdr.sql"); 212 216 } 213 217 if ( $Backup_FOP eq "yes" ){ modules/branches/2.5/backup/i18n/backup.pot
r6860 r7342 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2008- 09-27 15:00+0200\n"11 "POT-Creation-Date: 2008-11-23 14:54+0100\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 58 58 msgstr "" 59 59 60 #: schedule_functions.php:21 schedule_functions.php:46 61 msgid "Are you sure you want to delete this File Set?" 62 msgstr "" 63 60 64 #: schedule_functions.php:22 61 65 msgid "DELETE ALL THE DATA IN THIS SET" … … 74 78 msgstr "" 75 79 80 #: schedule_functions.php:51 81 msgid "" 82 "Are you sure you want to restore this COMPLETE file set?\\nDoing so will " 83 "permanently over-write all FreePBX and Asterisk files\\nYou will lose all " 84 "Your Call Detail Records and any Voicemail that was recorded between the " 85 "BACKUP DATE and NOW!" 86 msgstr "" 87 76 88 #: schedule_functions.php:52 77 89 msgid "Restore Entire Backup Set" … … 82 94 msgstr "" 83 95 96 #: schedule_functions.php:58 97 msgid "" 98 "Are you sure you want to Restore this file set?\\nDoing so will permanently " 99 "delete any new voicemail you have in your mailbox\\nsince this backup on" 100 msgstr "" 101 84 102 #: schedule_functions.php:59 85 103 msgid "Restore VoiceMail Files" … … 90 108 "Restore your Voicemail files from this backup set. NOTE! This will delete " 91 109 "any voicemail currently in the voicemail boxes." 110 msgstr "" 111 112 #: schedule_functions.php:67 113 msgid "" 114 "Are you sure you want to Restore this file set?\\nNOTE! This will OVERWRITE " 115 "any voicerecordings currently on the system. It will NOT delete new files " 116 "not currently in the backup set" 92 117 msgstr "" 93 118 … … 103 128 msgstr "" 104 129 130 #: schedule_functions.php:74 131 msgid "" 132 "Are you sure you want to Restore this File Set?\\nDoing so will Permanently " 133 "Over-Write all FreePBX and Asterisk Files!" 134 msgstr "" 135 105 136 #: schedule_functions.php:75 106 137 msgid "Restore System Configuration" … … 114 145 msgstr "" 115 146 147 #: schedule_functions.php:79 148 msgid "" 149 "Are you sure you want to Restore the Operator Panel Files?\\nDoing so will " 150 "Permanently Over-Write all Operator Panel Files!" 151 msgstr "" 152 116 153 #: schedule_functions.php:80 117 154 msgid "Restore Operator Panel" … … 123 160 "any Operator Panel Changes you have made since this backup... ALL Itemes " 124 161 "will be reset to what they were at the time of this backup set.." 162 msgstr "" 163 164 #: schedule_functions.php:87 165 msgid "" 166 "Are you sure you want to Restore the CALL DETAIL FILES?\\nDoing so will " 167 "Permanently DELETE all CALL RECORDS!" 125 168 msgstr "" 126 169 modules/branches/2.5/backup/i18n/sv_SE/LC_MESSAGES/backup.po
r6860 r7342 8 8 "Project-Id-Version: FreePBX backup\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 2008- 09-27 15:00+0200\n"11 "PO-Revision-Date: 2008- 09-27 15:10+0100\n"10 "POT-Creation-Date: 2008-11-23 14:54+0100\n" 11 "PO-Revision-Date: 2008-11-23 15:09+0100\n" 12 12 "Last-Translator: Mikael Carlsson <mickecamino@gmail.com>\n" 13 13 "Language-Team: \n" … … 64 64 msgstr "SystemÃ¥terstÀllning" 65 65 66 #: schedule_functions.php:21 67 #: schedule_functions.php:46 68 msgid "Are you sure you want to delete this File Set?" 69 msgstr "Ãr du sÀker pÃ¥ att du vill ta bort denna sÀkerhetskopia?" 70 66 71 #: schedule_functions.php:22 67 72 msgid "DELETE ALL THE DATA IN THIS SET" … … 80 85 msgstr "Ta bort denna sÀkerhetskopia" 81 86 87 #: schedule_functions.php:51 88 msgid "" 89 "Are you sure you want to restore this COMPLETE file set?\\n" 90 "Doing so will permanently over-write all FreePBX and Asterisk files\\n" 91 "You will lose all Your Call Detail Records and any Voicemail that was recorded between the BACKUP DATE and NOW!" 92 msgstr "" 93 "Ãr du sÀker pÃ¥ att du vill Ã¥terstÀlla denna FULLSTÃNDIGA sÀkerhetskopia?\\n" 94 "Detta kommmer permanent skriva över alla filer för FreePBX och Asterisk\\n" 95 "Du kommer att förlora alla samtalsloggar och röstmeddelande som har registrerats frÃ¥n det att sÀkerhetskopian togs och nu!" 96 82 97 #: schedule_functions.php:52 83 98 msgid "Restore Entire Backup Set" … … 90 105 terstÀll din kompletta sÀkerhetskopia och skriv över alla filer. NOTERA! Detta kommer att Ã¥terstÀlla ditt system till samma status det hade vid tiden för denna sÀkerhetskopia. ALLT KOMMER ATT SKRIVAS ÃVER!!" 91 106 107 #: schedule_functions.php:58 108 msgid "" 109 "Are you sure you want to Restore this file set?\\n" 110 "Doing so will permanently delete any new voicemail you have in your mailbox\\n" 111 "since this backup on" 112 msgstr "" 113 "Ãr du sÀker pÃ¥ att du vill Ã¥terstÀlla denna sÀkerhetskopia?\\n" 114 "Detta kommer att permanent ta bort alla nya röstbesked som finns i röstbrevlÃ¥dorna\\n" 115 "sedan denna sÀkerhestkopia togs den" 116 92 117 #: schedule_functions.php:59 93 118 msgid "Restore VoiceMail Files" … … 100 125 terstÀll dina röstbrevlÃ¥dor frÃ¥n denna kopia. NOTERA! Detta tar bort allt innehÃ¥ll som nu finns i röstbrevlÃ¥dorna." 101 126 127 #: schedule_functions.php:67 128 msgid "" 129 "Are you sure you want to Restore this file set?\\n" 130 "NOTE! This will OVERWRITE any voicerecordings currently on the system. It will NOT delete new files not currently in the backup set" 131 msgstr "" 132 "Ãr du sÀker pÃ¥ att du vill Ã¥terstÀlla denna sÀkerhetskopia?\\n" 133 "OBS! Detta kommer att skriva över de röstbesked som finns i systemet. Nyare filer Àn de som finns i sÀkerhetskopian kommer INTE att skrivas över." 134 102 135 #: schedule_functions.php:68 103 136 msgid "Restore System Recordings Files" … … 110 143 terstÀller dina systeminspelningar inklusive filerna för AutoAttendent . NOTERA! Detta kommer att SKRIVA ÃVER alla systeminspelningar i systemet, men kommer INTE att ta bort nya filer som inte finns i denna sÀkerhetskopia." 111 144 145 #: schedule_functions.php:74 146 msgid "" 147 "Are you sure you want to Restore this File Set?\\n" 148 "Doing so will Permanently Over-Write all FreePBX and Asterisk Files!" 149 msgstr "" 150 "Ãr du sÀker pÃ¥ att du vill Ã¥terstÀlla denna sÀkerhetskopia?\\n" 151 "Detta kommer att skriva över alla filer för FreePBX och Asterisk!" 152 112 153 #: schedule_functions.php:75 113 154 msgid "Restore System Configuration" … … 120 161 terstÀller din systemkonfiguration frÃ¥n denna sÀkerhetskopia. NOTERA! Detta kommer att SKRIVA ÃVER alla förÀndringar i ditt system du gjort efter denna sÀkerhetskopia... ALLT kommer att Ã¥terstÀllas till den status systemet hade vid tiden för denna sÀkerhetskopia." 121 162 163 #: schedule_functions.php:79 164 msgid "" 165 "Are you sure you want to Restore the Operator Panel Files?\\n" 166 "Doing so will Permanently Over-Write all Operator Panel Files!" 167 msgstr "" 168 "Ãr du sÀker pÃ¥ att du vill Ã¥terstÀlla Operatörspanelen?\\n" 169 "Detta kommer permanent skriva över alla förÀndringar gjorda efter denna sÀkerhestkopia!" 170 122 171 #: schedule_functions.php:80 123 172 msgid "Restore Operator Panel" … … 129 178 msgstr "à 130 179 terstÀller operatörspanelen frÃ¥n denna sÀkerhetskopia. NOTERA! Detta kommer att SKRIVA ÃVER alla förÀndringar som skett i operatörspanelen sedan sÀkerhetskopian togs... ALLT kommer att Ã¥terstÀllas till den status operatörspanelen hade vid tiden för denna sÀkerhetskopia." 180 181 #: schedule_functions.php:87 182 msgid "" 183 "Are you sure you want to Restore the CALL DETAIL FILES?\\n" 184 "Doing so will Permanently DELETE all CALL RECORDS!" 185 msgstr "" 186 "Ãr du sÀker pÃ¥ att du vill Ã¥terstÀlla all samtalslogg?\\n" 187 "Detta kommer att permanent ta bort alla loggar sedan datumen för sÀkerhetskopian!" 131 188 132 189 #: schedule_functions.php:88 modules/branches/2.5/backup/schedule_functions.php
r6317 r7342 19 19 if (is_dir($dir)) { 20 20 if (($file!=".") && ($file!="..") && ($file!="")){ 21 echo "<li><a class=\"info\" href=\"javascript:decision(' Are you sure you want to delete this File Set?','config.php?type=$type&display=$display&action=deletedataset&dir=$dir')\">";21 echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to delete this File Set?")."','config.php?type=$type&display=$display&action=deletedataset&dir=$dir')\">"; 22 22 echo _("DELETE ALL THE DATA IN THIS SET"); echo "<span>"; echo _("Delete this backup set and all data associated with this backup set..");echo "</span></a><br></li>"; 23 23 echo "<br>"; … … 44 44 } 45 45 } else if (substr($dir, -6)=="tar.gz" ){ 46 echo "<li><a class=\"info\" href=\"javascript:decision(' Are you sure you want to delete this File Set?','config.php?type=$type&display=$display&action=deletefileset&dir=$dir&file=$file')\">";46 echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to delete this File Set?")."','config.php?type=$type&display=$display&action=deletefileset&dir=$dir&file=$file')\">"; 47 47 echo _("Delete File Set"); echo "<span>"; echo _("Delete this backup set."); echo "</span></a><br></li>"; 48 48 echo "<br>"; 49 49 $tar_string="tar tfz \"$dir\" | cut -d'/' -f4"; 50 50 exec($tar_string,$restore_files,$error); 51 echo "<li><a class=\"info\" href=\"javascript:decision(' Are you sure you want to restore this COMPLETE file set?\n Doing so will permanently over-write all FreePBX and Asterisk files\n You will lose all Your Call Detail Records and any Voicemail that was recorded between the BACKUP DATE and NOW.','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=ALL&file=$file')\">";51 echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to restore this COMPLETE file set?\\nDoing so will permanently over-write all FreePBX and Asterisk files\\nYou will lose all Your Call Detail Records and any Voicemail that was recorded between the BACKUP DATE and NOW!")."','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=ALL&file=$file')\">"; 52 52 echo _("Restore Entire Backup Set"); 53 53 echo "<span>"; … … 56 56 echo "<br>"; 57 57 if (array_search('voicemail.tar.gz',$restore_files)){ 58 echo "<li><a class=\"info\" href=\"javascript:decision('Are you sure you want to Restore this file set?\n Doing so will permanently delete any new voicemail you have in your mailbox\n since this backup on $file?','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=VoiceMail&file=$file')\">";58 echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to Restore this file set?\\nDoing so will permanently delete any new voicemail you have in your mailbox\\nsince this backup on")." $file!','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=VoiceMail&file=$file')\">"; 59 59 echo _("Restore VoiceMail Files"); 60 60 echo "<span>"; … … 65 65 66 66 if (array_search('recordings.tar.gz',$restore_files)){ 67 echo "<li><a class=\"info\" href=\"config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=Recordings&file=$file\">";67 echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to Restore this file set?\\nNOTE! This will OVERWRITE any voicerecordings currently on the system. It will NOT delete new files not currently in the backup set")."','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=Recordings&file=$file')\">"; 68 68 echo _("Restore System Recordings Files"); 69 69 echo "<span>"; … … 72 72 } 73 73 if (array_search('configurations.tar.gz',$restore_files)){ 74 echo "<li><a class=\"info\" href=\"javascript:decision(' Are you sure you want to Restore this File Set\n Doing so will Permanently Over-Write all AMP and Asterisk Files?','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=Configurations&file=$file')\">";74 echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to Restore this File Set?\\nDoing so will Permanently Over-Write all FreePBX and Asterisk Files!")."','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=Configurations&file=$file')\">"; 75 75 echo _("Restore System Configuration"); echo "<span>"; echo _("Restore your system configuration from this backup set. NOTE! This will OVERWRITE any System changes you have made since this backup... ALL Itemes will be reset to what they were at the time of this backup set.."); echo "</span></a><br></li>"; 76 76 echo "<br>"; 77 77 } 78 78 if (array_search('fop.tar.gz',$restore_files)){ 79 echo "<li><a class=\"info\" href=\"javascript:decision(' Are you sure you want to Restore the Operator Panel Files\n Doing so will Permanently Over-Write all Operator Panel Files?','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=FOP&file=$file')\">";79 echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to Restore the Operator Panel Files?\\nDoing so will Permanently Over-Write all Operator Panel Files!")."','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=FOP&file=$file')\">"; 80 80 echo _("Restore Operator Panel"); 81 81 echo "<span>"; … … 85 85 } 86 86 if (array_search('cdr.tar.gz',$restore_files)){ 87 echo "<li><a class=\"info\" href=\"javascript:decision(' Are you sure you want to Restore the CALL DETAIL FILES\n Doing so will Permanently DELETE all CALL RECORDS.?','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=CDR&file=$file')\">";87 echo "<li><a class=\"info\" href=\"javascript:decision('"._("Are you sure you want to Restore the CALL DETAIL FILES?\\nDoing so will Permanently DELETE all CALL RECORDS!")."','config.php?type=$type&display=$display&action=restored&dir=$dir&filetype=CDR&file=$file')\">"; 88 88 echo _("Restore Call Detail Report"); 89 89 echo "<span>"; modules/branches/2.5/core/functions.inc.php
r7331 r7342 212 212 } 213 213 214 // Move all 'disallow=all' to the top to avoid errors214 // Move all 'disallow=all' and 'deny' to the top to avoid errors 215 215 // 216 216 $results2 = array(); … … 218 218 $options = explode("&", $element['data']); 219 219 foreach ($options as $option) { 220 if ( $element['keyword'] == 'disallow' && $option == 'all') {220 if (($element['keyword'] == 'disallow' && $option == 'all') | ($element['keyword'] == 'deny')) { 221 221 array_unshift($results2,array('keyword'=>$element['keyword'],'data'=>$option)); 222 222 } else { … … 475 475 //static destinations 476 476 $extens = array(); 477 $category = 'Terminate Call';477 $category = _("Terminate Call"); 478 478 $extens[] = array('destination' => 'app-blackhole,hangup,1', 'description' => _("Hangup"), 'category' => $category); 479 479 $extens[] = array('destination' => 'app-blackhole,congestion,1', 'description' => _("Congestion"), 'category' => $category); … … 2381 2381 array($account,'callgroup',(isset($_REQUEST['callgroup']))?$_REQUEST['callgroup']:''), 2382 2382 array($account,'pickupgroup',(isset($_REQUEST['pickupgroup']))?$_REQUEST['pickupgroup']:''), 2383 array($account,'deny',(isset($_REQUEST['deny']))?$_REQUEST['deny']:''), 2384 array($account,'permit',(isset($_REQUEST['permit']))?$_REQUEST['permit']:''), 2383 2385 array($account,'disallow',(isset($_REQUEST['disallow']))?$_REQUEST['disallow']:''), 2384 2386 array($account,'allow',(isset($_REQUEST['allow']))?$_REQUEST['allow']:'') … … 2457 2459 array($account,'port',($_REQUEST['port'])?$_REQUEST['port']:'4569'), 2458 2460 array($account,'qualify',($_REQUEST['qualify'])?$_REQUEST['qualify']:'yes'), 2461 array($account,'deny',(isset($_REQUEST['deny']))?$_REQUEST['deny']:''), 2462 array($account,'permit',(isset($_REQUEST['permit']))?$_REQUEST['permit']:''), 2459 2463 array($account,'disallow',($_REQUEST['disallow'])?$_REQUEST['disallow']:''), 2460 2464 array($account,'allow',($_REQUEST['allow'])?$_REQUEST['allow']:''), … … 3043 3047 } 3044 3048 if (trim($did) == '') { 3045 echo "<script>javascript:alert('"._( 'Invalid DID, must be a non-blank DID')."')</script>";3049 echo "<script>javascript:alert('"._("Invalid DID, must be a non-blank DID")."')</script>"; 3046 3050 return false; 3047 3051 } … … 4406 4410 $device_icon = ($device_item['devicetype'] == 'fixed') ? 'images/telephone_key.png' : 'images/telephone_edit.png'; 4407 4411 $device_label = ' '; 4408 $device_label .= _( 'Edit:');4412 $device_label .= _("Edit:"); 4409 4413 $device_label .= ' '.$device_item['id'].' '.$device_item['description']; 4410 4414 … … 4587 4591 $tmparr['accountcode'] = array('value' => '', 'level' => 1); 4588 4592 $tmparr['mailbox'] = array('value' => '', 'level' => 1); 4593 $tmparr['deny'] = array('value' => '0.0.0.0/0.0.0.0', 'level' => 1); 4594 $tmparr['permit'] = array('value' => '0.0.0.0/0.0.0.0', 'level' => 1); 4589 4595 $currentcomponent->addgeneralarrayitem('devtechs', 'iax2', $tmparr); 4590 4596 unset($tmparr); … … 4608 4614 $tmparr['accountcode'] = array('value' => '', 'level' => 1); 4609 4615 $tmparr['mailbox'] = array('value' => '', 'level' => 1); 4616 $tmparr['deny'] = array('value' => '0.0.0.0/0.0.0.0', 'level' => 1); 4617 $tmparr['permit'] = array('value' => '0.0.0.0/0.0.0.0', 'level' => 1); 4610 4618 $currentcomponent->addgeneralarrayitem('devtechs', 'sip', $tmparr); 4611 4619 unset($tmparr); … … 4695 4703 if ($deviceInfo['device_user'] != 'none') { 4696 4704 $editURL = $_SERVER['PHP_SELF'].'?type=setup&display=users&skip=0&extdisplay='.$deviceInfo['user']; 4697 $tlabel = $deviceInfo['devicetype'] == 'adhoc' ? sprintf(_( 'Edit Default User: %s'),$deviceInfo['user']) : sprintf(_('Edit Fixed User: %s'),$deviceInfo['user']);4705 $tlabel = $deviceInfo['devicetype'] == 'adhoc' ? sprintf(_("Edit Default User: %s"),$deviceInfo['user']) : sprintf(_("Edit Fixed User: %s"),$deviceInfo['user']); 4698 4706 $label = '<span><img width="16" height="16" border="0" title="'.$tlabel.'" alt="" src="images/user_edit.png"/> '.$tlabel.'</span>'; 4699 4707 $currentcomponent->addguielem('_top', new gui_link('edit_user', $label, $editURL, true, false), 0); modules/branches/2.5/core/page.general.php
r7238 r7342 137 137 </td><td align="right"> 138 138 <select name="RECORDING_STATE" tabindex="<?php echo ++$tabindex;?>"> 139 <option value=" ENABLED" <?php echo ($RECORDING_STATE == 'ENABLED' ? 'SELECTED' : '')?>><?php echo _("Enabled")?>140 <option value=" DISABLED" <?php echo ($RECORDING_STATE == 'DISABLED' ? 'SELECTED' : '')?>><?php echo _("Disabled")?>139 <option value="DISABLED" <?php echo ($RECORDING_STATE == 'DISABLED' ? 'SELECTED' : '')?>><?php echo _("Enabled")?> 140 <option value="ENABLED" <?php echo ($RECORDING_STATE == 'ENABLED' ? 'SELECTED' : '')?>><?php echo _("Disabled")?> 141 141 </select> 142 142 </td></tr> modules/branches/2.5/dashboard/page.index.php
r7294 r7342 202 202 $out .= "<h4>"._("Disks")."</h4>"; 203 203 foreach ($sysinfo->filesystems() as $fs) { 204 $out .= draw_graph($fs["mount"], "GB", number_format($fs["used"]/1024/1024, 2 ), number_format($fs["size"]/1024/1024,2), strpos( $fs["options"],"ro" )!==false ? array(0=>"graphok"):null);204 $out .= draw_graph($fs["mount"], "GB", number_format($fs["used"]/1024/1024, 2,".",""), number_format($fs["size"]/1024/1024,2,".",""), strpos( $fs["options"],"ro" )!==false ? array(0=>"graphok"):null); 205 205 } 206 206 modules/branches/2.5/ivr/page.ivr.php
r6945 r7342 286 286 287 287 <tr><td colspan=2><hr /></td></tr> 288 <tr><td colspan=2> 288 <tr><td colspan=2> 289 289 290 <input name="increase" type="submit" value="<?php echo _("Increase Options")?>"> 290 291 … … 320 321 echo "<input type='hidden' name='nbroptions' value=$nbroptions />\n"; 321 322 } 323 324 global $module_hook; 325 echo $module_hook->hookHtml; 322 326 ?> 323 327 <input name="increase" type="submit" value="<?php echo _("Increase Options")?>"> modules/branches/2.5/music/page.music.php
r7272 r7342 157 157 $pattern = ''; 158 158 $handle=opendir($path_to_dir) ; 159 $extensions = array('mp3',' wav'); // list of extensions to match159 $extensions = array('mp3','MP3','wav','WAV'); // list of extensions to match 160 160 161 161 //generate the pattern to look for. … … 205 205 206 206 // If we are dealing with an MP3, we need to decode it to a wav file 207 if (strpos($origmohfile,'.mp3') !== false) {207 if (strpos($origmohfile,'.mp3') | strpos($origmohfile,'.MP3') !== false) { 208 208 $mpg123cmd = "mpg123 -w \"".substr($origmohfile,0,strrpos($origmohfile,".")).".wav\" \"".$origmohfile."\" 2>&1 "; 209 209 exec($mpg123cmd, $output, $returncode); … … 211 211 $newmohfile = $path_to_dir."/wav_".$newname.".wav"; 212 212 //asdf 213 $soxcmd = "sox \"". substr($origmohfile,0,strrpos($origmohfile,".")).".wav\"";213 $soxcmd = "sox \"".$origmohfile."\""; 214 214 $soxcmd .= " -r 8000 -c 1 \"".$newmohfile."\""; 215 215 if($volume){ … … 260 260 // so we have two "original" files to delete 261 261 // 262 if (strpos($origmohfile,'.mp3') !== false) {262 if (strpos($origmohfile,'.mp3') | strpos($origmohfile,'.MP3') !== false) { 263 263 $rmcmd="rm -f \"". substr($origmohfile,0,strrpos($origmohfile,".")).".wav\""; 264 264 exec($rmcmd); modules/branches/2.5/paging/functions.inc.php
r6527 r7342 286 286 $ext->add($extpaging, "_PAGE.", 'AVAIL', new ext_chanisavail('${DB(DEVICE/${EXTEN:4}/dial)}', 'js')); 287 287 $ext->add($extpaging, "_PAGE.", 'SKIPCHECK', new ext_noop('Seems to be available (state = ${AVAILSTATUS}')); 288 $ext->add($extpaging, "_PAGE.", '', new ext_gotoif('$["${DB(DND/${DB(DEVICE/${EXTEN:4}/user)})}" = "YES"]', 'skipself')); 288 289 289 290 $ext->add($extpaging, "_PAGE.", '', new ext_macro('autoanswer','${EXTEN:4}'));
