You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

footer.inc.php 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /* Poweradmin, a friendly web-based admin tool for PowerDNS.
  3. * See <http://www.poweradmin.org> for more details.
  4. *
  5. * Copyright 2007-2009 Rejo Zenger <rejo@zenger.nl>
  6. * Copyright 2010-2017 Poweradmin Development Team
  7. * <http://www.poweradmin.org/credits.html>
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation, either version 3 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. */
  22. /**
  23. * Web interface footer
  24. *
  25. * @package Poweradmin
  26. * @copyright 2007-2010 Rejo Zenger <rejo@zenger.nl>
  27. * @copyright 2010-2017 Poweradmin Development Team
  28. * @license http://opensource.org/licenses/GPL-3.0 GPL
  29. */
  30. require_once dirname(__DIR__) . '/vendor/autoload.php';
  31. $VERSION = Poweradmin\Version::VERSION;
  32. global $db;
  33. if (is_object($db)) {
  34. $db->disconnect();
  35. }
  36. ?>
  37. </div> <!-- /content -->
  38. <div class="footer">
  39. <a href="http://www.poweradmin.org/">a complete(r) <strong>poweradmin</strong><?php
  40. if (isset($_SESSION["userid"])) {
  41. echo " v$VERSION";
  42. }
  43. ?></a> - <a href="http://www.poweradmin.org/credits.html">credits</a>
  44. </div>
  45. <?php
  46. if (file_exists('inc/custom_footer.inc.php')) {
  47. include('inc/custom_footer.inc.php');
  48. }
  49. ?>
  50. </body>
  51. </html>
  52. <?php
  53. if (isset($db_debug) && $db_debug == true) {
  54. $debug = $db->getDebugOutput();
  55. $debug = str_replace("query(1)", "", $debug);
  56. $lines = explode(":", $debug);
  57. foreach ($lines as $line) {
  58. echo "$line<br>";
  59. }
  60. }
  61. ?>
  62. <?php
  63. global $display_stats;
  64. if ($display_stats)
  65. display_current_stats();