Changeset 57
- Timestamp:
- Dec 8, 2007, 2:34:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/egroupware/CTA/inc/class.uiCTA.inc.php
r56 r57 9 9 function changepassword ($data) 10 10 { 11 //print ($GLOBALS['egw_info']['user']['account_lid']); 12 //print_r($data); 11 // print ($GLOBALS['egw_info']['user']['account_lid']); 12 // print "<br>"; 13 // print_r($data); 14 // print "<br>GET :"; 15 // print_r ($_GET); 16 // print "<br>POST:"; 17 // print_r ($_POST); 13 18 14 include ('/var/alternc/bureau/class/functions.php');19 include_once('/var/alternc/bureau/class/functions.php'); 15 20 $db_host=$GLOBALS['mail_change_pwd']['db_host']; 16 21 $db_port=$GLOBALS['mail_change_pwd']['db_port']; … … 20 25 21 26 $table=$GLOBALS['mail_change_pwd']['table_users']; 27 $username =$GLOBALS['egw_info']['user']['account_lid']; 28 29 //para cuando se cambia una cuenta desde admin 30 if ($_GET['menuaction'] =='admin.uiaccounts.edit_user') 31 { 32 $username =$_REQUEST['account_lid']; 33 } 22 34 23 $username =$GLOBALS['egw_info']['user']['account_lid']; 24 $username_=str_replace("@","_",$GLOBALS['egw_info']['user']['account_lid']); 35 $username_=str_replace("@","_",$username); 25 36 $crypted_passwd=_md5cr($data['new_passwd']); 26 37 … … 34 45 WHERE alias in (\"$username\",\"$username_\")"; 35 46 36 // print "<br /><br /><br />".$query;47 // print "<br /><br /><br />".$query; 37 48 38 49 $result=mysql_query($query, $connect_sql); … … 45 56 }else 46 57 {return false;} 47 48 58 } 49 50 59 } 60 ?>
Note: See TracChangeset
for help on using the changeset viewer.