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