Last change
on this file since 776 was
776,
checked in by autocommit@…, 8 years ago
|
agregamos lo que estaba con el path nuevo
|
File size:
1.1 KB
|
Line | |
---|
1 | <? |
---|
2 | |
---|
3 | class uiCTA { |
---|
4 | |
---|
5 | var $public_functions = array( |
---|
6 | "changepassword" => True |
---|
7 | ); |
---|
8 | |
---|
9 | function changepassword ($data) |
---|
10 | { |
---|
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); |
---|
18 | |
---|
19 | include_once('/usr/share/alternc/panel/class/functions.php'); |
---|
20 | $db_host=$GLOBALS['mail_change_pwd']['db_host']; |
---|
21 | $db_port=$GLOBALS['mail_change_pwd']['db_port']; |
---|
22 | $db_pwd_user=$GLOBALS['mail_change_pwd']['db_user']; |
---|
23 | $db_pwd_name=$GLOBALS['mail_change_pwd']['db_name']; |
---|
24 | $db_pwd_pass=$GLOBALS['mail_change_pwd']['db_pass']; |
---|
25 | |
---|
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 | } |
---|
34 | |
---|
35 | $username_=str_replace("@","_",$username); |
---|
36 | print "<br /><br /><br />".$username_; |
---|
37 | $crypted_passwd=_md5cr($data['new_passwd']); |
---|
38 | |
---|
39 | $connect_sql=mysql_connect($db_host.":".$db_port,$db_pwd_user,$db_pwd_pass); |
---|
40 | } |
---|
41 | } |
---|
42 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.