index.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. $pdo = null;
  3. try {
  4. $pdo = new PDO("sqlite:" . './slork.sqlite');
  5. } catch (PDOException $e) {
  6. // handle the exception here
  7. }
  8. /**
  9. * BUSINESS LOGIC
  10. *
  11. * 1) First we validate or create a maintainer.
  12. * 2) The maintainer will be presented a page with
  13. * players. He can edit or remove a player.
  14. * 3) The edit page allows the maintainer to add
  15. * or remove features from the player.
  16. */
  17. if ( isset( $_REQUEST['m'] ) ) {
  18. // There is a maintainer
  19. echo "Empty statement";
  20. }
  21. ?>
  22. <!doctype html>
  23. <html lang="en">
  24. <head>
  25. <!-- Required meta tags -->
  26. <meta charset="utf-8">
  27. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  28. <!-- Bootstrap CSS -->
  29. <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  30. <title>Hello, world!</title>
  31. </head>
  32. <body>
  33. <div class="container">
  34. <div class="row">
  35. <div class="col-md">
  36. One of three columns
  37. </div>
  38. <div class="col-md">
  39. One of three columns
  40. </div>
  41. <div class="col-md">
  42. One of three columns
  43. </div>
  44. </div>
  45. </div>
  46. <!-- Optional JavaScript -->
  47. <!-- jQuery first, then Popper.js, then Bootstrap JS -->
  48. <script src="//code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
  49. <script src="//cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  50. <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  51. </body>