Skip to content

Commit

Permalink
Open sent mail box in bbsleft
Browse files Browse the repository at this point in the history
  • Loading branch information
Liu-Ameng committed Nov 9, 2014
1 parent 1f523df commit 8567db5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nju09/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ CFILE = bbsmain.c bbstop10.c bbsdoc.c bbscon.c bbsbrdadd.c bbsboa.c bbsall.c bbs
bbsscanreg.c bbsshowfile.c bbst.c bbsdt.c bbslt.c bbsincon.c bbssetscript.c \
bbscccmail.c bbsfwdmail.c bbstmpl.c bbsrss.c bbsucss.c bbsdefcss.c bbssecfly.c \
bbssbs.c bbseditmail.c bbsfindpass.c bbsresetpass.c bbsfindacc.c bbsnotify.c \
bbsdelnotify.c bbsbadd.c bbsbdel.c bbsball.c
bbsdelnotify.c bbsbadd.c bbsbdel.c bbsball.c bbssentmailbox.c

This comment has been minimized.

Copy link
@IronBlood

IronBlood Nov 21, 2014

Member

已在 e7c9088 中撤销

CFILEBACKUP = bbsdmulan.c bbsdt.c bbsjs.c bbslt.c bbsmovie.c bbsnewleft.c bbssel.c bbst.c bbstty.c bbschat.c \
ytml.c ytml_func.c bclass.c bbsusr.c bbsalluser.c

Expand Down
1 change: 1 addition & 0 deletions nju09/bbsleft.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ bbsleft_main()
printdiv(&div, "处理信件");
printf("&nbsp;&nbsp;<a target=f3 href=bbsnewmail class=linkleft>新邮件</a><br>"
"&nbsp;&nbsp;<a target=f3 href=bbsmail class=linkleft>所有邮件</a><br>"
"&nbsp;&nbsp;<a target=f3 href=bbsmail?type=1 class=linkleft>已发送邮件</a><br>"
"&nbsp;&nbsp;<a target=f3 href=bbspstmail class=linkleft>发送邮件</a><br>"
"</div></td></tr>");
}
Expand Down
18 changes: 16 additions & 2 deletions nju09/bbsmail.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,24 @@ bbsmail_main()
int i, start, total;
char buf[512], dir[80];
struct fileheader x;
/* type of mail box
* 0 : in box
* 1 : out box
*/
int box_type = 0;
if (!loginok || isguest)
http_fatal("您尚未登录, 请先登录");
sprintf(dir, "mail/%c/%s/.DIR", mytoupper(currentuser.userid[0]),
currentuser.userid);
strsncpy(buf, getparm("type"), 10);
if(buf[0] != 0) {
box_type = atoi(buf);
}
if(box_type == 1) {
sprintf(dir, "mail/%c/%s/send_mail/.DIR", mytoupper(currentuser.userid[0]),

This comment has been minimized.

Copy link
@IronBlood

IronBlood Nov 21, 2014

Member

已更新路径 by IronBlood

currentuser.userid);
} else {
sprintf(dir, "mail/%c/%s/.DIR", mytoupper(currentuser.userid[0]),
currentuser.userid);
}
if(cache_header(file_time(dir),10))
return 0;
html_header(1);
Expand Down
1 change: 1 addition & 0 deletions nju09/bbsmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ struct cgi_applet applets[] = {
{bbsnotify_main, {"bbsnotify", NULL}},
{bbsdelnotify_main, {"bbsdelnotify", NULL}},
// {bbschangestyle_main, {"bbschangestyle", "changestyle", NULL}},
{bbssentmailbox_main, {"bbssentmailbox", "sentmailbox", NULL}},
{NULL}
};

Expand Down

0 comments on commit 8567db5

Please sign in to comment.