Code:
telamon# diff /opt/apache/bin/newnews.pl newnews.pl
1c1
< #!/usr/local/bin/perl
---
> #!/usr/bin/perl
5c5
< # $Id: newnews.pl,v 20010820 2001-08-20 23:56:21-05 paul Exp $
---
> # $Id: newnews.pl,v 20010815 2001-08-15 19:15:23-05 paul Exp $
26,29c26,29
< my $db="netforum"; # mysql database name
< my $db_host="xxx"; # mysql host
< my $db_username="xxx"; # mysql username
< my $db_password="xxx"; # mysql password
---
> my $db="database_name"; # mysql database name
> my $db_host="localhost"; # mysql host
> my $db_username="username"; # mysql username
> my $db_password="pasword"; # mysql password
95c95
< # loop through newsgroup and do the business
---
> # loop through newsgroups and do the business
160d159
< db_execute("TRUNCATE TABLE usenet_article_loader");
162a162
> db_execute("TRUNCATE TABLE usenet_article_loader");
168a169,171
>
>
>
1029c1032
< push(@article," > $q\n\n");
---
> push(@article," > $q\n");
1033c1036
< push(@article,"$fbody\n");
---
> push(@article,"\n$fbody\n");
1107c1110
< my $threads = db_fetch("SELECT threadid FROM thread WHERE forumid=$forum
id AND dateline < $purge".(!$config{auto_purge_reg}?" AND regpost = 0":""));
---
> my $threads = db_fetch("SELECT threadid FROM thread WHERE forumid=$forum
id AND isusenetpost <> 0 AND dateline < $purge".(!$config{auto_purge_reg}?" AND
regpost = 0":""));
1114c1117
< if($#post_batch > 500) {
---
> if($#post_batch > 1000) {