- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
<?php
function Test()
{
if (isset($this->session->login) && isset($this->session->password)) {
if ($this->session->ip != $_SERVER["REMOTE_ADDR"]) {
$this->db->Query("INSERT INTO `hackers`
SET `ip` = '%s', `get` = '%s'", $_SERVER['REMOTE_ADDR'], $_SERVER["REQUEST_METHOD"]." | ".$_SERVER["REQUEST_URI"]);
exit("Critical error! Stopping...");
} else {
$this->db->Query("SELECT *
FROM `users`
WHERE `login` = '%s' AND password = '%s' LIMIT 1", $this->session->login, $this->session->password);
if ($this->db->Num()) {
return $this->db->Fetch();
} else {
return false;
}
}
} else {
return false;
}
}
striker 23.02.2011 10:31 # +4
Sulik78 23.02.2011 10:57 # 0
striker 23.02.2011 10:58 # +2
Sulik78 23.02.2011 10:59 # +2
свое не пахнет, на свое не придешь :)
Lure Of Chaos 24.02.2011 01:07 # +3