From 6cbe8ceb129a4490a4f7a8163c20b6687a040358 Mon Sep 17 00:00:00 2001 From: piaip Date: Thu, 4 Aug 2005 16:32:01 +0000 Subject: Overrides r2977. PLEASE DO NOT USE include/pttbbs.conf. The better way is to write default values in include/config.h and then make an entry in "sample/pttbbs.conf". A new file of sample/pttbbs_minimal.conf is added to make things clear. And DO NOT reveal magic numbers to files in repository. We have to change RECODE_MAGIC now... git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2983 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/config.h | 22 +++++++++++++++++++++- include/pttbbs.conf | 23 ----------------------- 2 files changed, 21 insertions(+), 24 deletions(-) delete mode 100644 include/pttbbs.conf (limited to 'include') diff --git a/include/config.h b/include/config.h index 0af774a6..b6254a08 100644 --- a/include/config.h +++ b/include/config.h @@ -9,6 +9,18 @@ #define BAN_FILE "BAN" /* 關站通告檔 */ #define LOAD_FILE "/proc/loadavg" /* for Linux */ +#ifndef BBSUSER +#define BBSUSER "bbs" +#endif + +#ifndef BBSUID +#define BBSUID (9999) +#endif + +#ifndef BBSGID +#define BBSGID (99) +#endif + #ifndef RELAY_SERVER_IP /* 寄站外信的 mail server */ #define RELAY_SERVER_IP "127.0.0.1" #endif @@ -57,8 +69,16 @@ #define MAX_FROM (300) /* 最多故鄉數 */ #endif +#ifndef THREAD_SEARCH_RANGE +#define THREAD_SEARCH_RANGE (500) +#endif + #ifndef HAVE_JCEE /* 大學聯考查榜系統 */ -#define HAVE_JCEE 1 +#define HAVE_JCEE 0 +#endif + +#ifndef MEM_CHECK +#define MEM_CHECK 0x98761234 #endif #ifndef FOREIGN_REG_DAY /* 外籍使用者試用日期上限 */ diff --git a/include/pttbbs.conf b/include/pttbbs.conf deleted file mode 100644 index 4de87cb6..00000000 --- a/include/pttbbs.conf +++ /dev/null @@ -1,23 +0,0 @@ -/* 定義 BBS 站名位址 */ -#define BBSNAME "批踢踢實業坊" /* 中文站名 */ -#define BBSENAME "PTT" /* 英文站名 */ -#define MYHOSTNAME "ptt.csie.ntu.edu.tw" /* 網路位址 */ -#define MYIP "140.112.30.142" /* IP位址 */ -#define BBSUSER "bbs" -#define BBSUID 9999 -#define BBSGID 99 - -#define THREAD_SEARCH_RANGE (500) -#define MAX_USERS 150000 -#define MAX_ACTIVE 4096 -#define MAX_CPULOAD 50 -#define MAX_FROM 512 -#define RELAY_SERVER_IP "140.112.30.143" -#define MAX_POST_MONEY 1000 -#define MAX_CHICKEN_MONEY 10000 -#define HAVE_JCEE 0 -#define TITLE_COLOR "\33[0;1;37;44m" -#define MEM_CHECK 0 -#define MEM_CHECK 0 -#define REGCODE_MAGIC "ptt1bbsXyZ" -#define THREAD_SEARCH_RANGE (500) -- cgit v1.2.3