Changeset 257 for trunk/admin/modules/Elezioni/ele_pwd.php
- Timestamp:
- Feb 9, 2019, 8:45:24 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_pwd.php
r2 r257 15 15 die ("You can't access this file directly..."); 16 16 } 17 global $dbi; 17 18 $aid=$_SESSION['aid']; 18 $dbi=$_SESSION['dbi'];19 19 $prefix=$_SESSION['prefix']; 20 20 $currentlang=$_SESSION['lang']; … … 64 64 $aid=$_SESSION['aid']; 65 65 if ($pwd1==$pwd2 and md5($oldpwd)==$_SESSION['pwd']) { 66 $result = mysql_query("update ".$prefix."_authors set pwd='".md5($pwd1)."' WHERE aid='$aid' and pwd='".md5($oldpwd)."'", $dbi) || die("Errore di accesso ai dati!".mysql_error()); 66 $sql="update ".$prefix."_authors set pwd='".md5($pwd1)."' WHERE aid='$aid' and pwd='".md5($oldpwd)."'"; 67 $sth = $dbi->prepare("$sql"); 68 $sth->execute(); 67 69 $_SESSION['pwd']=md5($pwd1); 68 70 }else{
Note:
See TracChangeset
for help on using the changeset viewer.