Changeset 7723
- Timestamp:
- 05/13/09 19:59:06 (4 years ago)
- Files:
-
- modules/branches/2.6/voicemail/functions.inc.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.6/voicemail/functions.inc.php
r7457 r7723 291 291 document.getElementById('delete0').disabled=dval; 292 292 document.getElementById('delete1').disabled=dval; 293 document.getElementById('imapuser').disabled=dval; 294 document.getElementById('imappassword').disabled=dval; 293 295 document.getElementById('options').disabled=dval; 294 296 document.getElementById('vmcontext').disabled=dval; … … 450 452 if (isset($alloptions)) { 451 453 foreach ($alloptions as $option) { 452 if ( ($option!="attach") && ($option!="envelope") && ($option!="saycid") && ($option!="delete") && ($option!= '') )454 if ( ($option!="attach") && ($option!="envelope") && ($option!="saycid") && ($option!="delete") && ($option!="imapuser") && ($option!="imappassword") && ($option!='') ) 453 455 $options .= $option.'='.$vmoptions[$option].'|'; 454 456 } … … 464 466 $vmops_envelope = 'no'; 465 467 $vmops_delete = 'no'; 468 $vmops_imapuser = null; 469 $vmops_imappassword = null; 466 470 } 467 471 … … 494 498 $currentcomponent->addguielem($section, new gui_radio('envelope', $currentcomponent->getoptlist('vmyn'), $vmops_envelope, _('Play Envelope'), _("Envelope controls whether or not the voicemail system will play the message envelope (date/time) before playing the voicemail message. This setting does not affect the operation of the envelope option in the advanced voicemail menu."), $disable)); 495 499 $currentcomponent->addguielem($section, new gui_radio('delete', $currentcomponent->getoptlist('vmyn'), $vmops_delete, _('Delete Voicemail'), _("If set to \"yes\" the message will be deleted from the voicemailbox (after having been emailed). Provides functionality that allows a user to receive their voicemail via email alone, rather than having the voicemail able to be retrieved from the Webinterface or the Extension handset. CAUTION: MUST HAVE attach voicemail to email SET TO YES OTHERWISE YOUR MESSAGES WILL BE LOST FOREVER."), $disable)); 500 $currentcomponent->addguielem($section, new gui_textbox('imapuser', $vmops_imapuser, _('IMAP Username'), sprintf(_("This is the IMAP username, if using IMAP storage"),"<br /><br />"),'','',true,0,$disable)); 501 $currentcomponent->addguielem($section, new gui_textbox('imappassword', $vmops_imappassword, _('IMAP Password'), sprintf(_("This is the IMAP password, if using IMAP storage"),"<br /><br />"),'','',true,0,$disable)); 496 502 $currentcomponent->addguielem($section, new gui_textbox('options', $options, _('VM Options'), sprintf(_("Separate options with pipe ( | )%sie: review=yes|maxmessage=60"),"<br /><br />"),'','',true,0,$disable)); 497 503 $currentcomponent->addguielem($section, new gui_textbox('vmcontext', $vmcontext, _('VM Context'), _("This is the Voicemail Context which is normally set to default. Do not change unless you understand the implications."), "frm_${display}_isVoiceMailEnabled() && isEmpty()", $msgInvalidVMContext, false,0,$disable)); … … 754 760 } 755 761 } 762 if ($imapuser!='' && $imapuser!='') { 763 $vmoptions['imapuser'] = $imapuser; 764 $vmoptions['imappassword'] = $imappassword; 765 } 756 766 $vmoption = explode("=",$attach); 757 767 $vmoptions[$vmoption[0]] = $vmoption[1];
