[Comoblog-commit] comoblog index.php,1.1.1.1,1.2 post.php,1.1.1.1,1.2
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-12-11 12:14:18
|
Update of /cvsroot/comoblog/comoblog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11056 Modified Files: index.php post.php Log Message: Rolled in support for 3g2 video files - from Bill Chambers and David Bennett Index: post.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/post.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- post.php 16 Aug 2005 05:49:43 -0000 1.1.1.1 +++ post.php 11 Dec 2005 12:14:00 -0000 1.2 @@ -33,7 +33,11 @@ $res = mysql_query($query); while ($row = mysql_fetch_assoc($res)) { - if ($row['img_thumb'] == 'Y') { + if (eregi('\.3g2',$row['img_name'])) { + $tpl->assign('IMAGE', $row); + $tpl->parse('main.post.video_3g2'); + } + else if ($row['img_thumb'] == 'Y') { $tpl->assign('IMAGE', $row); $tpl->parse('main.post.thumb_img'); } Index: index.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- index.php 16 Aug 2005 05:49:43 -0000 1.1.1.1 +++ index.php 11 Dec 2005 12:14:00 -0000 1.2 @@ -69,7 +69,11 @@ $res = mysql_query($query); while ($row = mysql_fetch_assoc($res)) { - if ($row['img_thumb'] == 'Y') { + if (eregi('\.3g2',$row['img_name'])) { + $tpl->assign('IMAGE', $row); + $tpl->parse('main.post.video_3g2'); + } + else if ($row['img_thumb'] == 'Y') { $tpl->assign('IMAGE', $row); $tpl->parse('main.post.thumb_img'); } |