すくすくゴートうちゃんのサーヴァ(黒歴史)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

inherit_user.php 329 B

123456789101112131415161718192021
  1. <?php
  2. require_once './db_connection.php';
  3. require_once './modules/user.mod.php';
  4. $id = $_GET['id'];
  5. $code = $_GET['code'];
  6. $user = User :: find ($id);
  7. if ($user -> inheritance_code === $code)
  8. {
  9. echo implode (',', [1,
  10. $user -> name,
  11. $user -> pass]);
  12. }
  13. else
  14. echo 0;