list_weblog.php 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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>
  10. <header class="app-header">
  11. <div class="top-bar">
  12. <div class="container top-bar-inner">
  13. <div class="top-bar-left">
  14. <a href="/" class="top-bar-logo" title="<?= htmlentities($_SESSION['APP_NAME']);?>">
  15. <img src="<?php if ( !empty($_SESSION['LOGO_HEADER'])){ echo $_SESSION['LOGO_HEADER']; } else{ echo "/images/logo-header.svg"; } ?>" alt="<?= htmlentities($_SESSION['APP_NAME']);?>" width="54" height="29">
  16. </a>
  17. </div>
  18. <div class="top-bar-right">
  19. <nav x-data="{ open: false }" class="top-bar-menu">
  20. <button
  21. type="button"
  22. class="top-bar-menu-link u-hide-tablet"
  23. x-on:click="open = !open">
  24. <i class="fas fa-bars"></i>
  25. <span class="u-hidden" x-text="open ? '<?= _("Close menu") ?>' : '<?= _("Open menu") ?>'">
  26. <?= _("Open menu") ?>
  27. </span>
  28. </button>
  29. <ul x-cloak x-show="open" class="top-bar-menu-list">
  30. <li class="top-bar-menu-item">
  31. <a class="top-bar-menu-link" href="/list/web/" title="<?= _("Back") ?>">
  32. <i class="fas fa-circle-left"></i>
  33. <span class="top-bar-menu-link-label"><?= _("Back") ?></span>
  34. </a>
  35. </li>
  36. <li class="top-bar-menu-item">
  37. <a class="top-bar-menu-link <?php if($_GET['type'] == 'access') echo 'active' ?>" href="/list/web-log/?domain=<?=htmlentities($_GET['domain'])?>&type=access&token=<?=$_SESSION['token']?>" title="<?= _("Access Log") ?>">
  38. <i class="fas fa-eye"></i>
  39. <span class="top-bar-menu-link-label"><?= _("Access Log") ?></span>
  40. </a>
  41. </li>
  42. <li class="top-bar-menu-item">
  43. <a class="top-bar-menu-link <?php if($_GET['type'] == 'access') echo 'active' ?>" href="/download/web-log/?domain=<?=htmlentities($_GET['domain'])?>&type=access&&token=<?=$_SESSION['token']?>" title="<?= _("Download") ?>">
  44. <i class="fas fa-download"></i>
  45. <span class="u-hidden"><?= _("Download") ?></span>
  46. </a>
  47. </li>
  48. <li class="top-bar-menu-item">
  49. <a class="top-bar-menu-link <?php if($_GET['type'] == 'error') echo 'active' ?>" href="/list/web-log/?domain=<?=htmlentities($_GET['domain'])?>&type=error&token=<?=$_SESSION['token']?>" title="<?= _("Error Log") ?>">
  50. <i class="fas fa-circle-exclamation"></i>
  51. <span class="top-bar-menu-link-label"><?= _("Error Log") ?></span>
  52. </a>
  53. </li>
  54. <li class="top-bar-menu-item">
  55. <a class="top-bar-menu-link <?php if($_GET['type'] == 'error') echo 'active' ?>" href="/download/web-log/?domain=<?=htmlentities($_GET['domain'])?>&type=error&token=<?=$_SESSION['token']?>" title="<?= _("Download") ?>">
  56. <i class="fas fa-download"></i>
  57. <span class="u-hidden"><?= _("Download") ?></span>
  58. </a>
  59. </li>
  60. <li class="top-bar-menu-item">
  61. <a class="top-bar-menu-link" href="javascript:location.reload();" title="<?= _("Refresh") ?>">
  62. <i class="fas fa-arrow-rotate-right"></i>
  63. <span class="u-hidden"><?= _("Refresh") ?></span>
  64. </a>
  65. </li>
  66. <li class="top-bar-menu-item">
  67. <a class="top-bar-menu-link" href="/list/user/" title="<?= htmlentities($user) ?>">
  68. <i class="fas fa-circle-user"></i>
  69. <span class="u-hidden"><?= htmlentities($user) ?></span>
  70. </a>
  71. </li>
  72. <li class="top-bar-menu-item">
  73. <a class="top-bar-menu-link top-bar-menu-link-logout" href="/logout/?token=<?= $_SESSION["token"] ?>" title="<?= _("Log out") ?>">
  74. <i class="fas fa-right-from-bracket"></i>
  75. <span class="u-hidden"><?= _("Log out") ?></span>
  76. </a>
  77. </li>
  78. </ul>
  79. </nav>
  80. </div>
  81. </div>
  82. </div>
  83. </header>
  84. <a
  85. href="#top"
  86. class="button button-secondary button-circle button-floating button-floating-top "
  87. title="<?= _("Top") ?>"
  88. >
  89. <i class="fas fa-arrow-up"></i>
  90. <span class="u-hidden"><?= _("Top") ?></span>
  91. </a>
  92. <div class="container" style="padding-top: 80px;"><?= sprintf(_("Last 70 lines of %s.%s.log"), htmlentities($_GET["domain"]), htmlentities($type)) ?></div>
  93. <pre class="container console-output">