Changeset 7098
- Timestamp:
- 10/22/08 10:28:11 (3 years ago)
- Files:
-
- modules/branches/2.5/core/functions.inc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/core/functions.inc.php
r7014 r7098 4537 4537 $msgConfirmSecret = _("You have not entered a Secret for this device, although this is possible it is generally bad practice to not assign a Secret to a device. Are you sure you want to leave the Secret empty?"); 4538 4538 $msgInvalidSecret = _("Please enter a Secret for this device"); 4539 $msgSecretSameAsExtension = _("You have set your secret and device/extension to the same value. This can be a serious security vulnerability resulting in a hacker compromising your system to make free phone calls. There are many known instances where this has already occurred"); 4540 4539 4541 4540 // zap 4542 4541 $tmparr = array(); … … 4561 4560 // iax2 4562 4561 $tmparr = array(); 4563 $tmparr['secret'] = array('value' => '', 'level' => 0, 'jsvalidation' => ' (' . $_REQUEST['extdisplay'] . ' == theForm.devinfo_secret.value && !confirm("' . $msgSecretSameAsExtension . '")) ||isEmpty() && !confirm("'.$msgConfirmSecret.'")', 'failvalidationmsg' => $msgInvalidSecret);4562 $tmparr['secret'] = array('value' => '', 'level' => 0, 'jsvalidation' => 'isEmpty() && !confirm("'.$msgConfirmSecret.'")', 'failvalidationmsg' => $msgInvalidSecret); 4564 4563 $tmparr['notransfer'] = array('value' => 'yes', 'level' => 1); 4565 4564 $tmparr['context'] = array('value' => 'from-internal', 'level' => 1); … … 4578 4577 // sip 4579 4578 $tmparr = array(); 4580 $tmparr['secret'] = array('value' => '', 'level' => 0, 'jsvalidation' => ' (' . $_REQUEST['extdisplay'] . ' == theForm.devinfo_secret.value && !confirm("' . $msgSecretSameAsExtension . '")) ||isEmpty() && !confirm("'.$msgConfirmSecret.'")', 'failvalidationmsg' => $msgInvalidSecret);4579 $tmparr['secret'] = array('value' => '', 'level' => 0, 'jsvalidation' => 'isEmpty() && !confirm("'.$msgConfirmSecret.'")', 'failvalidationmsg' => $msgInvalidSecret); 4581 4580 $tmparr['dtmfmode'] = array('value' => 'rfc2833', 'level' => 0, 'jsvalidation' => 'isEmpty()', 'failvalidationmsg' => $msgInvalidDTMFMODE ); 4582 4581 $tmparr['canreinvite'] = array('value' => 'no', 'level' => 1);
