summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-26 15:29:23 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-26 15:29:23 +0800
commit63c8a1a039564ab9926aa8677006540494f54208 (patch)
tree8741cf197d1d8809259c8b233e32030fb532b6cd /mbbsd
parent1b888ad8dc09568946c10de09d69e1fe8621ce70 (diff)
downloadpttbbs-63c8a1a039564ab9926aa8677006540494f54208.tar
pttbbs-63c8a1a039564ab9926aa8677006540494f54208.tar.gz
pttbbs-63c8a1a039564ab9926aa8677006540494f54208.tar.bz2
pttbbs-63c8a1a039564ab9926aa8677006540494f54208.tar.lz
pttbbs-63c8a1a039564ab9926aa8677006540494f54208.tar.xz
pttbbs-63c8a1a039564ab9926aa8677006540494f54208.tar.zst
pttbbs-63c8a1a039564ab9926aa8677006540494f54208.zip
deleting support
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1610 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/announce.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index e71e3f89..9af9e135 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -1112,8 +1112,11 @@ void BlogMain(int num)
"3.將本文加入部落格\n"
" 將游標所在位置的文章加入部落格\n"
"\n"
- "4.刪除迴響\n");
- switch( getans("請選擇(0-3)?[0]") ){
+ "4.刪除迴響\n"
+ "\n"
+ "5.刪除一篇部落格\n"
+ );
+ switch( getans("請選擇(0-5)?[0]") ){
case '1':
snprintf(genbuf, sizeof(genbuf),
"bin/builddb.pl -c %s", currboard);
@@ -1169,6 +1172,16 @@ void BlogMain(int num)
}
}
break;
+
+ case '5': {
+ char date[9];
+ getdata(16, 0, "請輸入該篇的日期(yyyymmdd): ",
+ date, sizeof(date), DOECHO);
+ snprintf(genbuf, sizeof(genbuf),
+ "bin/builddb.pl -D %s %s", date, currboard);
+ system(genbuf);
+ }
+
default:
exit = 1;
break;