Changeset 11776
- Timestamp:
- 03/10/11 14:12:32 (2 years ago)
- Files:
-
- modules/branches/2.9/backup/functions.inc.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.9/backup/functions.inc.php
r10748 r11776 90 90 $html.=_("Restore your Complete Backup set overwriting all files.").'</span></a><br></li><br>'; 91 91 if(array_search('voicemail.tar.gz',$restore_files)){ 92 $html.="<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')\">";93 $html.=_('Restore Voice Mail Files').'<span>';94 $html.=_('Restore your Voicemail files from this backup set. NOTE! This will delete any voicemail currently in the voicemail boxes.');92 $html.="<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')\">"; 93 $html.=_('Restore Voicemail Files').'<span>'; 94 $html.=_('Restore your Voicemail files from this backup set. NOTE! This will delete any Voicemail currently in the Voicemail boxes.'); 95 95 $html.='</span></a><br></li><br>'; 96 96 } … … 140 140 // First restore voicemial (for some reason if you do it all at once these don't get restored 141 141 exec('/bin/rm -rf '.$amp_conf['ASTSPOOLDIR'].'/voicemail 2>&1',$out_arr,$ret); 142 backup_errors($error_cause, $ret, _('failed to remove voicemail directory'));142 backup_errors($error_cause, $ret, _('failed to remove Voicemail directory')); 143 143 $tar_cmd="$tar -PxvOz -f \"$dir\" /tmp/ampbackups.$fileholder/voicemail.tar.gz | $tar -Pxvz"; 144 144 exec($tar_cmd,$out_arr,$ret); … … 189 189 exec("/bin/rm -rf /tmp/ampbackups.$fileholder 2>&1",$out_arr,$ret); 190 190 backup_errors($error_cause, $ret, _('failed to remove exploded backup sets from tmp')); 191 if(!count($error_cause)){$message=_("Restored Voice Mail");}191 if(!count($error_cause)){$message=_("Restored Voicemail");} 192 192 break; 193 193 case 'Recordings': … … 493 493 </tr> 494 494 <tr> 495 <td><a href="#" class="info"><?php echo _("Voice Mail");?><span><?php echo _("Backup the System VoiceMail Boxes... CAUTION: Could result in large file");?></span></a>: </td>495 <td><a href="#" class="info"><?php echo _("Voicemail");?><span><?php echo _("Backup the System Voicemail Boxes... CAUTION: Could result in large file");?></span></a>: </td> 496 496 <td><input type="checkbox" name="voicemail" tabindex="<?php echo ++$tabindex;?>" value="yes" <?php echo ($opts['voicemail']=='yes')?'checked':''; ?> /></td> 497 497 </tr>
