69f9bc48a9d262acb33bf27a97a9d9584c9de957
[banana.git] / install.d / config.inc.php
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 'Message-ID' => 'msgid',
28 'Organization' => 'organization',
29 'References' => 'references',
30 'X-Face' => 'xface',
31 );
32
33 // headers in article.php
34 $news['headdisp']=array(
35 'from',
36 'subject',
37 'newsgroups',
38 'followup',
39 'date',
40 'organization',
41 'references',
42 'xface'
43 );
44
45 // overview configuration in article.php
46 $news['threadtop'] = 5;
47 $news['threadbottom'] = 5;
48
49 // wordwrap configuration
50 $news['wrap'] = 80;
51
52 // overview configuration in thread.php
53 $news['max'] = 50;
54
55 // custom headers in post.php
56 $news['customhdr'] = "Content-Type: text/plain; charset=iso-8859-15\n"
57 ."Mime-Version: 1.0\n"
58 ."Content-Transfer-Encoding: 8bit\n"
59 ."HTTP-Posting-Host: ".gethostbyname($_SERVER['REMOTE_ADDR'])."\n"
60 ."User-Agent: Banana 0.7beta\n";
61
62 $css = array(
63 'bananashortcuts' => 'bananashortcuts',
64 'title' => 'title',
65 'bicol' => 'bicol',
66 'bicoltitre' => 'bicoltitre',
67 'bicolvpadd' => 'bicolvpadd',
68 'pair' => 'pair',
69 'impair' => 'impair',
70 'bouton' => 'bouton',
71 'error' => 'error',
72 'normal' => 'normal',
73 'total' => 'total',
74 'unread' => 'unread',
75 'group' => 'group',
76 'description' => 'description',
77 'date' => 'date',
78 'subject' => 'subject',
79 'from' => 'from',
80 'author' => 'author',
81 'nopadd' => 'nopadd',
82 'overview' => 'overview',
83 'tree' => 'tree'
84 );
85 ?>