osu! 의 개인 대회 신청/관리 전용 모듈 제작 https://ssl.hakase.io/osu/test.php
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.

test.php 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * @file test.php
  4. * @author Hakase (contact@hakase.kr)
  5. */
  6. require_once 'include.php';
  7. $Check = new OsuTournament\Check();
  8. function GetDataTest()
  9. {
  10. global $Check;
  11. if(empty($Check->RealID) || empty($Check->OsuID))
  12. {
  13. echo 'User not found<br><br>';
  14. return false;
  15. }
  16. echo $Check->RealID . ' (' . $Check->OsuID . ')';
  17. if ($Check->Occupation_Set === $Check->Occupation)
  18. echo '<br>You are applied!';
  19. elseif (empty($Check->Occupation))
  20. echo '<br>Please change occupation to ' . $Check->Occupation_Set . '<br>Your Occupation is blank.';
  21. else
  22. echo '<br>Please change occupation to ' . $Check->Occupation_Set . '<br>Your Occupation : ' . $Check->Occupation;
  23. echo '<br>';
  24. echo 'Play Count : ' . $Check->Playcount;
  25. echo '<br>';
  26. echo 'Performance : ' . $Check->Performance;
  27. echo '<br>';
  28. echo 'Ranking : ' . $Check->Rank;
  29. echo '<br>';
  30. echo 'Server : ';
  31. switch($Check->server)
  32. {
  33. case 'osu':
  34. echo 'osu!';
  35. break;
  36. case 'ripple':
  37. echo 'Ripple';
  38. break;
  39. default:
  40. echo 'No';
  41. }
  42. echo '<br><br>';
  43. }
  44. $Check->CheckUser('Hakase', 0, 2);
  45. GetDataTest();
  46. $Check->CheckUser('Hakase', 1, 2);
  47. GetDataTest();
  48. $Check->CheckUser(5173, 0, 2);
  49. GetDataTest();
  50. $Check->CheckUser('aergn8i39jf', 1, 2);
  51. GetDataTest();
  52. $Check->CheckUser('peppy', 0);
  53. GetDataTest();
  54. $Check->CheckUser('aergn8i39jf', 1, 1);
  55. GetDataTest();
  56. $Check->CheckUser('3318', 0, 2, 'https://test.hoto.us/ripple');
  57. GetDataTest();
  58. $Check->CheckUser('3318', 0, 2);
  59. GetDataTest();