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.

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 http://postfixadmin.sf.net
  10. *
  11. * @version $Id: main.php 1558 2013-11-10 15:57:32Z christian_boltz $
  12. * @license GNU GPL v2 or later.
  13. *
  14. * File: main.php
  15. * 'Home page' for logged in users.
  16. * Template File: main.php
  17. *
  18. * Template Variables:
  19. *
  20. * tummVacationtext
  21. *
  22. * Form POST \ GET Variables: -none-
  23. */
  24. $rel_path = '../';
  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. $smarty->assign ('tummVacationtext', $tummVacationtext);
  37. $smarty->assign ('smarty_template', 'users_main');
  38. $smarty->display ('index.tpl');
  39. /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */
  40. ?>