Using TR WebNewsReader on Apache/VMS.
Posted: Mon Aug 29, 2005 1:41 am
only minor edits are required to get this to work. The edits change the multi-dot filenames to single or no-dot formats.
the two files that needed modification are [.lib]post_inc.php and [.lib]thread_inc.php. (see diff output below for changes)
There are some anomalies when trying to get the app to see new newsgroups added to the groups.txt (list of newsgroups) and grpaccess.txt (list of newgroups with access modes (y for write - n for nowrite) This could have probably been handled in one file..
Michael Austin
$ diff [.lib]post_inc.php
************
File [.LIB]post_inc.php;2
189 $cachefile=str_replace(".","",$newsgroups);
190 $cachefile=$spooldir.'/'.$newsgroups.'-cache.txt';
******
File [.LIB]post_inc.php;1
189 $cachefile=$spooldir.'/'.$newsgroups.'-cache.txt';
************
$ diff [.lib]thread_inc.php; [.lib]thread_inc.php;1
************
File [.LIB]thread_inc.php;5
91 $group = str_replace(".","",$group);
92 if ($compress_spoolfiles) {
******
File [.LIB]thread_inc.php;1
91 if ($compress_spoolfiles) {
************
************
File [.LIB]thread_inc.php;5
97 $group = str_replace(".","",$group);
98 $file=fopen("$spooldir/$group-data.dat","w");
******
File [.LIB]thread_inc.php;1
96 $file=fopen("$spooldir/$group-data.dat","w");
************
************
File [.LIB]thread_inc.php;5
398 $infofilename = str_replace(".","",$infofilename);
399 $infofile=fopen($infofilename,"w");
******
File [.LIB]thread_inc.php;1
396 $infofile=fopen($infofilename,"w");
************
************
File [.LIB]thread_inc.php;5
486 $cachefile = str_replace(".","",$cachefile);
487 $fp_cachefile=fopen($cachefile,"w");
******
File [.LIB]thread_inc.php;1
483 $fp_cachefile=fopen($cachefile,"w");
************
************
File [.LIB]thread_inc.php;5
958 $filename = str_replace(".","",$filename);
959 $file=fopen($filename,"w");
******
File [.LIB]thread_inc.php;1
954 $file=fopen($filename,"w");
************
the two files that needed modification are [.lib]post_inc.php and [.lib]thread_inc.php. (see diff output below for changes)
There are some anomalies when trying to get the app to see new newsgroups added to the groups.txt (list of newsgroups) and grpaccess.txt (list of newgroups with access modes (y for write - n for nowrite) This could have probably been handled in one file..
Michael Austin
$ diff [.lib]post_inc.php
************
File [.LIB]post_inc.php;2
189 $cachefile=str_replace(".","",$newsgroups);
190 $cachefile=$spooldir.'/'.$newsgroups.'-cache.txt';
******
File [.LIB]post_inc.php;1
189 $cachefile=$spooldir.'/'.$newsgroups.'-cache.txt';
************
$ diff [.lib]thread_inc.php; [.lib]thread_inc.php;1
************
File [.LIB]thread_inc.php;5
91 $group = str_replace(".","",$group);
92 if ($compress_spoolfiles) {
******
File [.LIB]thread_inc.php;1
91 if ($compress_spoolfiles) {
************
************
File [.LIB]thread_inc.php;5
97 $group = str_replace(".","",$group);
98 $file=fopen("$spooldir/$group-data.dat","w");
******
File [.LIB]thread_inc.php;1
96 $file=fopen("$spooldir/$group-data.dat","w");
************
************
File [.LIB]thread_inc.php;5
398 $infofilename = str_replace(".","",$infofilename);
399 $infofile=fopen($infofilename,"w");
******
File [.LIB]thread_inc.php;1
396 $infofile=fopen($infofilename,"w");
************
************
File [.LIB]thread_inc.php;5
486 $cachefile = str_replace(".","",$cachefile);
487 $fp_cachefile=fopen($cachefile,"w");
******
File [.LIB]thread_inc.php;1
483 $fp_cachefile=fopen($cachefile,"w");
************
************
File [.LIB]thread_inc.php;5
958 $filename = str_replace(".","",$filename);
959 $file=fopen($filename,"w");
******
File [.LIB]thread_inc.php;1
954 $file=fopen($filename,"w");
************