Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- class wizRegister {
- protected $sql;
- protected $dir;
- protected $pass;
- protected $lines;
- public $i;
- protected $username;
- protected $password;
- protected $email;
- function SQL($file) {
- $rem = file_get_contents("{$file}.ini");
- $host = explode("[host] ", $rem);
- $root = explode("[root] ", $rem);
- $pass = explode("[pass] ", $rem);
- $this->sql = $host;
- $this->dir = $root;
- $this->pass = $pass;
- $this->port = $intE;
- return mysql_connect($this->host, $this->root, $this->pass, [$this->port]);
- }
- }
- new wizRegister();
- wizRegister::SQL("sql");
- if(isset($_POST["Submit"])) {
- $user = $_POST["Username"];
- $pass = $_POST["Password"];
- $repass = $_POST["RepeatPassword"];
- $email = $_POST["Email"];
- $this->username = $user;
- $this->password = array($pass, $repass, rand(0, 999999999) . "i");
- $this->email = $email;
- mysql_select_db("wizguin");
- $res = mysql_query("wizguin", "SELECT * users");
- if(in_array($this->username, $res) == false) {
- mysql_query('INSERT INTO users(Username, Password, LoginKey, RegisteredTime, Buddies, Ignores, Inventory) VALUES("Test", "Test", "123", "123", "[]", "[]", "[]")');
- }
- else echo "Could not register.";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement