summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-09 23:35:48 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-09 23:35:48 +0800
commitf680ef20c2d16966a408c56608b28c1e014c2105 (patch)
treec2fcf02c6d4cb8147e9ea8f5ed219348b9264970 /include
parent2320c0c0743af362779009ae09dee8053df9738b (diff)
downloadpttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar
pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.gz
pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.bz2
pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.lz
pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.xz
pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.zst
pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.zip
- 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
Diffstat (limited to 'include')
-rw-r--r--include/common.h9
-rw-r--r--include/proto.h1
-rw-r--r--include/pttstruct.h1
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];