From f10d92d96581666a7ac2898168f0cc6f7558f32c Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 12 Mar 2004 09:39:16 +0000 Subject: merge from victor.symbolic branch symbolic link to board rename something might cause misunderstanding git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1589 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/modes.h | 2 +- include/proto.h | 4 +++- include/pttstruct.h | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/modes.h b/include/modes.h index ca43900c..175186c6 100644 --- a/include/modes.h +++ b/include/modes.h @@ -106,7 +106,7 @@ #define MODE_STARTED 1 /* 是否已經進入系統 */ #define MODE_POST 2 /* 是否可以在 currboard 發表文章 */ #define MODE_BOARD 4 /* 是否可以在 currboard 刪除、mark文章 */ -#define MODE_MENU 8 /* 是否可以在 MENU 開板 */ +#define MODE_GROUPOP 8 /* 是否為小組長 (可以在 MENU 開板) */ #define MODE_DIGEST 0x10 /* 是否為 digest mode */ #define MODE_ETC 0x20 /* 是否為 etc mode */ #define MODE_SELECT 0x40 /* 搜尋使用者標題 */ diff --git a/include/proto.h b/include/proto.h index aac257e6..388e03e8 100644 --- a/include/proto.h +++ b/include/proto.h @@ -21,6 +21,8 @@ int m_register(); int cat_register(); unsigned int setperms(unsigned int pbits, char *pstring[]); void setup_man(boardheader_t * board); +int make_symbolic_link(char *bname, int gid); +int make_symbolic_link_interactively(int gid); /* announce */ int a_menu(char *maintitle, char *path, int lastlevel); @@ -75,7 +77,7 @@ int brc_unread(const char *fname, int bnum, const int *blist); int brc_initial(const char *boardname); void brc_update(); void brc_finalize(); -int Ben_Perm(boardheader_t *bptr); +int HasPerm(boardheader_t *bptr); int New(); int Boards(); int root_board(); diff --git a/include/pttstruct.h b/include/pttstruct.h index 34becd25..d22f4701 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -162,6 +162,11 @@ typedef struct boardheader_t { #define BRD_NORECOMMEND 000010000 /* 不可推薦 */ #define BRD_BLOG 000020000 /* BLOG */ #define BRD_BMCOUNT 000040000 /* 板主設定列入記錄 */ +#define BRD_SYMBOLIC 000100000 /* symbolic link to board */ + +#define BRD_LINK_TARGET(x) ((x)->postexpire) + + #define TTLEN 64 /* Length of title */ #define FNLEN 33 /* Length of filename */ -- cgit v1.2.3