Changeset 4325 for trunk/password.php


Ignore:
Timestamp:
Nov 20, 2009, 3:17:04 PM (14 years ago)
Author:
nikrou
Message:

Feature 1244 resolved
Replace all mysql functions in core code by ones independant of database engine

Fix small php code synxtax : hash must be accessed with [ ] and not { }.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/password.php

    r4304 r4325  
    5757  else if (isset($_POST['mail_address']) and !empty($_POST['mail_address']))
    5858  {
    59     $mail_address = mysql_real_escape_string($_POST['mail_address']);
     59    $mail_address = pwg_db_real_escape_string($_POST['mail_address']);
    6060   
    6161    $query = '
     
    7575    $result = pwg_query($query);
    7676
    77     if (mysql_num_rows($result) > 0)
     77    if (pwg_db_num_rows($result) > 0)
    7878    {
    7979      $error_on_mail = false;
    8080      $datas = array();
    8181     
    82       while ($row = mysql_fetch_assoc($result))
     82      while ($row = pwg_db_fetch_assoc($result))
    8383      {
    8484        $new_password = generate_key(6);
Note: See TracChangeset for help on using the changeset viewer.