list_weblog.php 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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="<?= _("Hestia Control Panel") ?>">
  15. <img src="/images/logo-header.svg" alt="<?= _("Hestia Control Panel") ?>" 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 x-on:click="open = !open" type="button" class="top-bar-menu-link u-hide-tablet" title="<?= _("Toggle menu") ?>">
  21. <i class="fas fa-bars"></i>
  22. <span class="u-hidden"><?= _("Toggle menu") ?></span>
  23. </button>
  24. <ul x-cloak x-show="open" class="top-bar-menu-list animate__animated animate__fadeIn">
  25. <li class="top-bar-menu-item">
  26. <a class="top-bar-menu-link" href="/list/web/">
  27. <i class="fas fa-circle-left"></i>
  28. <span class="top-bar-menu-link-label"><?= _("Back") ?></span>
  29. </a>
  30. </li>
  31. <li class="top-bar-menu-item">
  32. <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']?>">
  33. <i class="fas fa-eye"></i>
  34. <span class="top-bar-menu-link-label"><?= _("Access Log") ?></span>
  35. </a>
  36. </li>
  37. <li class="top-bar-menu-item">
  38. <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") ?>">
  39. <i class="fas fa-download"></i>
  40. <span class="u-hidden"><?= _("Download") ?></span>
  41. </a>
  42. </li>
  43. <li class="top-bar-menu-item">
  44. <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']?>">
  45. <i class="fas fa-circle-exclamation"></i>
  46. <span class="top-bar-menu-link-label"><?= _("Error Log") ?></span>
  47. </a>
  48. </li>
  49. <li class="top-bar-menu-item">
  50. <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") ?>">
  51. <i class="fas fa-download"></i>
  52. <span class="u-hidden"><?= _("Download") ?></span>
  53. </a>
  54. </li>
  55. <li class="top-bar-menu-item">
  56. <a class="top-bar-menu-link" href="javascript:location.reload();" title="<?= _("Refresh") ?>">
  57. <i class="fas fa-arrow-rotate-right"></i>
  58. <span class="u-hidden"><?= _("Refresh") ?></span>
  59. </a>
  60. </li>
  61. <li class="top-bar-menu-item">
  62. <a class="top-bar-menu-link" href="/edit/user/" title="<?= htmlentities($user) ?>">
  63. <i class="fas fa-circle-user"></i>
  64. <span class="u-hidden"><?= htmlentities($user) ?></span>
  65. </a>
  66. </li>
  67. <li class="top-bar-menu-item">
  68. <a class="top-bar-menu-link top-bar-menu-link-logout" href="/logout/?token=<?= $_SESSION["token"] ?>" title="<?= _("Log out") ?>">
  69. <i class="fas fa-right-from-bracket"></i>
  70. <span class="u-hidden"><?= _("Log out") ?></span>
  71. </a>
  72. </li>
  73. </ul>
  74. </nav>
  75. </div>
  76. </div>
  77. </div>
  78. </header>
  79. <a
  80. href="#top"
  81. class="button button-secondary button-circle button-floating button-floating-top "
  82. title="<?= _("Top") ?>"
  83. >
  84. <i class="fas fa-arrow-up"></i>
  85. <span class="u-hidden"><?= _("Top") ?></span>
  86. </a>
  87. <div class="container" style="padding-top: 80px;"><?= sprintf(_("Last 70 lines of %s.%s.log"), htmlentities($_GET["domain"]), htmlentities($type)) ?></div>
  88. <pre class="container console-output">