summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-12 17:39:16 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-12 17:39:16 +0800
commitf10d92d96581666a7ac2898168f0cc6f7558f32c (patch)
treeb0d98f8554c5113bc244dc7ced2ba5f7627809f7 /include
parent786d63f533b3cd2ff6cda0ef1797fdace352561c (diff)
downloadpttbbs-f10d92d96581666a7ac2898168f0cc6f7558f32c.tar
pttbbs-f10d92d96581666a7ac2898168f0cc6f7558f32c.tar.gz
pttbbs-f10d92d96581666a7ac2898168f0cc6f7558f32c.tar.bz2
pttbbs-f10d92d96581666a7ac2898168f0cc6f7558f32c.tar.lz
pttbbs-f10d92d96581666a7ac2898168f0cc6f7558f32c.tar.xz
pttbbs-f10d92d96581666a7ac2898168f0cc6f7558f32c.tar.zst
pttbbs-f10d92d96581666a7ac2898168f0cc6f7558f32c.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/modes.h2
-rw-r--r--include/proto.h4
-rw-r--r--include/pttstruct.h5
3 files changed, 9 insertions, 2 deletions
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 */