index.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. if (!empty($_GET['q'])) {
  3. switch ($_GET['q']) {
  4. case 'info':
  5. phpinfo();
  6. exit;
  7. break;
  8. }
  9. }
  10. ?>
  11. <!DOCTYPE html>
  12. <html>
  13. <head>
  14. <title>Laragon</title>
  15. <link href="https://fonts.googleapis.com/css?family=Karla:400" rel="stylesheet" type="text/css">
  16. <style>
  17. html, body {
  18. height: 100%;
  19. }
  20. body {
  21. margin: 0;
  22. padding: 0;
  23. width: 100%;
  24. display: table;
  25. font-weight: 100;
  26. font-family: 'Karla';
  27. }
  28. .container {
  29. text-align: center;
  30. display: table-cell;
  31. vertical-align: middle;
  32. }
  33. .content {
  34. text-align: center;
  35. display: inline-block;
  36. }
  37. .title {
  38. font-size: 96px;
  39. }
  40. .opt {
  41. margin-top: 30px;
  42. }
  43. .opt a {
  44. text-decoration: none;
  45. font-size: 150%;
  46. }
  47. a:hover {
  48. color: red;
  49. }
  50. </style>
  51. </head>
  52. <body>
  53. <div class="container">
  54. <div class="content">
  55. <div class="title" title="Laragon">Laragon</div>
  56. <div class="info"><br />
  57. <?php print($_SERVER['SERVER_SOFTWARE']); ?><br />
  58. PHP version: <?php print phpversion(); ?> <span><a title="phpinfo()" href="/?q=info">info</a></span><br />
  59. Document Root: <?php print ($_SERVER['DOCUMENT_ROOT']); ?><br />
  60. </div>
  61. <div class="opt">
  62. <div><a title="Getting Started" href="https://laragon.org/docs">Getting Started</a></div>
  63. </div>
  64. </div>
  65. </div>
  66. </body>
  67. </html>