[Comoblog-commit] comoblog/batch comoblog_batch.php,1.12,1.13
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2006-01-13 13:00:34
|
Update of /cvsroot/comoblog/comoblog/batch In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19789 Modified Files: comoblog_batch.php Log Message: Fix for 3pg video with 3gp file extension instead of 3g2 Index: comoblog_batch.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/batch/comoblog_batch.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- comoblog_batch.php 15 Dec 2005 22:10:43 -0000 1.12 +++ comoblog_batch.php 13 Jan 2006 13:00:21 -0000 1.13 @@ -66,7 +66,6 @@ $post['post_mail_subject'] = substr($title,0,150) ."..." ; } - // clean up text and html if ($post['post_ctype'] == 'text/plain') $post['post_mail_body'] = clean_up_txt($post['post_mail_body'], true); @@ -75,8 +74,8 @@ // current timestamp $now = time(); - - // count images + + // count images $howmany_images = count($post['images']); $query = " @@ -243,6 +242,7 @@ // decode all messages using Mail_mimeDecode for ($msg_cnt = 0; $msg_cnt < count($list); $msg_cnt++) { +echo "Before decode ".$msg[$msg_cnt]; $myDecoder[$msg_cnt] = new Mail_mimeDecode ($msg[$msg_cnt]); $params['include_bodies'] = true; @@ -334,7 +334,7 @@ $posts[$post_cnt]['post_ctype'] = $ctype; } - elseif (eregi('\.3g2',$cname)) { + elseif (eregi('\.3g2',$cname) || eregi('\.3gp',$cname)) { $ctype = ''; // check if part body is a valid image file $now = str_replace(' ', '', microtime()).rand(); @@ -388,7 +388,7 @@ $posts[$post_cnt]['post_ctype'] = $ctype; } - elseif (eregi('\.3g2',$cname)) { + elseif (eregi('\.3g2',$cname) || eregi('\.3gp',$cname)) { $ctype = ''; // check if part body is a valid image file $now = str_replace(' ', '', microtime()).rand(); @@ -439,9 +439,10 @@ if ($ctype == 'text/plain' || $ctype == 'text/html') { $posts[$post_cnt]['post_mail_body'] = $decoded_msg[$msg_cnt]->body; +echo "Here me: ".$posts[$post_cnt]['post_mail_body']; $posts[$post_cnt]['post_ctype'] = $ctype; } - elseif (eregi('\.3g2',$cname)) { + elseif (eregi('\.3g2',$cname) || eregi('\.3gp',$cname)) { $ctype = ''; // check if part body is a valid image file $now = str_replace(' ', '', microtime()).rand(); |