diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-08-23 13:36:03 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-08-23 13:36:03 +0800 |
commit | 566c210f2b2f650e15569dc263b113710636eec9 (patch) | |
tree | 57c86c9a158d38b151748aa7e5a19c6d4ce5e710 /include | |
parent | 256c65c5b93d4213540676a42c81744b0ffeb7d8 (diff) | |
download | pttbbs-566c210f2b2f650e15569dc263b113710636eec9.tar pttbbs-566c210f2b2f650e15569dc263b113710636eec9.tar.gz pttbbs-566c210f2b2f650e15569dc263b113710636eec9.tar.bz2 pttbbs-566c210f2b2f650e15569dc263b113710636eec9.tar.lz pttbbs-566c210f2b2f650e15569dc263b113710636eec9.tar.xz pttbbs-566c210f2b2f650e15569dc263b113710636eec9.tar.zst pttbbs-566c210f2b2f650e15569dc263b113710636eec9.zip |
* use SAFE_ARTICLE_DELETE even if nuser < 30
* because we can make rich UI to allow leaving delete reasons in this mode
* also because it's stupid to determine by magic 30
* changed board name UnAnonymous to macro in config.h
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4762 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 4 | ||||
-rw-r--r-- | include/proto.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/config.h b/include/config.h index dae9d243..dc000630 100644 --- a/include/config.h +++ b/include/config.h @@ -90,6 +90,10 @@ #define BN_JUNK "junk" #endif +#ifndef BN_UNANONYMOUS +#define BN_UNANONYMOUS "UnAnonymous" +#endif + /* Environment */ #ifndef RELAY_SERVER_IP /* ±H¯¸¥~«Hªº mail server */ #define RELAY_SERVER_IP "127.0.0.1" diff --git a/include/proto.h b/include/proto.h index 400a6db7..879d9a8a 100644 --- a/include/proto.h +++ b/include/proto.h @@ -434,12 +434,12 @@ void UnTagger (int locus); int stampfile_u(char *fpath, fileheader_t *fh); int stampadir(char *fpath, fileheader_t * fh, int large_set); int delete_files(const char* dirname, int (*filecheck)(), int record); -void set_safedel_fhdr(fileheader_t *fhdr); +void set_safedel_fhdr(fileheader_t *fhdr, const char *newtitle); #ifdef SAFE_ARTICLE_DELETE #ifndef _BBS_UTIL_C_ void safe_delete_range(const char *fpath, int id1, int id2); #endif -int safe_article_delete(int ent, const fileheader_t *fhdr, const char *direct); +int safe_article_delete(int ent, const fileheader_t *fhdr, const char *direct, const char *newtitle); int safe_article_delete_range(const char *direct, int from, int to); #endif int delete_file(const char *dirname, int size, int ent, int (*filecheck)()); |