PostfixAdmin - web based virtual user administration interface for Postfix mail servers https://postfixadmin.github.io/postfixadmin/
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.

45 lines
1.0 KiB

  1. <?php
  2. /**
  3. * Postfix Admin
  4. *
  5. * LICENSE
  6. * This source file is subject to the GPL license that is bundled with
  7. * this package in the file LICENSE.TXT.
  8. *
  9. * Further details on the project are available at :
  10. * http://www.postfixadmin.com or http://postfixadmin.sf.net
  11. *
  12. * @version $Id$
  13. * @license GNU GPL v2 or later.
  14. *
  15. * File: main.php
  16. * 'Home page' for logged in users.
  17. * Template File: main.php
  18. *
  19. * Template Variables:
  20. *
  21. * tummVacationtext
  22. *
  23. * Form POST \ GET Variables: -none-
  24. */
  25. require_once('../common.php');
  26. authentication_require_role('user');
  27. $USERID_USERNAME = authentication_get_username();
  28. $vh = new VacationHandler($USERID_USERNAME);
  29. if($vh->check_vacation()) {
  30. $tummVacationtext = $PALANG['pUsersMain_vacationSet'];
  31. }
  32. else
  33. {
  34. $tummVacationtext = $PALANG['pUsersMain_vacation'];
  35. }
  36. include ("../templates/header.php");
  37. include ("../templates/users_menu.php");
  38. include ("../templates/users_main.php");
  39. include ("../templates/footer.php");
  40. /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */
  41. ?>