summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorlwms <lwms@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-09 12:28:10 +0800
committerlwms <lwms@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-09 12:28:10 +0800
commit9775cb20c754166c2bf4d8a3fa7e43284e13e631 (patch)
treeb96e7e43481778ad1aef72775aac94123fe7146d /mbbsd
parent13fd86ed06f3fc959fd3b5644334814c23dc56ca (diff)
downloadpttbbs-9775cb20c754166c2bf4d8a3fa7e43284e13e631.tar
pttbbs-9775cb20c754166c2bf4d8a3fa7e43284e13e631.tar.gz
pttbbs-9775cb20c754166c2bf4d8a3fa7e43284e13e631.tar.bz2
pttbbs-9775cb20c754166c2bf4d8a3fa7e43284e13e631.tar.lz
pttbbs-9775cb20c754166c2bf4d8a3fa7e43284e13e631.tar.xz
pttbbs-9775cb20c754166c2bf4d8a3fa7e43284e13e631.tar.zst
pttbbs-9775cb20c754166c2bf4d8a3fa7e43284e13e631.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@314 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c13
-rw-r--r--mbbsd/read.c6
2 files changed, 15 insertions, 4 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index f6877570..dd100900 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.50 2002/06/07 18:54:52 ptt Exp $ */
+/* $Id: bbs.c,v 1.51 2002/06/09 04:27:50 lwms Exp $ */
#include "bbs.h"
static void mail_by_link(char* owner, char* title, char* path) {
@@ -659,6 +659,9 @@ static int edit_post(int ent, fileheader_t *fhdr, char *direct) {
fileheader_t postfile;
boardheader_t *bp;
bp = getbcache(currbid);
+ if ( strcmp(bp->brdname, "Security" ) == 0 )
+ return DONOTHING;
+
if (!HAS_PERM(PERM_SYSOP) && (bp->brdattr & BRD_VOTEBOARD))
return DONOTHING;
@@ -1163,6 +1166,8 @@ static int mark_post(int ent, fileheader_t *fhdr, char *direct) {
int del_range(int ent, fileheader_t *fhdr, char *direct) {
char num1[8], num2[8];
int inum1, inum2;
+ boardheader_t *bp;
+ bp = getbcache(currbid);
/* rocker.011018: 串接模式下還是不允許刪除比較好 */
if(currmode & MODE_SELECT) {
@@ -1171,7 +1176,8 @@ int del_range(int ent, fileheader_t *fhdr, char *direct) {
/*safe_sleep(1);*/
return FULLUPDATE;
}
-
+ if ( strcmp( bp->brdname, "Security") == 0 )
+ return DONOTHING;
if((currstat != READING) || (currmode & MODE_BOARD)) {
getdata(1, 0, "[設定刪除範圍] 起點:", num1, 5, DOECHO);
inum1 = atoi(num1);
@@ -1238,7 +1244,8 @@ static int del_post(int ent, fileheader_t *fhdr, char *direct) {
boardheader_t *bp;
bp = getbcache(currbid);
-
+ if ( strcmp(bp->brdname, "Security") == 0 )
+ return DONOTHING;
if((fhdr->filemode & FILE_MARKED) || (fhdr->filemode & FILE_DIGEST) ||
(fhdr->owner[0] == '-'))
return DONOTHING;
diff --git a/mbbsd/read.c b/mbbsd/read.c
index 7e598f53..57671882 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.4 2002/06/04 13:08:34 in2 Exp $ */
+/* $Id: read.c,v 1.5 2002/06/09 04:28:10 lwms Exp $ */
#include "bbs.h"
#define MAXPATHLEN 256
@@ -180,6 +180,10 @@ TagThread(char *direct)
int
TagPruner(int bid)
{
+ boardheader_t *bp;
+ bp = getbcache(bid);
+ if ( strcmp(bp->brdname, "Security" ) == 0 )
+ return DONOTHING;
if (TagNum && ((currstat != READING) || (currmode & MODE_BOARD)))
{
if(getans("刪除所有標記[N]?") != 'y')