2 include_once("../globals.php");
3 include_once("$srcdir/auth.inc");
4 if($GLOBALS['use_active_directory']) {
10 <link rel
="stylesheet" href
="<?php echo $css_header;?>" type
="text/css">
11 <script src
="checkpwd_validation.js" type
="text/javascript"></script
>
12 <script type
="text/javascript" src
="<?php echo $GLOBALS['assets_static_relative']; ?>/jquery-min-1-9-1/index.js"></script
>
14 <script language
='JavaScript'>
15 //Validating password and display message if password field is empty - starts
16 var webroot
='<?php echo $webroot?>';
17 function update_password()
24 $
.post("user_info_ajax.php",
26 curPass
: $
("input[name='curPass']").val(),
27 newPass
: $
("input[name='newPass']").val(),
28 newPass2
: $
("input[name='newPass2']").val(),
32 $
("input[type='password']").val("");
33 $
("#display_msg").html(data
);
42 <body
class="body_top">
44 <span
class="title"><?php
echo xlt('Password Change'); ?
></span
>
49 $ip=$_SERVER['REMOTE_ADDR'];
50 $res = sqlStatement("select fname,lname,username from users where id=?",array($_SESSION["authId"]));
51 $row = sqlFetchArray($res);
54 <div id
="display_msg">
57 <FORM NAME
="user_form" METHOD
="POST" ACTION
="user_info.php"
58 onsubmit
="top.restoreSession()">
59 <input type
=hidden name
=secure_pwd value
="<?php echo $GLOBALS['secure_password']; ?>">
62 <TD
><span
class=text
><?php
xl('Full Name','e'); ?
>: </span
></TD
>
63 <TD
><span
class=text
><?php
echo htmlspecialchars($iter["fname"] . " " . $iter["lname"], ENT_NOQUOTES
); ?
></span
></td
>
67 <TD
><span
class=text
><?php
xl('Username','e'); ?
>: </span
></TD
>
68 <TD
><span
class=text
><?php
echo $iter["username"]; ?
></span
></td
>
72 <TD
><span
class=text
><?php
xl('Current Password','e'); ?
>: </span
></TD
>
73 <TD
><input type
=password name
=curPass size
=20 value
="" autocomplete
='off'></td
>
77 <TD
><span
class=text
><?php
xl('New Password','e'); ?
>: </span
></TD
>
78 <TD
><input type
=password name
=newPass size
=20 value
="" autocomplete
='off'></td
>
81 <TD
><span
class=text
><?php
xl('Repeat New Password','e'); ?
>: </span
></TD
>
82 <TD
><input type
=password name
=newPass2 size
=20 value
="" autocomplete
='off'></td
>
86 <br
> 
; 
; 
;
87 <INPUT TYPE
="Submit" VALUE
=<?php
echo xla('Save Changes'); ?
> onClick
="return update_password()">
96 // da39a3ee5e6b4b0d3255bfef95601890afd80709 == blank