Location: PHPKode > projects > PSlash > pslash-0.70/html/config.php
<?

###############################################################################
# Copyright (C) 2000  Derek Leung
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# You may modify your copy or copies of this Program or any portion of it,
# but you must cause the modified files to carry prominent notices stating 
# that you changed the files and the date of any change.  And you are required 
# to keep a copy of this License along with this Program.
#
# You are not required to accept this License, since you have not signed it. 
# However, nothing else grants you permission to modify or distribute this 
# Program or its derivative works. These actions are prohibited by law if 
# you do not accept this License. Therefore, by modifying or distributing 
# this Program (or any work based on this Program), you indicate your 
# acceptance of this License to do so, and all its terms and conditions 
# for copying, distributing or modifying this Program or works based on it.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
# See the GNU General Public License for more details.
# http://www.opensource.org/licenses/gpl-license.html
###############################################################################

/*Root directory */
$config[root_path] = "/home/groups/p/ps/pslash/htdocs";  // path to your www directory
$config[root_url] = "http://www.pslash.com"; // URL of your homepage, example: http://www.mydomain.com/yourname
$config[root_relative_path] = "/" ; // the relative path of your pslash install, for example, /yourname
$config[data_path] = "/home/groups/p/ps/pslash/data"; // path to your data directory path.  
$config[theme_path] = $config[root_path] . "/" . "themes"; // keep it as is if you are not sure
$config[theme_relative_path] = "/themes"; // the relative path to your themes dir. 
$config[img_relative_path] = "/imgs"; // the relaive path to your imgs dir. 
$config[rdf_path] = "$config[root_path]/rdf"; // the path to the rdf dir.  keep it as is if you are not sure
$config[qmail_path] = "/usr/vpopmail/domains/mydomain.com";  // path to your domain name for vpopmail + qmail.  Keep it as is if you don't know what this is.
$config[submitImg_relative_path] = "/submitImg"; #the relative path to submitImg dir. 


/* System in use */
$config[os] = "linux";  # either "freebsd" or "linux".  Only for logo display use currently.

/* method to store password, if you are using Unix or Linux, please use 1.  If your operating system do not have Crypt() function, use 2.*/
$config[crypt_method] = 1;	// 1 = use crypt() , 2 = use plaintext (not recommend)
$config[minpass] 	= 3;  # Minimum user password length in characters

/* wwwthread setting (a commerical message board offer a lot more functions and it is a lot faster) */
$config[use_w3b] = false; // true or false.  if you are not using wwwthreads (http://www.wwwthreads.com) or not. 
$config[w3b_path] = "$config[root_path]/wwwthreads"; //path to wwwthreads dir

/* phpBB setting */
$config[use_phpBB] = true; // true or false.  phpBB is come with pslash.  For more info, please go to http://www.phpbb.com
$config[phpBB_path] = "$config[root_path]/phpBB"; // real path to phpBB dir

/* Visitors2 setting */
$config[visitor_path] = "/home/groups/p/ps/pslash/htdocs/modules/visitors2/include/";

/* database */
include $config[root_path]."/db_settings.php"; // no need to change.
$config[dbType] = "mysql"; //currently only support mysql

/* global */
$config[sitename] = "www.pSlash.com";  // your site name
$config[allow_special_name] = false; // true use special char in username, false do not use. (not recommend because member list will not sort properly)
$config[debug] = false;	// for debug use
$config[psVersion] = "pSlash v0.70";

// Cookie Setting
$config[cookie_path]  = "/"; # web root directory 
$config[CookieURL] = ".pslash.com"; // cookie URL
$config[cookieTTL] = 28800; // in seconds
$config[user_cookie_name] = "pslash_user"; // name of the cookie for users. keep it as is if you are not sure
$config[setting_cookie_name] = "pslash_setting";  // name of the cookie for user setting. keep it as is if you are not sure

/* service setting */
$config[email_forward] = false;  // enable if you have qmail + vpopmail install.  Keep it as is if you don't know what this is.
$config[url_forward] = false; // enable if you have your own domain name.  Keep it as is if you don't know what this is.
$config[ip_mapping] = false;  // enable if you have your own DNS server and your own domain name.  Keep it as is if you dont' know what this is.
$config[askQuestion] = false; // keep this false.  This features is only specific to my own use. You won't need it.  Trust me.  =)
$config[nsupdate_path] = "/usr/sbin/nsupdate"; // path to nsupdate, used by Ip Mapping service.  if you dont know, keep it as is.


/* service other setting */
$config[email_domain] = "@pslash.com";	// the domain for email forwarder
$config[ip_mapping_domain] = ".pslash.com"; // the domain that used by ip mapping, make sure start with a dot "."
$config[url_mapping_domain] = ".web.pslash.com";	// the domain that used by url mapping, make sure start with a dot "."

