1
0

index.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. require_once($_SERVER['DOCUMENT_ROOT'] . "/modules/core/header.php");
  3. require_once($_SERVER['DOCUMENT_ROOT'] . "/modules/core/staff.php");
  4. $admin_panel = true;
  5. if(isset($_GET['page']))
  6. {
  7. $current_page = $_GET['page'];
  8. }
  9. else
  10. {
  11. $current_page = 'dashboard';
  12. }
  13. if(!is_file("../modules/template/admin/$current_page.php"))
  14. {
  15. exit(); //require_once("error.php")
  16. }
  17. $link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);
  18. if($link === false)
  19. {
  20. die("ERROR: Could not connect. " . mysqli_connect_error());
  21. }
  22. ignore_user_abort();
  23. ?>
  24. <!doctype html>
  25. <html lang="en">
  26. <head>
  27. <meta charset="utf-8">
  28. <title>Administration | Verdant Roleplay</title>
  29. <base href="/">
  30. <!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
  31. <meta name="viewport" content="width=device-width, initial-scale=0.1">
  32. <link rel="icon" type="image/x-icon" href="favicon.ico">
  33. <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700+Ubuntu:400,700" rel="stylesheet">
  34. <!-- Assets -->
  35. <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-Bx4pytHkyTDy3aJKjGkGoHPt3tvv6zlwwjc3iqN7ktaiEMLDPqLSZYts2OjKcBx1" crossorigin="anonymous">
  36. <link rel="stylesheet" href="./style.css">
  37. <link rel="stylesheet" href="./modules/template/admin/style.css">
  38. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  39. <script src="./js/page.js" defer></script>
  40. <script src="./js/admin.js" defer></script>
  41. </head>
  42. <body <?php if($current_page == "lookup") { ?>onload="switchMenu(1)"<?php } ?>>
  43. <router-outlet _ngcontent-tnh-c135=""></router-outlet>
  44. <app-panel _nghost-tnh-c136="">
  45. <div _ngcontent-tnh-c136="" id="wrapper">
  46. <div _ngcontent-tnh-c136="" id="page">
  47. <?php require_once("../navbar.php"); ?>
  48. <main _ngcontent-tnh-c136="" id="body_cont">
  49. <?php
  50. require_once("../modules/template/admin/$current_page.php");
  51. ?>
  52. </main>
  53. <?php require_once("../footer.php"); ?>
  54. </div>
  55. </div>
  56. <!---->
  57. <div _ngcontent-tnh-c136="" class="bg-gradient"></div>
  58. <app-alerts _ngcontent-tnh-c136="" _nghost-tnh-c147="">
  59. <ul _ngcontent-tnh-c147="" class="message_pop_n_admin" id="message_pop_n_admin">
  60. <?php if(isset($gabim)) { if(strlen($gabim) > 0) { ?><li _ngcontent-tnh-c147="" class="info"><span _ngcontent-tnh-c147="" class="icon"><i _ngcontent-tnh-c147="" class="fa fa-fw fa-info-circle"></i></span><span _ngcontent-tnh-c147="" translate="" class="message"> <?php echo $gabim; ?> </span></li><?php } } ?>
  61. <li _ngcontent-tnh-c147="" class="info" id="infomsg" style="display: none;"><span _ngcontent-tnh-c147="" class="icon"><i _ngcontent-tnh-c147="" class="fa fa-fw fa-info-circle"></i></span><span _ngcontent-tnh-c147="" translate="" class="message" id="message"> <?php echo $gabim; ?> </span></li>
  62. <!---->
  63. </ul>
  64. </app-alerts>
  65. <!---->
  66. <!---->
  67. </app-panel>
  68. <!---->
  69. <app-popup-container _ngcontent-tnh-c135="" _nghost-tnh-c186="" id="popup_container">
  70. </app-popup-container>
  71. <app-version-check _ngcontent-tnh-c135="" _nghost-tnh-c210="">
  72. <!---->
  73. </app-version-check>
  74. </body>
  75. </html>