list_server_info.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <!-- Load necessary CSS and JavaScript from source -->
  5. <?php require $_SERVER["HESTIA"] . "/web/templates/includes/title.php"; ?>
  6. <?php require $_SERVER["HESTIA"] . "/web/templates/includes/css.php"; ?>
  7. <?php require $_SERVER["HESTIA"] . "/web/templates/includes/js.php"; ?>
  8. </head>
  9. <body class="page-server-info">
  10. <div class="app">
  11. <header class="app-header">
  12. <div class="top-bar">
  13. <div class="container top-bar-inner">
  14. <div class="top-bar-left">
  15. <a href="/" class="top-bar-logo" title="<?= tohtml( _("Hestia Control Panel")) ?>">
  16. <img src="/images/logo-header.svg" alt="<?= tohtml( _("Hestia Control Panel")) ?>" width="54" height="29">
  17. </a>
  18. </div>
  19. <div class="top-bar-right">
  20. <nav x-data="{ open: false }" class="top-bar-menu">
  21. <button
  22. type="button"
  23. class="top-bar-menu-link u-hide-tablet"
  24. x-on:click="open = !open">
  25. <i class="fas fa-bars"></i>
  26. <span class="u-hidden" x-text="open ? <?= tohtml(json_encode(_("Close menu"), JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_THROW_ON_ERROR)) ?> : <?= tohtml(json_encode(_("Open menu"), JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_THROW_ON_ERROR)) ?>">
  27. <?= tohtml( _("Open menu")) ?>
  28. </span>
  29. </button>
  30. <div x-cloak x-show="open" x-on:click.outside="open = false" class="top-bar-menu-panel">
  31. <ul class="top-bar-menu-list">
  32. <li class="top-bar-menu-item">
  33. <a class="top-bar-menu-link" href="/list/rrd/" title="<?= tohtml( _("Back")) ?>">
  34. <i class="fas fa-circle-left"></i>
  35. <span class="top-bar-menu-link-label"><?= tohtml( _("Back")) ?></span>
  36. </a>
  37. </li>
  38. <li class="top-bar-menu-item">
  39. <a class="top-bar-menu-link <?php if (isset($_GET['cpu'])) echo 'active' ?>" href="/list/server/?cpu">
  40. <i class="fas fa-microchip"></i>
  41. <span class="top-bar-menu-link-label"><?= tohtml( _("CPU")) ?></span>
  42. </a>
  43. </li>
  44. <li class="top-bar-menu-item">
  45. <a class="top-bar-menu-link <?php if (isset($_GET['mem'])) echo 'active' ?>" href="/list/server/?mem">
  46. <i class="fas fa-memory"></i>
  47. <span class="top-bar-menu-link-label"><?= tohtml( _("RAM")) ?></span>
  48. </a>
  49. </li>
  50. <li class="top-bar-menu-item">
  51. <a class="top-bar-menu-link <?php if (isset($_GET['disk'])) echo 'active' ?>" href="/list/server/?disk">
  52. <i class="fas fa-hard-drive"></i>
  53. <span class="top-bar-menu-link-label"><?= tohtml( _("Disk")) ?></span>
  54. </a>
  55. </li>
  56. <li class="top-bar-menu-item">
  57. <a class="top-bar-menu-link <?php if (isset($_GET['net'])) echo 'active' ?>" href="/list/server/?net">
  58. <i class="fas fa-hard-drive"></i>
  59. <span class="top-bar-menu-link-label"><?= tohtml( _("Network")) ?></span>
  60. </a>
  61. </li>
  62. <?php if ((isset($_SESSION['WEB_SYSTEM'])) && (!empty($_SESSION['WEB_SYSTEM']))) { ?>
  63. <li class="top-bar-menu-item">
  64. <a class="top-bar-menu-link <?php if (isset($_GET['web'])) echo 'active' ?>" href="/list/server/?web">
  65. <i class="fas fa-earth-europe"></i>
  66. <span class="top-bar-menu-link-label"><?= tohtml( _("Web")) ?></span>
  67. </a>
  68. </li>
  69. <?php } ?>
  70. <?php if ((isset($_SESSION['DNS_SYSTEM'])) && (!empty($_SESSION['DNS_SYSTEM']))) { ?>
  71. <li class="top-bar-menu-item">
  72. <a class="top-bar-menu-link <?php if (isset($_GET['dns'])) echo 'active' ?>" href="/list/server/?dns">
  73. <i class="fas fa-book-atlas"></i>
  74. <span class="top-bar-menu-link-label"><?= tohtml( _("DNS")) ?></span>
  75. </a>
  76. </li>
  77. <?php } ?>
  78. <?php if ((isset($_SESSION['MAIL_SYSTEM'])) && (!empty($_SESSION['MAIL_SYSTEM']))) { ?>
  79. <li class="top-bar-menu-item">
  80. <a class="top-bar-menu-link <?php if (isset($_GET['mail'])) echo 'active' ?>" href="/list/server/?mail">
  81. <i class="fas fa-envelopes-bulk"></i>
  82. <span class="top-bar-menu-link-label"><?= tohtml( _("Mail")) ?></span>
  83. </a>
  84. </li>
  85. <?php } ?>
  86. <?php if ((isset($_SESSION['DB_SYSTEM'])) && (!empty($_SESSION['DB_SYSTEM']))) { ?>
  87. <li class="top-bar-menu-item">
  88. <a class="top-bar-menu-link <?php if (isset($_GET['db'])) echo 'active' ?>" href="/list/server/?db">
  89. <i class="fas fa-database"></i>
  90. <span class="top-bar-menu-link-label"><?= tohtml( _("DB")) ?></span>
  91. </a>
  92. </li>
  93. <?php } ?>
  94. <li class="top-bar-menu-item">
  95. <a class="top-bar-menu-link" href="javascript:location.reload();" title="<?= tohtml( _("Refresh")) ?>">
  96. <i class="fas fa-arrow-rotate-right"></i>
  97. <span class="u-hidden"><?= tohtml( _("Refresh")) ?></span>
  98. </a>
  99. </li>
  100. <li class="top-bar-menu-item">
  101. <a class="top-bar-menu-link top-bar-menu-link-logout" href="/logout/?<?= tohtml(http_build_query(["token" => $_SESSION["token"]])) ?>" title="<?= tohtml( _("Log out")) ?>">
  102. <i class="fas fa-right-from-bracket"></i>
  103. <span class="u-hidden"><?= tohtml( _("Log out")) ?></span>
  104. </a>
  105. </li>
  106. </ul>
  107. </div>
  108. </nav>
  109. </div>
  110. </div>
  111. </div>
  112. </header>
  113. <main class="app-content">
  114. <div class="logs-container">
  115. <div class="container">
  116. <pre class="console-output u-mt20">