install.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  8. <title>Installation</title>
  9. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" />
  10. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  11. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  12. <!--[if lt IE 9]>
  13. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  14. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  15. <![endif]-->
  16. <style type="text/css">
  17. @media ( max-width : 768px) {
  18. .text-right {
  19. text-align: center;
  20. }
  21. .text-left {
  22. text-align: center;
  23. }
  24. }
  25. #install {
  26. margin: 10px;
  27. }
  28. </style>
  29. </head>
  30. <body>
  31. <div class="container">
  32. <header class="row col-lg-offset-4 col-lg-4 text-center">
  33. <h1>Installation</h1>
  34. </header>
  35. </div>
  36. <div class="container">
  37. <div class="row">
  38. <form method="post" action="/install">
  39. <fieldset>
  40. <legend>Database Connection</legend>
  41. <div class="row">
  42. <div class="col-sm-offset-2 col-sm-4 text-right">
  43. <label for="dbhost">Host:</label>
  44. </div>
  45. <div class="col-sm-4 text-left">
  46. <input type="text" name="dbhost" id="dbhost" value="localhost" />
  47. </div>
  48. </div>
  49. <div class="row">
  50. <div class="col-sm-offset-2 col-sm-4 text-right">
  51. <label for="dbname">Database:</label>
  52. </div>
  53. <div class="col-sm-4 text-left">
  54. <input type="text" name="dbname" id="dbname" value="databaseName" />
  55. </div>
  56. </div>
  57. <div class="row">
  58. <div class="col-sm-offset-2 col-sm-4 text-right">
  59. <label for="dbuser">User:</label>
  60. </div>
  61. <div class="col-sm-4 text-left">
  62. <input type="text" name="dbuser" id="dbuser" value="dbusername" />
  63. </div>
  64. </div>
  65. <div class="row">
  66. <div class="col-sm-offset-2 col-sm-4 text-right">
  67. <label for="dbpass">Password:</label>
  68. </div>
  69. <div class="col-sm-4 text-left">
  70. <input type="text" name="dbpass" id="dbpass" value="DBpa$$w0rd" />
  71. </div>
  72. </div>
  73. </fieldset>
  74. <fieldset>
  75. <legend>Game Settings</legend>
  76. <div class="row">
  77. <div class="col-sm-offset-2 col-sm-4 text-right">
  78. <label for="gamename">Game Name:</label>
  79. </div>
  80. <div class="col-sm-4 text-left">
  81. <input type="text" name="gamename" id="gamename" value="BrowserGame" />
  82. </div>
  83. </div>
  84. <div class="row">
  85. <div class="col-sm-offset-2 col-sm-4 text-right">
  86. <label for="adminuser">Admin User:</label>
  87. </div>
  88. <div class="col-sm-4 text-left">
  89. <input type="text" name="adminuser" id="adminuser" value="admin" />
  90. </div>
  91. </div>
  92. <div class="row">
  93. <div class="col-sm-offset-2 col-sm-4 text-right">
  94. <label for="adminpass">Admin Password:</label>
  95. </div>
  96. <div class="col-sm-4 text-left">
  97. <input type="text" name="adminpass" id="adminpass" value="admin" />
  98. </div>
  99. </div>
  100. </fieldset>
  101. <fieldset>
  102. <legend>Cleanup</legend>
  103. <div class="row">
  104. <div class="col-sm-offset-2 col-sm-4 text-right">
  105. <label for="deletesetup">Delete Setup after installation?</label>
  106. </div>
  107. <div class="col-sm-4 text-left">
  108. <input type="checkbox" name="deletesetup" id="deletesetup" /> Delete
  109. </div>
  110. </div>
  111. </fieldset>
  112. <div class="row">
  113. <div class="col-sm-offset-4 col-sm-4 text-center">
  114. <input type="submit" name="install" id="install" value="Install" />
  115. </div>
  116. </div>
  117. </form>
  118. </div>
  119. </div>
  120. <footer class="row"></footer>
  121. <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
  122. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  123. </body>
  124. </html>