ContentType.class.php 743 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * ContentType.class.php
  4. *
  5. * Copyright (c) 2003-2004 The SquirrelMail Project Team
  6. * Licensed under the GNU GPL. For full terms see the file COPYING.
  7. *
  8. * This contains functions needed to handle mime messages.
  9. *
  10. * @version $Id$
  11. * @package squirrelmail
  12. */
  13. /**
  14. * Undocumented class
  15. * @package squirrelmail
  16. */
  17. class ContentType {
  18. var $type0 = 'text',
  19. $type1 = 'plain',
  20. $properties = '';
  21. function ContentType($type) {
  22. $pos = strpos($type, '/');
  23. if ($pos > 0) {
  24. $this->type0 = substr($type, 0, $pos);
  25. $this->type1 = substr($type, $pos+1);
  26. } else {
  27. $this->type0 = $type;
  28. }
  29. $this->properties = array();
  30. }
  31. }
  32. ?>