nav 1
[www/www.git] / newsgroup / config.inc.php
1 <?
2 /*
3  * directories and files
4  */
5 $spooldir="spool";
6 $imgdir="img";
7 $file_newsportal="newsportal.php";
8 $file_index="index.php";
9 $file_thread="thread.php";
10 $file_article="article.php";
11 // $file_article_full="article.php";
12 $file_attachment="attachment.php";
13 $file_post="post.php";
14 $file_cancel="cancel.php";
15 $file_language="lang/english.lang";
16 $file_footer="/users/www/www/footer.html";
17 $file_groups="groups.txt";
18
19 /* 
20  * newsserver setup
21  */
22 $server="news";
23 $port=119;
24 // $post_server="";
25 // $post_port=119;
26 $maxfetch=0; // depricated
27 $initialfetch=0;  // depricated
28 //$server_auth_http=true;
29
30 /*
31  * Grouplist Layout
32  */
33 $gl_age=true;
34
35 /*
36  * Thread layout
37  */
38 $thread_treestyle=7;
39 $thread_show["date"]=true;
40 $thread_show["subject"]=true;
41 $thread_show["author"]=true;
42 $thread_show["authorlink"]=false;
43 $thread_show["replies"]=true;
44 $thread_show["lastdate"]=false; // makes only sense with $thread_show["replies"]=false
45 $thread_show["threadsize"]=false;
46 $thread_maxSubject=50;
47 $maxarticles=400;
48 $maxarticles_extra=100;
49 $age_count=3;
50 $age_time[1]=86400; //24 hours
51 $age_color[1]="red";
52 $age_time[2]=259200; //3 days
53 $age_color[2]="#999900";
54 $age_time[3]=604800; //7 days
55 $age_color[3]="#00bb00";
56 $thread_sort_order=-1;
57 $thread_sort_type="thread";
58 $articles_per_page=50;
59 $startpage="first";
60
61 /* 
62  * Frames 
63  */
64 // for frames-support: read README in the frames-directory
65 //$frame_article="article";
66 //$frame_thread="thread";
67 //$frame_groups="_top";
68 //$frame_post="_top";
69 //$frame_threadframeset="_top";
70 $frame_externallink="_blank";
71
72 /* 
73  * article layout 
74  */
75 $article_show["Subject"]=true;
76 $article_show["From"]=true;
77 $article_show["Newsgroups"]=true;
78 $article_show["Followup"]=true;
79 $article_show["Organization"]=true;
80 $article_show["Date"]=true;
81 $article_show["Message-ID"]=false;
82 $article_show["User-Agent"]=false;
83 $article_show["References"]=false;
84 $article_show["From_link"]=true;
85 //$article_show["From_rewrite"]=array('@',' (at) ');
86 $article_showthread=true;
87 $article_graphicquotes=true;
88
89 /*
90  * settings for the article flat view, if used
91  */
92 $articleflat_articles_per_page=20;
93 $articleflat_chars_per_articles=5000;
94
95 /*
96  * Message posting
97  */
98 $send_poster_host=false;
99 $readonly=false;
100 $testgroup=false;
101 $validate_email=1;
102 $organization="University of Waterloo Computer Science Club";
103 $setcookies=false;
104 // $anonym_address="set_this@to_something_valid";
105 $msgid_generate="md5";
106 $msgid_fqdn=$_SERVER["HTTP_HOST"];
107 $post_autoquote=false;
108
109 /* 
110  * Attachments
111  */
112 $attachment_show=true;
113 $attachment_delete_alternative=true; // delete non-text mutipart/alternative
114 $attachment_uudecode=false;  // experimental!
115
116 /*
117  * Security settings
118  */
119 $block_xnoarchive=false;
120
121 /*
122  * Cache
123  */
124 $cache_articles=false;  // article cache, experimental!
125 $cache_index=3600; // cache the group index for one hour before reloading
126 $cache_thread=60; // cache the thread for one minute reloading
127
128 /*
129  * Misc 
130  */
131 $title="CSC Newsportal";
132 $cutsignature=true;
133 $compress_spoolfiles=false;
134
135 // website charset, "koi8-r" for example
136 $www_charset = "iso-8859-15";
137 // Use the iconv extension for improved charset conversions
138 $iconv_enable=true;
139 // timezone relative to GMT, +1 for CET
140 $timezone=-5;
141
142 /*
143  * Group specific config 
144  */
145 //$group_config=array(
146 //  '^de\.alt\.fan\.aldi$' => "aldi.inc",
147 //  '^de\.' => "german.inc"
148 //);
149
150 /*
151  * Do not edit anything below this line
152  */
153 // Load group specifig config files
154 if((isset($group)) && (isset($group_config))) {
155   foreach ($group_config as $key => $value) {
156     if (ereg($key,$group)) {
157       include $value;
158       break;
159     }
160   }
161 }
162
163 // check the settings
164 include "lib/check.php";
165
166 // load the english language definitions first because some of the other
167 // definitions are incomplete
168 include("lang/english.lang"); 
169 include($file_language);
170 ?>