1
0

panel.php 3.0 KB

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