9cf5b337 |
1 | <?php |
2 | |
3 | /** comparison function for the overview |
4 | * @param $a OBJECT spoolhead |
5 | * @param $b OBJECT spoolhead |
6 | * @return |
7 | */ |
8 | |
9 | function spoolcompare($a,$b) { |
10 | global $news; |
11 | return ($b->date>=$a->date); |
12 | } |
13 | |
14 | // spool config in spool.inc.php |
15 | $news['maxspool'] = 3000; |
16 | |
17 | // encoded headers |
18 | $news['hdecode'] = array('from','name','organization','subject'); |
19 | |
20 | // headers in article.php |
21 | $news['head'] = array( |
22 | 'From' => 'from', |
23 | 'Subject' => 'subject', |
24 | 'Newsgroups' => 'newsgroups', |
25 | 'Followup-To' => 'followup', |
26 | 'Date' => 'date', |
27 | 'Organization' => 'organization', |
28 | 'References' => 'references', |
29 | 'X-Face' => 'xface', |
30 | ); |
31 | |
32 | // overview configuration in article.php |
33 | $news['threadtop'] = 5; |
34 | $news['threadbottom'] = 5; |
35 | |
36 | // wordwrap configuration |
37 | $news['wrap'] = 80; |
38 | |
39 | // overview configuration in thread.php |
40 | $news['max'] = 50; |
41 | |
42 | // custom headers in post.php |
43 | $news['customhdr'] = "Content-Type: text/plain; charset=iso-8859-15\n" |
44 | ."Mime-Version: 1.0\n" |
45 | ."Content-Transfer-Encoding: 8bit\n" |
c726f8ad |
46 | ."HTTP-Posting-Host: ".gethostbyname($_SERVER['REMOTE_ADDR'])."\n" |
9cf5b337 |
47 | ."User-Agent: Banana 0.7beta\n"; |
48 | |
49 | ?> |