stats.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. /**
  3. * Insipid
  4. * Personal web-bookmark-system
  5. *
  6. * Copyright 2016-2019 Johannes Keßler
  7. *
  8. * Development starting from 2011: Johannes Keßler
  9. * https://www.bananas-playground.net/projekt/insipid/
  10. *
  11. * creator:
  12. * Luke Reeves <luke@neuro-tech.net>
  13. *
  14. * This program is free software: you can redistribute it and/or modify
  15. * it under the terms of the GNU General Public License as published by
  16. * the Free Software Foundation, either version 3 of the License, or
  17. * (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
  26. *
  27. */
  28. ?>
  29. <section class="section">
  30. <div class="columns">
  31. <div class="column">
  32. <p class="has-text-right">
  33. <a href="index.php?p=overview&m=tag" title="all tags" class="button">
  34. <span class="icon"><i class="ion-md-pricetags"></i></span>
  35. </a>
  36. <a href="index.php?p=overview&m=category" title="all categories" class="button">
  37. <span class="icon"><i class="ion-md-filing"></i></span>
  38. </a>
  39. <a href="index.php" title="... back to home" class="button">
  40. <span class="icon"><i class="ion-md-home"></i></span>
  41. </a>
  42. </p>
  43. </div>
  44. </div>
  45. <div class="columns">
  46. <div class="column">
  47. <h2 class="is-size-2">Stats</h2>
  48. </div>
  49. </div>
  50. </section>
  51. <section class="section">
  52. <div class="columns is-multiline">
  53. <div class="column is-one-quarter">
  54. <h4 class="is-size-4">Links</h4>
  55. <p># of Links: <?php echo $linkAmount; ?></p>
  56. <p><a href="index.php?p=overview&m=all">View all</a></p>
  57. </div>
  58. <div class="column is-one-quarter">
  59. <h4 class="is-size-4">Tags</h4>
  60. <p># of Tags: <?php echo $tagAmount; ?></p>
  61. <p><a href="index.php?p=overview&m=tag">View all</a></p>
  62. </div>
  63. <div class="column is-one-quarter">
  64. <h4 class="is-size-4">Categories</h4>
  65. <p># of Categories: <?php echo $categoryAmount; ?></p>
  66. <p><a href="index.php?p=overview&m=category">View all</a></p>
  67. </div>
  68. <?php if($_displayEditButton === true) { ?>
  69. <div class="column is-one-quarter">
  70. <h4 class="is-size-4">Moderation</h4>
  71. <p># Moderation needed: <?php echo $moderationAmount; ?></p>
  72. <p><a href="index.php?p=overview&m=awm">View all</a></p>
  73. </div>
  74. <div class="column is-one-quarter">
  75. <h4 class="is-size-4">Local image storage</h4>
  76. <p>Diskspace used: <?php echo $localStorageAmount; ?></p>
  77. <form method="post">
  78. <input type="submit" class="button is-info is-small" value="Delete all" name="statsDeleteLocalStorage">
  79. </form>
  80. </div>
  81. <div class="column is-one-quarter">
  82. <h4 class="is-size-4">Full DB backup</h4>
  83. <p>Create a complete DB export from your data.</p>
  84. <form method="post">
  85. <input type="submit" class="button is-info is-small" value="Create backup" name="statsCreateDBBackup">
  86. </form>
  87. </div>
  88. <?php } ?>
  89. </div>
  90. </section>