Ignore:
Timestamp:
Jan 12, 2008, 10:40:33 PM (17 years ago)
Author:
maron
Message:

Menší úoravy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/includes/global.php

    r216 r217  
    1515    $_SESSION['Pass'] = $_POST['LoginPass'];
    1616   
    17     $Line = mysql_fetch_array($Database->SQLCommand("SELECT ID FROM user WHERE user = '".$_SESSION['User']."'"));
     17    $Line = mysql_fetch_array($Database->SQLCommand("SELECT ID FROM user WHERE LOWER(user) = LOWER('".$_SESSION['User']."')"));
    1818    $_SESSION['UserID'] = $Line['ID'];
    1919  }
     
    3232      $Pass = $_SESSION['Pass'];
    3333   
    34     $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM user WHERE user = '$User'"));
     34    $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM user WHERE LOWER(user) = LOWER('$User')"));
    3535    if (!$Line) {
    3636       return false;
Note: See TracChangeset for help on using the changeset viewer.