Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 5d106402

Přidáno uživatelem Filip Jani před téměř 6 roky(ů)

Re #7580 přihlášení uživatele v arabic

Zobrazit rozdíly:

old/html/multidic/functions/dictionary.php
47 47
  global $_SESSION;
48 48
  if (!Empty($jmeno) && !Empty($heslo)) {
49 49
    $DB = new DB_Sql();
50
    $DB->query( "select * " .
51
    		"from \"user\" " .
52
    		"where nick = '".pg_escape_string($jmeno)."' " .
53
    				"and pass = '".pg_escape_string($heslo)."'");//, array($jmeno, $heslo) );
54
    $DB->next_record();
50
    $result = $DB->query( "select * " .
51
    		"from user " .
52
    		"where nick = '".$DB->escape_string($jmeno)."' " .
53
    				"and pass = '".$DB->escape_string($heslo)."'");//, array($jmeno, $heslo) );
55 54
    if ($DB->num_rows() != 1)
56 55
      return false;
57 56
    session_regenerate_id();

Také k dispozici: Unified diff