


login.php
<?php { include("./class/db_connecton.php"); } else { } $login = $_POST['login']; $password = $_POST['password']; $con = new PolaczZBaza(); $con->LogowanieNaStronie($login, $password); ?>
funkcja logowania
function LogowanieNaStronie($login, $password) { $this->login = $login; $this->password = $password; if(!$this->login || !$this->password) { } $this->Connection(); $this->query = mysql_query('SELECT * from dopalamy_xferxd.ibf_members where members_l_username="'.$this->login.'"'); { $this->passwd = $this->password; $this->salt = $this->tete['members_pass_salt']; $this->zapytanie = mysql_query('SELECT * from dopalamy_xferxd.ibf_members where members_l_username="'.$this->login.'" AND members_pass_hash="'.$this->hashpass.'" limit 1') or die (mysql_error()); //echo $this->zapytanie; { { if($this->login != $this->wynik['members_l_username'] && $this->hashpass != $this->wynik['members_pass_hash']) { } else { $_SESSION['zalogowany'] = $this->login; } } } } }
bardzo proszę o pomoc