Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_POST["em"]) && $_POST["em"] != '') $em = $this->db1->e($_POST["em"]);
- if (isset($_POST["fn"]) && $_POST["fn"] != '') $fn = $this->db1->e($_POST["fn"]);
- if (isset($_POST["un"]) && $_POST["un"] != '') $un = $this->db1->e($_POST["un"]);
- if (isset($_POST["pw"]) && $_POST["pw"] != '') $pw = $this->db1->e($_POST["pw"]);
- if (isset($_POST["cpt"]) && $_POST["cpt"] != '') $captcha = $this->db1->e($_POST["cpt"]);
- if (empty($fn)) { $errored = 1; $txterror .= 'Error... '; }
- if (empty($un)) { $errored = 1; $txterror .= 'Error... '; }
- if (empty($em)) { $errored = 1; $txterror .= 'Error... '; }
- if (empty($pw)) { $errored = 1; $txterror .= 'Error... ';}
- if (empty($captcha)) { $errored = 1; $txterror .= 'Error... ';}
- // Save user information
- $this->db1->query("INSERT INTO users SET code='" . $code . "', firstname='" . $fn . "', email='" . $em . "', username='" . $un . "', password='" . $hash . "', salt='" . $salt . "', registerdate='" . time() . "', ipregister='" . $ip . "'");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement