| 1 |
<?php |
|---|
| 2 |
//This file is part of FreePBX. |
|---|
| 3 |
// |
|---|
| 4 |
// FreePBX is free software: you can redistribute it and/or modify |
|---|
| 5 |
// it under the terms of the GNU General Public License as published by |
|---|
| 6 |
// the Free Software Foundation, either version 2 of the License, or |
|---|
| 7 |
// (at your option) any later version. |
|---|
| 8 |
// |
|---|
| 9 |
// FreePBX is distributed in the hope that it will be useful, |
|---|
| 10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 |
// GNU General Public License for more details. |
|---|
| 13 |
// |
|---|
| 14 |
// You should have received a copy of the GNU General Public License |
|---|
| 15 |
// along with FreePBX. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 16 |
// |
|---|
| 17 |
// Copyright (C) 2004 Coalescent Systems Inc. (info@coalescentsystems.ca) |
|---|
| 18 |
// |
|---|
| 19 |
if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); } |
|---|
| 20 |
?> |
|---|
| 21 |
|
|---|
| 22 |
<div class="rnav"> |
|---|
| 23 |
<?php |
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
$extens = core_users_list(); |
|---|
| 28 |
drawListMenu($extens, $skip, $type, $display, $extdisplay, _("User")); |
|---|
| 29 |
?> |
|---|
| 30 |
</div> |
|---|
| 31 |
|
|---|
| 32 |
<?php |
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
?> |
|---|
| 36 |
|
|---|
| 37 |
<script language="javascript"> |
|---|
| 38 |
<!-- |
|---|
| 39 |
|
|---|
| 40 |
function checkBlankUserPwd() { |
|---|
| 41 |
msgConfirmBlankUserPwd = "<?php echo _('You have not entered a User Password. While this is acceptable, this user will not be able to login to an AdHoc device.\n\nAre you sure you wish to leave the User Password empty?'); ?>"; |
|---|
| 42 |
|
|---|
| 43 |
// check for password and warn if none entered |
|---|
| 44 |
if (isEmpty(theForm.password.value)) { |
|---|
| 45 |
var cnf = confirm(msgConfirmBlankUserPwd); |
|---|
| 46 |
if (!cnf) { |
|---|
| 47 |
theForm.password.focus(); |
|---|
| 48 |
return false; |
|---|
| 49 |
} |
|---|
| 50 |
} |
|---|
| 51 |
return true; |
|---|
| 52 |
} |
|---|
| 53 |
|
|---|
| 54 |
//--> |
|---|
| 55 |
</script> |
|---|
| 56 |
|
|---|