/* message used by service */
$config[no_forwarder_reason] = "This function is not enabled!";
$config[forward_desc] = "Our Email forwarder allow you to create a @pslash.com email address to forward to any of your current email address.  The main purpose is to have a more personal email address like hide@address.com instead of your current generic email address something like hide@address.com";
$config[forward_desc2] = "You have to remember that you can only assign your email forwarder address once.  If you assign your email fowarder to hide@address.com, you can not change it to hide@address.com later.  So, please make sure you come up with a name you like before you assign your email forwarder.";
$config[ip_desc] = "Our service Domain Mapping allow user to choose a domain name under pslash.com map to your current IP address.  For example, when you go online, you have an IP address 202.144.144.202.  Some of the online games need your friends to type in your IP address if they want to join your game.  So, you will need to tell your friends your current IP address 202.144.144.202 before they can join.  It is quite troublesome especially when your IP address change everytime when you go online.";
$config[ip_desc2] = "Domain mapping can solve this problem.  Let say you choose super.pslash.com as your domain name.  When you go online, you login to our website and click the update IP button, super.pslash.com will map to your current IP address 202.144.144.202.  Then, your friend can just type in super.pslash.com to join your game instead of asking for your current IP address.  Moreover, it is always cool to have a personal domain name!";
$config[ip_desc3] = "Type in a domain name you want.  For example, you type in \"super\" in the input box, and click the \"Update IP\" button.  Your domain name will become super.pslash.com and it will map to your current IP address <b>%s</b>.";
$config[url_desc] = "Our service URL forwarding allow user to use one of our subdomain to forward to their homepage.  For example, your login name is Super.  And you have a homepage at http://www.geocities.com/whatever/3601/.  Once you enable our service, other people can just type in http://Super.web.pslash.com, and the user will be forwarded to http://www.geocities.com/whatever/3601/.  The main benefit is that you can have a much short and easier remember homepage address.";



/* language and locale */
$config[language]	= "english";	# [english] english
									# [big5] BIG5 code (traditional Chinese) // about 3/4 is translated, most error message is not translated yet
									# [chinese] GB code (simplify Chinese) // not translated yet
									# [frensh] // not translated yet
									# [korean] // not translated yet
									# [japaneseJIS] Japanese // not translated yet
									# [japaneseEUC] Japanese // not translated yet
									# [italian] // not translated yet
									# [portuguese] // not translated yet
									# [spanish] // not translated yet
									# [german] // not translated yet
									# [polish] // not translated yet
									# [russian] // not translated yet

$config[timezone] = "PDT";			#Time zone

// take a look at the function getCharset in mainfile.php, you might want to add your language there as well.
##############################################

/* story control */
$config[commentmax] 	= 4096;
$config[abstractlen]	= 4996; #length of abstract show on first page
$config[icon_width]	= 100;     # Topic icons width
$config[limitnews]	= 10;   # default number of stories per page
$config[older_story_num]	= 10;   # number of older stories to display
$config[anon_users]	= 1; # 1 to allow anonymous postings.
						 # 0 to disable (recommend)

/* theme control */
$config[def_theme]	= "Main"; # name of default theme (see themes/ directory for list)

/* mail settings */
$config[use_fake_email]	= 1; # Displays fake email addresses for users instead of the real ones
$config[notifyEmail] 	= "hide@address.com"; 	#address where you want to receive notice

/* censorship */
$config[CensorList] = array("/Îx/s","/¼¿/s","/¹§/s", // other non-english filter, use this regex
				"/[a-z]*fuck[a-z]*/is", // english filter , use this regex
				"/[a-z]*cunt[a-z]*/is",
				"/[a-z]*pussy[a-z]*/is",
				"/[a-z]*cock[a-z]*/is",
				"/[a-z]*c0ck[a-z]*/is",
				"/[a-z]*shit[a-z]*/is",
				"/[a-z]*bitch[a-z]*/is",
				"/[a-z]*asshole[a-z]*/is"
			);

/*
$config[CensorMode]   = 3;	# 0: no filtering
			# 1: exact match
			# 2: match word beginnings
			# 3: match string anywhere in words
*/
$config[CensorReplace]   =  "[CENSORED]" ;

/* allowable HTML tags. Used by check_html()
   Happily lifted (with mods) from phpslash */
$config[AllowableHTML] = array("p"=>1,   # 2 means accept all qualifiers: <foo bar>
                      "b"=>1,    # 1 means accept the tag only: <foo>
                      "i"=>1,
                      "a"=>2,
                      "em"=>1,
                      "br"=>1,
                      "strong"=>1,
                      "blockquote"=>1,
					  "img"=>2,
                      "tt"=>1,
                      "hr"=>1,
                      "li"=>1,
                      "ol"=>1,
					  "div"=>1,
                      "ul"=>1);

$config[AllowableHTMLtag] = "<b>,<i>,<a>,<em>,<br>,<strong>,<blockquote>,<tt>,<hr>,<li>,<ol>,<div>,<ul>";


/* poll settings */

$config[maxOptions] 	= 14;	# maximal number of options allowed
$config[BarScale] 	= 1;	# scale of result bar (in multiples of 100 pixels)
$config[warnCheaters] 	= 1;	# 1 - a notice issued on vote second try
								# 0 - silently ignores the vote


/* misc */
$config[shortDateString] = "%m/%d/%y %I:%M %p";

if ($config[dateString] == "") {
	switch ($config[language]) {
		// specifier specs can be found on http://www.php.net/manual/function.strftime.php  /menthos
		case "english":	$config[dateString] = "%a, %b %d,%Y @ %I:%M %p"; break;
		case "big5":	$config[dateString] = "%a, %b %d,%Y @ %I:%M %p"; break;
		default:	$config[dateString] = "%a %b %d @ %H:%M"; break;
	}
}

?>
Return current item: PSlash