Simple website with some JavaScript games.
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.

49 lines
1.4 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. <?php
  2. //ini_set('display_errors', 1);
  3. include 'includes/header.php';
  4. if($loggedIn)
  5. {
  6. //profile
  7. echo '<div class="w3-row w3-padding-32">';
  8. echo '<div class="w3-half w3-container">';
  9. //new game or something
  10. include 'games/bamboofield.html';
  11. echo '</div><div class="w3-half w3-container">';
  12. //profile
  13. include('user/profile.php');
  14. echo '</div>';
  15. }
  16. else
  17. {
  18. //profile(login) & register
  19. echo '<div class="w3-row w3-padding-32">';
  20. echo '<div class="w3-half w3-container">';
  21. //register
  22. include('user/register.php');
  23. echo '</div><div class="w3-half w3-container">';
  24. //profile
  25. include('user/profile.php');
  26. echo '</div>';
  27. }
  28. //4-row
  29. echo '<br><div class="w3-row w3-padding-32">';
  30. echo '<div class="w3-half w3-container"><div style=\'position: relative; width: 100%; height: 0px; padding-bottom: 60%;\'">';
  31. echo '<iframe src="https://www.youtube.com/embed/QhJYKBj3K08" frameborder="0" allowfullscreen style=\'position: absolute; left: 0px; top: 0px; width: 100%; height: 100%\'"></iframe>';
  32. echo '</div></div>';
  33. echo '<div class="w3-half w3-container"><div id="repo1">';
  34. include('games/bamboofield.html');
  35. echo '</div></div></div>';
  36. include 'includes/footer.php';
  37. ?>