/*-------------------------------------------------------*/ /* config.h ( NTHU CS MapleBBS Ver 2.36 ) */ /*-------------------------------------------------------*/ /* target : site-configurable settings */ /* create : 95/03/29 */ /* update : 95/12/15 */ /*-------------------------------------------------------*/ #ifndef _CONFIG_H_ #define _CONFIG_H_ /* ----------------------------------------------------- */ /* 定義 BBS 站名位址 */ /* ------------------------------------------------------*/ #define BOARDNAME "陽光沙灘" /* 中文站名 */ #define BBSNAME "Sun Of Beach BBS" /* 英文站名 */ #define MYHOSTNAME "sob.m7.ntu.edu.tw" /* 網路位址 */ #define MYVERSION "SunOfBeach BBS 0.00" /* 程式版本 */ #define MYBBSID "sob" /* 轉信代碼 */ #define BBSHOME "/home/bbs" /* BBS 的家 */ #define BBSUSER "bbs" #define BBSUID 9999 #define BBSGID 99 #define BBSSHELL "/home/bbs/bin/bbsrf" /* 前端程式 */ #define BBSPROG "/home/bbs/bin/bbs" /* 主程式 */ /* ----------------------------------------------------- */ /* 組態規劃 */ /* ------------------------------------------------------*/ #define WITHOUT_CHROOT /* 不需要 root set-uid */ #define HAVE_MOVIE /* 顯示動態告示板 */ #define HAVE_INFO /* 顯示程式版本說明 */ #define HAVE_License /* 顯示 GNU 版權畫面 */ #define INTERNET_PRIVATE_EMAIL /* 可以寄私人信件到 Internet */ #define BIT8 /* 支援中文系統 */ #define DEFAULTBOARD "sysop" /* 預設看板 */ #define LOGINATTEMPTS (3) /* 最大進站失誤次數 */ #define LOGINASNEW (1) /* 採用上站申請帳號制度 */ #define VOTE (1) /* 提供投票功能 */ #define INTERNET_EMAIL /* 支援 InterNet Email 功能(含 Forward) */ #define EMAIL_JUSTIFY /* 發出 InterNet Email 身份認證信函 */ #define NEWUSER_LIMIT /* 新手上路的三天限制 */ #undef INVISIBLE /* 隱藏 BBS user 來自何處 */ #define MULTI_LOGINS /* 允許同時多次上站 */ #undef POSTBUG /* board/mail post 沒有 bug 了 */ #undef HAVE_REPORT /* 系統追蹤報告 */ #define INITIAL_SETUP /* 剛開站,還沒建立預設看板[sysop] */ #define HAVE_MMAP /* 採用 mmap(): memory mapped I/O */ /* 在 SunOS、FreeBSD 上可以加速 30 倍 */ /* Linux 的 mmap() 有問題,請暫時不要用 */ #undef HAVE_ORIGIN /* 顯示 author 來自何處 */ #undef HAVE_MAILCLEAN /* 清理所有使用者個人信箱 */ #define HAVE_SUICIDE /* 提供使用者自殺功能 */ /* ----------------------------------------------------- */ /* 隨 BBS 站規模成長而擴增 */ /* ----------------------------------------------------- */ #define MAXUSERS (6000) /* 最高註冊人數 */ #define MAXBOARD (128) /* 最大開版個數 */ #define MAXACTIVE (100) /* 最多同時上站人數 */ #define MAX_FRIEND (112) /* 載入 cache 之最多朋友數目 */ #define MAX_REJECT (16) /* ----------------------------------------------------- */ /* 其他系統上限參數 */ /* ----------------------------------------------------- */ #define MAXKEEPMAIL (100) /* 最多保留幾封 MAIL? */ #define MAX_NOTE (10) /* 最多保留幾篇留言? */ #define MAXSIGLINES (20) /* 簽名檔引入最大行數 */ #define MAXQUERYLINES (16) /* 顯示 Query/Plan 訊息最大行數 */ #define MAXPAGES (256) /* more.c 中文章頁數上限 (lines/22) */ #define MOVIE_INT (20) /* 切換動畫的週期時間:20秒 */ /* ----------------------------------------------------- */ /* 發呆過久自動簽退 */ /* ------------------------------------------------------*/ #define DOTIMEOUT #ifdef DOTIMEOUT #define IDLE_TIMEOUT (60*20) /* 一般情況之 timeout */ #define MONITOR_TIMEOUT (60*8) /* monitor 時之 timeout */ #define SHOW_IDLE_TIME /* 顯示閒置時間 */ #endif /* ----------------------------------------------------- */ /* chat.c & xchatd.c 中採用的 port 及 protocol */ /* ------------------------------------------------------*/ #define CHATPORT 5722 #define MAXROOM 16 /* 最多有幾間包廂? */ #define EXIT_LOGOUT 0 #define EXIT_LOSTCONN -1 #define EXIT_CLIERROR -2 #define EXIT_TIMEDOUT -3 #define EXIT_KICK -4 #define CHAT_LOGIN_OK "OK" #define CHAT_LOGIN_EXISTS "EX" #define CHAT_LOGIN_INVALID "IN" #define CHAT_LOGIN_BOGUS "BG" #define BADCIDCHARS " *" /* Chat Room 中禁用於 nick 的字元 */ /* ----------------------------------------------------- */ /* 系統參數 */ /* ----------------------------------------------------- */ #define MAGIC_KEY 1234 /* 身分認證信函編碼 */ #define BRDSHM_KEY 1215 #define UIDSHM_KEY 1217 #define UTMPSHM_KEY 1219 /* ----------------------------------------------------- */ /* 申請帳號時要求申請者真實資料 */ /* ----------------------------------------------------- */ #define SHOWUID /* 看見使用者 UID */ #define SHOWTTY /* 看見使用者 TTY */ #define SHOWPID /* 看見使用者 PID */ #define REALINFO /* 真實姓名 */ #ifdef REALINFO #undef ACTS_REALNAMES /* 主目錄的 (U)ser 顯示真實姓名 */ #undef POST_REALNAMES /* 貼文件時附上真實姓名 */ #undef MAIL_REALNAMES /* 寄站內信件時附上真實姓名 */ #undef QUERY_REALNAMES /* 被 Query 的 User 告知真實姓名 */ #endif /* ----------------------------------------------------- */ /* 提供外掛程式 */ /* ----------------------------------------------------- */ #define HAVE_EXTERNAL #ifdef HAVE_EXTERNAL # undef HAVE_TIN /* 提供 news reader */ # undef HAVE_GOPHER /* 提供 gopher */ # define HAVE_WWW /* 提供 www browser */ # define HAVE_BRIDGE /* 提供 bridge game */ # undef HAVE_BBSDOORS /* 提供 bbs doors */ # undef HAVE_GAME /* 提供網路連線遊戲 */ # undef HAVE_ADM_SHELL /* 提供 csh 以便管理 */ #endif #endif