From f680ef20c2d16966a408c56608b28c1e014c2105 Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 9 Apr 2008 15:35:48 +0000 Subject: - restrict VIOLATE_LAW cross-posting - add owner/delete in SAFEDEL title as log git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4118 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/common.h | 9 +++++++++ include/proto.h | 1 + include/pttstruct.h | 1 + 3 files changed, 11 insertions(+) (limited to 'include') diff --git a/include/common.h b/include/common.h index 1086a796..4d3d7d5d 100644 --- a/include/common.h +++ b/include/common.h @@ -34,6 +34,15 @@ #define FN_BRDLISTHELP "etc/boardlist.help" #define FN_BOARDHELP "etc/board.help" + +// 自訂刪除文章時出現的標題與檔案 +#ifndef FN_SAFEDEL +#define FN_SAFEDEL ".deleted" +#endif +#ifndef STR_SAFEDEL_TITLE +#define STR_SAFEDEL_TITLE "(本文已被刪除)" +#endif + #define MSG_DEL_CANCEL "取消刪除" #define MSG_BIG_BOY "我是大帥哥! ^o^Y" #define MSG_BIG_GIRL "世紀大美女 *^-^*" diff --git a/include/proto.h b/include/proto.h index cfea73d6..ade34488 100644 --- a/include/proto.h +++ b/include/proto.h @@ -507,6 +507,7 @@ int get_records_fd(const char *fpath, void *rptr, int size, int id, int number, void stamplink(char *fpath, fileheader_t *fh); int delete_record(const char fpath[], int size, int id); int delete_files(const char* dirname, int (*filecheck)(), int record); +void set_safedel_fhdr(fileheader_t *fhdr); #ifdef SAFE_ARTICLE_DELETE #ifndef _BBS_UTIL_C_ void safe_delete_range(const char *fpath, int id1, int id2); diff --git a/include/pttstruct.h b/include/pttstruct.h index 263cad44..ec116601 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -560,6 +560,7 @@ typedef struct { /* statistic */ int statistic[STAT_MAX]; + // TODO XXX 有 fromd 後可以拔掉了。 /* 故鄉 fromcache */ unsigned int home_ip[MAX_FROM]; unsigned int home_mask[MAX_FROM]; -- cgit v1.2.3