WWW gateway This PHP script is licensed under the GPL Author: Terence Yim E-mail: chtyim@gmail.com Homepage: http://web-news.sourceforge.net */ /******************************************************************/ /* SERVER SETTINGS */ /* This part configurate the server settings */ /******************************************************************/ // NNTP Server setting //$nntp_server = '192.168.1.6'; $nntp_server = '192.168.1.5'; $user = ""; $pass = ""; // Proxy Server settings. Set it to empty string for not using it $proxy_server = ""; $proxy_port = ""; $proxy_user = ""; $proxy_pass = ""; // Session name. Set it to a unique string that can represent your site. // Notice that no space is allowed in the name. $session_name = "webnews"; // List of subscribed newsgroups // A B C D E F G H I J K L M N O P Q R S T U V W X Y Z $newsgroups_list = array( "aioe.*", "comp.*", "fr.*", "france.*", "free.*", "it.*", "italia.*", "it-alt.*", "linux.*", "news.*" ); //$newsgroups_list = array("it.*", "italia.*", "free.*"); //$default_group = "it.test"; $default_group = "free.it.ai.general"; /******************************************************************/ /* SECURITY SETTINGS */ /* This part configurate the security settings */ /******************************************************************/ // auth_level = 1 ------ No need to perform authentication // auth_level = 2 ------ Perform authentication only when posting message // auth_level = 3 ------ Perform authentication in any operation $auth_level = 2; // The URL of the page shown after user logout // It can be a relative or absolute address // If protocol other than HTTP or HTTPS is used, please use absolute path // You can also use the variable "$_SERVER['HTTP_HOST']" to extract the current host name // e.g. $logout_url = "ftp://".$_SERVER['HTTP_HOST']."/mypath"; $logout_url = "newsgroups.php"; // Realm to be used in the user authetication $realm = "CatWalker"; /******************************************************************/ /* PAGE DISPLAY SETTINGS */ /* This part set the limit constants */ /******************************************************************/ // Page splitting settings $message_per_page = 75; $message_per_page_choice = array(25, 50, 75, 100, 250, 500, 750, 1000); $pages_per_page = 10; // Default language // $text_ini = "config/messages_en_us.ini"; $text_ini = "config/messages_it_it.ini"; // $text_ini = "config/messages_zh_tw.ini"; // $text_ini = "config/messages_zh_tw_utf8.ini"; // $text_ini = "config/messages_zh_cn.ini"; // $text_ini = "config/messages_zh_cn_utf8.ini"; $locale_list = array("it_it" => "Italiano (IT)", "en_us" => "English (US)" ); // Filter the javascript or jscript $filter_script = true; /******************************************************************/ /* DEFAULT/LIMIT VALUES SETTINGS */ /* This part set the the default values or limits */ /******************************************************************/ // TRUE if the message tree is all expanded when first loaded, FALSE otherwise $default_expanded = TRUE; // TRUE if posting across several subscribed newsgroups is allowed $allow_cross_post = FALSE; // Upload file size limit $upload_file_limit = 1048576; //1M // The length limit for the subject and sender $subject_length_limit = 100; $sender_length_limit = 20; // Path to the images $image_base = "images/"; // Number of messages to search through for showing threads in read article // If set to <= 0, no threads would be show // The larger the number, the more complete would be the thread tree, but takes longer time to load $thread_search_size = 100; // Actual search window size would be $thread_search_size*2 + 1 /******************************************************************/ /* COLOUR AND FONT SETTINGS */ /* This part set the colour scheme and the font style */ /******************************************************************/ // Notice that the background color, text, link, active link and visited link color are controlled // in the tag of template.php. They are not set in here $today_color = "ff0000"; // Colour of the date display if the date is today $week_color = "00aa00"; // Colour of the date display if the date is within a week $error_color= "ff0000"; // Colour of the error messages // Primary colour is the deepest colour and tertiary colour is the lightest colour $primary_color = "C1DFFA"; $secondary_color = "EAF6FF"; $tertiary_color = "FFFFFF"; // The color of the link text when mouse hover. $over_link_color = "FF0000"; $font_family = "Tahoma, Sans-Serif"; $font_size = "-1"; $form_style = "font-family: ".$font_family."; font-size: 75%"; $form_style_bold = $form_style."; font-weight: bold"; /******************************************************************/ /* TEMPLATE SETTINGS */ /******************************************************************/ // The template script should contain at least 3 statement as: // // ob_start(); // include($content_page); // ob_end_flush(); // // If you want to support autoscroll, please also include the following in the BODY tag // // if (isset($on_load_script)) { // echo "onLoad=\"$on_load_script\""; // } $template = "template.php"; // template2.php includes a fancy welcome header // $template = "template2.php"; ?>