PyukiWiki CVS Commit
pyuki****@lists*****
2012年 2月 19日 (日) 17:34:28 JST
Index: PyukiWiki-Devel/plugin/ad.inc.pl diff -u PyukiWiki-Devel/plugin/ad.inc.pl:1.257 PyukiWiki-Devel/plugin/ad.inc.pl:1.258 --- PyukiWiki-Devel/plugin/ad.inc.pl:1.257 Sun Feb 19 17:14:24 2012 +++ PyukiWiki-Devel/plugin/ad.inc.pl Sun Feb 19 17:34:28 2012 @@ -1,6 +1,6 @@ ###################################################################### # ad.inc.pl - This is PyukiWiki, yet another Wiki clone. -# $Id: ad.inc.pl,v 1.257 2012/02/19 08:14:24 papu Exp $ +# $Id: ad.inc.pl,v 1.258 2012/02/19 08:34:28 papu Exp $ # # "ad" version 1.07 $$ # Author: Nanami http://nanakochi.daiba.cx/ @@ -92,6 +92,8 @@ } } $::AD_DB_COUNT{$space}++; +$ret=""; + return $ret; # return (split(/\f/,$::AD_DB_VIEW{$space}))[($::AD_SESSION + $::AD_DB_COUNT{$space}*11) % $::AD_DB_NUM{$space}]; my $ret=(split(/\f/,$::AD_DB_VIEW{$space}))[($::AD_SESSION + $::AD_DB_COUNT{$space}*11) % $::AD_DB_NUM{$space}]; my $id=$space; @@ -112,6 +114,12 @@ last if($loop >= 5); } } + + # ダミー画像書き換え +# $ret=~s/<[Ii][Mm][Gg]([^<>]*)width="(1|1px)" height="(1|1px)1"([^<>*)?>/<img$1 width="1" height="1" style="width:1px;height:1px;" $4>/g; +# $ret=~s/<[Ii][Mm][Gg]([^<>]*)height="(1|1px)" width="(1|1px)1"([^<>*)?>/<img$1 width="1" height="1" style="width:1px;height:1px;" $4>/g; + $ret=~s/<img(.*?)>/<img />/g; +$ret=""; return $ret; }