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.

main.php 1015B

123456789101112131415161718192021222324252627282930313233343536373839
  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$
  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. } else {
  32. $tummVacationtext = $PALANG['pUsersMain_vacation'];
  33. }
  34. $smarty->assign('tummVacationtext', $tummVacationtext);
  35. $smarty->assign('smarty_template', 'users_main');
  36. $smarty->display('index.tpl');
  37. /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */