Ejemplo n.º 1
0
 public function cookies($login, $pass)
 {
     $cfg = new config();
     $sql = new sql();
     $body = new body();
     $result = $sql->exe($cfg->get("realmd"), "SELECT * FROM `account` WHERE `username` = '" . $login . "' AND `sha_pass_hash` = SHA1(UPPER('" . $login . ":" . $pass . "'))");
     $user = $sql->fetch($result);
     if ($user['gmlevel'] >= $cfg->get("mingm")) {
         $user['site_notice'] = $body->CheckVersion();
     }
     if ($user['id'] > "0") {
         return $user;
     }
 }