Advertisement
xandr91

Q2APHP PRO DEFAULT LANG FIX

Dec 22nd, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.19 KB | None | 0 0
  1. // core/engine.php, lines from 2284 - 2288:
  2. $mysqlmessage["user"] .= "(username, password, real_name, real_surname, points, rank, verified, email, website, localization, bio, sex, what_ask, photo, status, ip, anonymous_view, reg_date, lang) ";
  3. $mysqlmessage["user"] .= "VALUES ";
  4. $mysqlmessage["user"] .= "(?, ?, ?, ?, '1', '0', '0', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
  5. $stmt = $this->conn->prepare($mysqlmessage["user"]);
  6. $stmt->execute(array($username, $password, $name, $surname, $email, $website, $location, $about_me, $sex, $what_ask, $photo, $status, $ip, $protection, $reg_date, $_COOKIE['lang']));
  7.  
  8. // and lines from 2352 - 2356:
  9. $mysqlmessage["user"] .= "(username, password, real_name, real_surname, points, rank, verified, email, website, localization, bio, sex, what_ask, photo, status, ip, anonymous_view, reg_date, lang, social) ";
  10. $mysqlmessage["user"] .= "VALUES ";
  11. $mysqlmessage["user"] .= "(?, '', ?, ?, '1', '0', '0', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
  12. $stmt = $this->conn->prepare($mysqlmessage["user"]);
  13. $stmt->execute(array($username, $name, $surname, $email, $website, $location, $about_me, $sex, $what_ask, $photo, $status, $ip, $protection, $reg_date, $_COOKIE['lang'], $id));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement