Ignore:
Timestamp:
Feb 9, 2019, 8:45:24 PM (6 years ago)
Author:
roby
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/ele_pwd.php

    r2 r257  
    1515    die ("You can't access this file directly...");
    1616}
     17global $dbi;
    1718$aid=$_SESSION['aid'];
    18 $dbi=$_SESSION['dbi'];
    1919$prefix=$_SESSION['prefix'];
    2020$currentlang=$_SESSION['lang'];
     
    6464    $aid=$_SESSION['aid'];
    6565    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();       
    6769        $_SESSION['pwd']=md5($pwd1);
    6870    }else{
Note: See TracChangeset for help on using the changeset viewer.