prep.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. require_once "mdie/meekrodb.php";
  3. ini_set('display_errors', '0');
  4. ini_set('max_execution_time', '10000');
  5. ini_set('max_input_time', '10000');
  6. ini_set('max_input_vars', '10000');
  7. ?>
  8. <html>
  9. <head>
  10. <script src="jquery.min.js"></script>
  11. <link rel="stylesheet" href="bootstrap/bootstrap.min.css" media="screen">
  12. <link rel="stylesheet" href="jquery-ui.min.css" type="text/css" />
  13. <script type="text/javascript" src="http://code.jquery.com/ui/1.10.1/jquery-ui.min.js"></script>
  14. <meta http-equiv="Pragma" content="no-cache">
  15. <meta http-equiv="Expires" content="-1">
  16. </head>
  17. <body>
  18. <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
  19. <a class="navbar-brand" href="index.php">Welcome</a>
  20. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor02" aria-controls="navbarColor02" aria-expanded="false" aria-label="Toggle navigation">
  21. <span class="navbar-toggler-icon"></span>
  22. </button>
  23. <div class="collapse navbar-collapse" id="navbarColor02">
  24. <ul class="navbar-nav mr-auto">
  25. </ul>
  26. <form action="history.php" method="get" class="form-inline my-2 my-lg-0">
  27. <input type='text' name='c' class='auto' placeholder="Search">
  28. <button class="btn btn-secondary my-2 my-sm-0" type="submit">Go</button>
  29. </form>
  30. </div>
  31. </nav>
  32. <?php
  33. $step = $_GET["step"];
  34. if(!$step) {
  35. $step = 0;
  36. }
  37. switch ($step) {
  38. // Introduction
  39. case 0:
  40. ?>
  41. <h3>
  42. Preperation
  43. <small class="text-muted">the basics</small>
  44. </h3>
  45. <p class="lead"><?php
  46. echo "Firstly, as this is experimental, it takes a little work to setup, but is greatly beneficial.<br />";
  47. echo "We'll need to: <br /><br />1) Setup MySQL details in 2 places,<br />2) Import SQL files, <br />3) Delete prep.php, <br/>4) Decide which coins to be indexed. ";;
  48. echo "<br /><br />Very easy ... <hr />Data polled via Coin Gecko<hr />";
  49. echo "<a href=\"?step=1\">Click for Step 1</a></p>";
  50. break;
  51. case 1:
  52. echo "Step 1<hr />";
  53. echo "In <strong>mdie/connect.php</strong>, <strong>mdie/meekrodb.php</strong>, and <strong>search.php</strong> to enter MySQL details.<br />";
  54. echo "So you will have wanted to create a user/database specifically for MDIE. (Grant all for the install and then max CREATE, INSERT, SELECT, UPDATE).";
  55. echo "<br /><br />Step 1 must be complete to complete step 2.";
  56. echo "<br /><br /><a href=\"?step=2\">Click for Step 2</a>";
  57. break;
  58. // Importing of SQL files
  59. case 2:
  60. //echo "";
  61. include "importsql.php";
  62. break;
  63. case 3:
  64. echo "Together we made it! Step 3. <hr /><br /><br />";
  65. echo "Once MDIE is running, a list of coins can be found in www with the name COINLIST.pdf or:<br />";
  66. echo "https://urcpu.com/coinlist.pdf<br /><br />";
  67. echo "By default, MDIE starts with around 30 coins to index. Go to \"Coin Management\" to remove coins<br />";
  68. echo "or add new ones. You want to use the \"slug\" found in the conlist PDF.<br /><br />";
  69. echo "For example, Bitcoin Silver would be added as <strong>bitcoin-silver</strong><br /><br />";
  70. echo "MDIE is limited to 100 updates per minute on prices. In theory you could safely poll 90 coins per minute. Time adjustment feature soon.<br /><br />";
  71. echo "When ready, delete prep.php inside the <strong>www</strong> directory and restart MDIE.<br /><br >";
  72. echo "Please submit any bugs, contributions, etc on the repo or join my Discord.<br /><br />";
  73. echo "Thank you for trying Market Data Indexing Engine!";
  74. break;
  75. }
  76. ?>
  77. </body>
  78. </html>
  79. <?php
  80. ?>