diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 9 | ||||
-rw-r--r-- | include/proto.h | 1 | ||||
-rw-r--r-- | include/pttstruct.h | 1 |
3 files changed, 11 insertions, 0 deletions
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]; |