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.

145 lines
5.6KB

  1. <?php
  2. ERROR_REPORTING(E_ALL & ~E_NOTICE);
  3. define("SCRIPT_VALID", "Is Valid");
  4. // ATTENTION: PLEASE EDIT THIS LINE TO GET THE RIGHT URL
  5. define("BASE_URL", "http://$_SERVER[HTTP_HOST]/EXTDonationsSystem/");
  6. foreach(glob("settings/*.php") as $pathname)
  7. {
  8. include_once $pathname;
  9. }
  10. foreach(glob("core/*.php") as $pathname)
  11. {
  12. include_once $pathname;
  13. }
  14. $getdata = new Database(DATABASE_HOST, DATABASE_USER, DATABASE_PASSWORD, DATABASE_DATABASE);
  15. $getdata->Query("UPDATE duser SET active = '0' WHERE timestamp < NOW() - INTERVAL 90 DAY");
  16. ?>
  17. <!doctype html>
  18. <html>
  19. <head>
  20. <title>Donationsystem</title>
  21. <meta name="viewport" content="width=device-width, initial-scale=1">
  22. <meta charset="UTF-8">
  23. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  24. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  25. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
  26. <!-- Optional theme -->
  27. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
  28. <!-- Latest compiled and minified JavaScript -->
  29. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
  30. <?php
  31. foreach(glob("css/*.css") as $pathname)
  32. {
  33. echo '<link rel="stylesheet" type="text/css" href="'.$pathname.'"/>';
  34. }
  35. ?>
  36. </head>
  37. <body>
  38. <div id="wrapper" class="container-fluid">
  39. <div class="row">
  40. <div id="navi" class="col-md-4">
  41. <div class="panel panel-default">
  42. <div class="panel-heading">
  43. <h3 class="panel-title">Login</h3>
  44. </div>
  45. <div class="panel-body">
  46. <?php
  47. include "./system/notmain.php";
  48. ?>
  49. </div>
  50. </div>
  51. <div class="panel panel-default">
  52. <div class="panel-heading">
  53. <h3 class="panel-title">Navigation</h3>
  54. </div>
  55. <div class="panel-body">
  56. <div class="sidebar-nav">
  57. <div class="navbar navbar-default" role="navigation">
  58. <div class="navbar-header">
  59. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-navbar-collapse">
  60. <span class="sr-only">Aktiviere Navigation</span>
  61. <span class="icon-bar"></span>
  62. <span class="icon-bar"></span>
  63. <span class="icon-bar"></span>
  64. </button>
  65. <span class="visible-xs navbar-brand">Menu</span>
  66. </div>
  67. <div class="navbar-collapse collapse sidebar-navbar-collapse">
  68. <ul class="nav navbar-nav">
  69. <?php
  70. include_once "./system/navi.php";
  71. ?>
  72. </ul>
  73. </div><!--/.nav-collapse -->
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <div class="panel panel-default">
  79. <div class="panel-heading">
  80. <h3 class="panel-title">Währungsarten</h3>
  81. </div>
  82. <table class="table">
  83. <tr><th>Art</th><th>Verwendung</th></tr>
  84. <tr><th><img src="img/Gold.gif" alt="Gold" /> Gold</th><td>Donationwährung<br /></td></tr>
  85. <tr><th><img src="img/Silber.gif" alt="Silber" /> Silber</th><td>Lohnwährung<br /></td></tr>
  86. <tr><th><img src="img/Bronze.gif" alt="Bronze" /> Bronze</th><td>Tauschwährung<br /></td></tr>
  87. </table>
  88. </div>
  89. <?php if (checkaccess("ADMIN")) { ?>
  90. <div class="panel panel-default">
  91. <div class="panel-heading">
  92. <h3 class="panel-title">Admin Menü</h3>
  93. </div>
  94. <div class="panel-body">
  95. <div class="sidebar-nav">
  96. <div class="navbar navbar-default" role="navigation">
  97. <div class="navbar-header">
  98. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-navbar-collapse">
  99. <span class="sr-only">Aktiviere Navigation</span>
  100. <span class="icon-bar"></span>
  101. <span class="icon-bar"></span>
  102. <span class="icon-bar"></span>
  103. </button>
  104. <span class="visible-xs navbar-brand">Menu</span>
  105. </div>
  106. <div class="navbar-collapse collapse sidebar-navbar-collapse">
  107. <ul class="nav navbar-nav">
  108. <li><a href="<?php echo $_SERVER["PHP_SELF"].'?'.GET_MODULE_NAME.'=deletelogs'; ?>">Logs löschen (älter als 90 Tage)</a></li>
  109. <li><a href="<?php echo $_SERVER["PHP_SELF"]."?".GET_MODULE_NAME."=payments"; ?>">PayPal Verlauf </a></li>
  110. <li><a href="<?php echo $_SERVER["PHP_SELF"]."?".GET_MODULE_NAME."=createrank"; ?>">Allgemeine Freischaltungen hinzufügen</a></li>
  111. <li><a href="<?php echo $_SERVER["PHP_SELF"]."?".GET_MODULE_NAME."=createrank2"; ?>">Persönliche Freischaltungen hinzufügen</a></li>
  112. <li><a href="<?php echo $_SERVER["PHP_SELF"]."?".GET_MODULE_NAME."=addcato"; ?>">Katerogie hinzufügen</a></li>
  113. </ul>
  114. </div><!--/.nav-collapse -->
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. <?php } ?>
  120. </div>
  121. <div id="main" class="col-md-8">
  122. <?php
  123. foreach(glob("./system/main.php") as $pathname)
  124. {
  125. include_once $pathname;
  126. }
  127. ?>
  128. </div>
  129. </div>
  130. </div>
  131. </body>
  132. <!--
  133. ##############################################################Copyright###########################################
  134. Copyright: Donationsystem für MysticWorld 2016 written by https://moddylp.de/ ModdyLP
  135. ##################################################################################################################
  136. -->
  137. </html>