$username, "password" => $password, "ip" => $ip, "lastlogin" => '', "x" => '0', "y" => '0', "z" => '0', "world" => 'world', "email" => $mail ); $ic = array ( "username" => $username, "balance" => "30", "hidden" => "0" ); $data = array ( "address" => $mail, 'verify' => '', 'statu' => '0', 'time' => date ( 'Y-m-d' ), "user" => $username ); if ($this->_insert ( 'authme', $value ) == 0) { return false; } else { if ($this->_insert ( 'mail', $data ) == 0) { return false; } else { if ($this->_insert ( 'iconomy', $ic ) == 0) { return false; } else { return true; } } } } public function login($username, $password) { if ($this->_sum ( "select * from `authme` where `username` = '$username' and `password` = '$password'" ) == 0) return false; else return true; } public function pass($username, $newpass) { $key = array ( "password" => $newpass ); $num = $this->_update ( 'authme', $key, "where username='" . $username . "'" ); if ($num == 0) return false; return true; } public function pass_forge($value, $username) { $key = array ( "password" => $value ); $num = $this->_update ( 'authme', $key, "where username='" . $username . "'" ); // print_r($key); if ($num == 0) return false; return true; } public function check_user($user) { $sum = $this->_sum ( "select * from `authme` where `username` = '" . $user . "'" ); if ($sum == 0) return true; return false; } } ?>