home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / email / properties.php < prev    next >
PHP Script  |  2004-03-08  |  1KB  |  48 lines

  1. <?php
  2. /*
  3. Copyright Intermesh 2003
  4. Author: Merijn Schering <mschering@intermesh.nl>
  5. Version: 1.0 Release date: 08 July 2003
  6.  
  7. This program is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2 of the License, or (at your
  10. option) any later version.
  11. */
  12.  
  13. require("../../Group-Office.php");
  14. $GO_SECURITY->authenticate();
  15. $GO_MODULES->authenticate('email');
  16. require($GO_LANGUAGE->get_language_file('email'));
  17. require($GO_CONFIG->class_path."imap.class.inc");
  18. require($GO_CONFIG->class_path."email.class.inc");
  19. $mail = new imap();
  20. $email = new email();
  21.  
  22. $account = $email->get_account($_REQUEST['account_id']);
  23.  
  24. if ($mail->open($account['host'], $account['type'], $account['port'], $account['username'], $GO_CRYPTO->decrypt($account['password']), $_REQUEST['mailbox']))
  25. {
  26.     $content = $mail->get_message($_REQUEST['uid']);
  27. }
  28. $page_title=$fbProperties;
  29. require($GO_THEME->theme_path."header.inc");
  30. ?>
  31. <table cellpadding="0" cellspacing="0" border="0" width="100%">
  32. <tr>
  33.     <td height="50">
  34.     <h1><?php echo $fbProperties; ?></h1>
  35.     </td>
  36. </tr>
  37. <tr>
  38.     <td>
  39.     <?php
  40.         echo text_to_html($content["header"]);
  41.     ?>
  42.     </td>
  43.  
  44. </table>
  45. <?php
  46. require($GO_THEME->theme_path."footer.inc");
  47. ?>
  48.