We're living in 2004 now... perl is your friend for these kinds of things :)
[squirrelmail.git] / class / mime / ContentType.class.php
1 <?php
2
3 /**
4 * ContentType.class.php
5 *
6 * Copyright (c) 2003-2004 The SquirrelMail Project Team
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$
12 * @package squirrelmail
13 */
14
15 /**
16 * Undocumented class
17 * @package squirrelmail
18 */
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 ?>