summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-02 21:53:10 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-02 21:53:10 +0800
commitd4aaf1614a98ef8816d00c7d3a0a59850c992564 (patch)
tree5c07c885924412d9b6b27b9ee3d1d93ece753213
parentebdb6f330188744c189650e7315ebebfc1cc647f (diff)
downloadpttbbs-d4aaf1614a98ef8816d00c7d3a0a59850c992564.tar
pttbbs-d4aaf1614a98ef8816d00c7d3a0a59850c992564.tar.gz
pttbbs-d4aaf1614a98ef8816d00c7d3a0a59850c992564.tar.bz2
pttbbs-d4aaf1614a98ef8816d00c7d3a0a59850c992564.tar.lz
pttbbs-d4aaf1614a98ef8816d00c7d3a0a59850c992564.tar.xz
pttbbs-d4aaf1614a98ef8816d00c7d3a0a59850c992564.tar.zst
pttbbs-d4aaf1614a98ef8816d00c7d3a0a59850c992564.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@995 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/util/udnnews.pl15
1 files changed, 8 insertions, 7 deletions
diff --git a/pttbbs/util/udnnews.pl b/pttbbs/util/udnnews.pl
index 07c49d4b..ba0fc072 100644
--- a/pttbbs/util/udnnews.pl
+++ b/pttbbs/util/udnnews.pl
@@ -39,8 +39,8 @@ sub getudnnewscontent($)
my($url) = @_;
my($buf, $content, $ret);
$buf = `$LYNX -source '$url'`;
- ($content) = $buf =~ m|<p><font class="text12" color=#CC0033><br>(.*?)<tr valign="top">|s;
- ($content) = $buf =~ m|<p><font color="#CC0033" class="text12">(.*?)<tr valign="top">|s if( !$content );
+ ($content) = $buf =~ m|<!-- start of content -->(.*?)<!-- end of content -->|s;
+# ($content) = $buf =~ m|<p><font color="#CC0033" class="text12">(.*?)<tr valign="top">|s if( !$content );
$content =~ s/<br>/\n/g;
$content =~ s/<p>/\n/gi;
$content =~ s/<.*?>//g;
@@ -105,10 +105,11 @@ sub postout
{
my($param) = @_;
return if( !$param->{title} );
- open FH, ">/tmp/postout.$$";
- print FH $param->{content};
- close FH;
+# open FH, ">/tmp/postout.$$";
+# print FH $param->{content};
+print "$param->{content}";
+# close FH;
- system("bin/post '$param->{brdname}' '$param->{title}' '$param->{owner}' /tmp/postout.$$");
- unlink "/tmp/postout.$$";
+# system("bin/post '$param->{brdname}' '$param->{title}' '$param->{owner}' /tmp/postout.$$");
+# unlink "/tmp/postout.$$";
}