すくすくゴートうちゃんのサーヴァ(黒歴史)
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.
 
 
 

18 lines
246 B

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