Source for file contentfooter.php

Documentation is available at contentfooter.php

  1. <?php
  2. /**
  3. * Footer HTML that is included on every page
  4. *
  5. * this is only a sample implementation giving credit to the Bumblebee project and some
  6. * feedback on what Bumblebee has been managing.
  7. *
  8. * This is GPL'd software, so it is *not* a requirement that you give credit to Bumblebee,
  9. * link to the site etc. In fact, this is in the theme/ directory to allow you to customise
  10. * it easily, without having to delve into the rest of the code.
  11. *
  12. @author     Stuart Prescott
  13. @copyright  Copyright Stuart Prescott
  14. @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  15. @version    $Id$
  16. @package    Bumblebee
  17. @subpackage theme
  18. */
  19.  
  20. /** Load ancillary functions */
  21. require_once 'inc/typeinfo.php';
  22.  
  23. /** use the SystemStats object to create some nice info about what the system does */
  24. include_once 'inc/systemstats.php';
  25.  
  26. require_once 'inc/bb/configreader.php';
  27. $conf ConfigReader::getInstance();
  28.  
  29. print "<div id='bumblebeefooter'>";
  30. print "<p>";
  31. printf(T_('System managed by <a href="http://bumblebeeman.sf.net/">Bumblebee</a> version %s, released under the <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL</a>.'),
  32.             $BUMBLEBEEVERSION);
  33. print "<br />";
  34.  
  35. if ($conf->status->database{
  36.   $stat new SystemStats;
  37.  
  38.   printf(T_('This installation of Bumblebee currently manages %s users, %s projects, %s instruments and %s bookings.'),
  39.               $stat->get('users')$stat->get('projects')$stat->get('instruments')$stat->get('bookings'));
  40.   print "<br />";
  41. }
  42.  
  43. if ($conf->value('display','server_signature',true)) {
  44.   printf(T_('Running under %s (%s), %s (%s), PHP (%s, %s mode) with %s (%s).'),
  45.               php_uname('s')php_uname('r'),
  46.               webserver_get_name()webserver_get_version(),
  47.               phpversion()PHP_SAPI,
  48.               db_get_name()db_get_version());
  49.   print "<br />";
  50. }
  51.  
  52. printf(T_('Email the <a href="mailto:%s">system administrator</a> for help.'),
  53.             $conf->AdminEmail);
  54. print "</p>";
  55. print "<p class='bumblebeecopyright'>";
  56. printf(T_('Booking information Copyright &copy; %s %s'),
  57.             date('Y')$conf->value('main''CopyrightOwner'));
  58. print "</p>";
  59. print "</div>";

Documentation generated on Tue, 06 Mar 2007 10:01:08 +0000 by phpDocumentor 1.3.0