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

25 lines
391 B

  1. <?php
  2. require_once './db_connection.php';
  3. require_once './modules/user.mod.php';
  4. require_once './modules/chat.mod.php';
  5. $user_id = $_GET['id'];
  6. $pass = $_GET['pass'];
  7. $chat_message = $_GET['text'];
  8. $user = User :: find ($user_id);
  9. if ($user -> pass === $pass)
  10. {
  11. $chat = new Chat;
  12. $chat -> user_id = $user_id;
  13. $chat -> text = $chat_message;
  14. $chat -> insert ();
  15. }