transferDetails.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /* $Id: transferDetails.php 2893 2007-04-14 13:20:30Z b4rt $ */
  3. /*******************************************************************************
  4. LICENSE
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License (GPL)
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. To read the license please visit http://www.gnu.org/copyleft/gpl.html
  14. *******************************************************************************/
  15. // prevent direct invocation
  16. if ((!isset($cfg['user'])) || (isset($_REQUEST['cfg']))) {
  17. @ob_end_clean();
  18. @header("location: ../../index.php");
  19. exit();
  20. }
  21. /******************************************************************************/
  22. // common functions
  23. require_once('inc/functions/functions.common.php');
  24. // transfer functions
  25. require_once('inc/functions/functions.transfer.php');
  26. // init template-instance
  27. tmplInitializeInstance($cfg["theme"], "page.transferDetails.tmpl");
  28. // init transfer
  29. transfer_init();
  30. // init ch-instance
  31. $ch = ClientHandler::getInstance(getTransferClient($transfer));
  32. // load settings, default if settings could not be loaded (fresh transfer)
  33. if ($ch->settingsLoad($transfer) !== true)
  34. $ch->settingsDefault();
  35. // set details vars
  36. transfer_setDetailsVars();
  37. // title + foot
  38. tmplSetFoot(false);
  39. tmplSetTitleBar($transferLabel." - Details", false);
  40. // iid
  41. tmplSetIidVars();
  42. // parse template
  43. $tmpl->pparse();
  44. ?>