summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * fix: mandexx crashed (segv) when total board number gets close to MAXBOARDSpttbbs.no_pwcu@4824piaip2009-09-081-6/+31
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4818 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add view recent login in trunkpiaip2009-09-063-1/+45
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4815 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine messagepiaip2009-09-061-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4814 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix ANSI in getdata/vgets promptspiaip2009-08-314-14/+30
| | | | | | | * allow badpost filtering for everyone git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4805 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix getyx_ansi calculation (however, getdata/vgets is still not able to ↵piaip2009-08-312-1/+4
| | | | | | display ANSI code in prompt string correctly with ordinal screen.c) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4804 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add 'validate namelist by badpost', suggested by VOT1077@ptt.cc(PttSuggest)piaip2009-08-311-13/+32
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4803 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * forgot to modify vote limitation creation for numloginpiaip2009-08-301-5/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * [code refine] add const modifierpiaip2009-08-293-6/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4789 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix line wrong positionpiaip2009-08-291-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4788 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * we don't support ver r2275 (chick) password anymore (too old).piaip2009-08-291-4/+12
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4787 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * because PERM_HIDE does not update lastlogin time, we must skip them in ↵piaip2009-08-291-1/+6
| | | | | | namelist validation (thanks to Lwms@ptt.cc#PttBug) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4785 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix r4780: incorrect macro usagepttbbs.pwcu@4781piaip2009-08-271-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4781 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * solve "topboard is gone, need to press 'S'" by forcing sorted mode in ↵piaip2009-08-271-1/+6
| | | | | | class root git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4780 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine ordersongpiaip2009-08-266-254/+284
| | | | | | | | | * merge topsong and ordersong to single ordersong.c * change max song from MAX_MOVIE to MAX_SONG * change random menu 'movie' to sequential slide show mode git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4779 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * change chess source file names to be prefixed with ch_*.piaip2009-08-265-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4778 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove lovepaper generator because it's rarely used by observation.piaip2009-08-263-126/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4777 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove numlogin from topusrpiaip2009-08-261-17/+17
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4776 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * give warning to admins who is trying to modify his own account...piaip2009-08-251-0/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4775 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove numlogin from vote/post restriction (confirmed by SYSOPs)piaip2009-08-256-124/+102
| | | | | | | | | | * reason: this variable can be easily cheated by bots and hard to detect/avoid. * this can be replaced by regtime (or, count of 'days' that logged in). * we also plan to remove all references to numlogins in future because it's hard to be kept on web-forum systems. * also refined code layout in pttstruct.h git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4774 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * pmore/movie: fix LO=n timer assignment error (thanks to Explorer09@ptt, ↵piaip2009-08-251-4/+6
| | | | | | PttBug) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4773 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * code refine: remove warningspiaip2009-08-251-1/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4772 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * code refine: reduce potential fd flag changes in tonnectexpiaip2009-08-251-2/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4771 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * enable timeout in toconnectex.piaip2009-08-252-1/+41
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4770 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * simplify the delete message input uipiaip2009-08-241-38/+10
| | | | | | | * seems leaving whole string for user editing is more flexible. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4769 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * code refinepiaip2009-08-241-31/+69
| | | | | | | * allow directly replacing accounts git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4768 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine foreigner querypiaip2009-08-241-12/+17
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4767 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * improve foreign query interface againpiaip2009-08-241-11/+16
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4766 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove foreign query pre-input because some people may have problem using ↵piaip2009-08-241-2/+2
| | | | | | DEL/BS. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4765 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * unquote [new] [guest].piaip2009-08-232-3/+3
| | | | | | | * reason: we've heard that some people really try to input "[new]"... git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4764 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * enable nuser>30 condition again, because even on Ptt, many boards are ↵piaip2009-08-232-4/+4
| | | | | | below 30. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4763 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * use SAFE_ARTICLE_DELETE even if nuser < 30piaip2009-08-236-21/+100
| | | | | | | | | * 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
* * activate user list cache (update every hour)piaip2009-08-211-12/+34
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4761 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove single player games: guess and othellopiaip2009-08-214-817/+5
| | | | | | | * there are lots of better implementations of these games, so no need to keep them in BBS. we should focus on multi-user games. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4760 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add cached unamb user list mechanism (note: not enabled yet, because not ↵piaip2009-08-201-16/+29
| | | | | | | | | sure when/how to refresh) * refine emaildb error messages git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4759 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add cached unambiguous approachpiaip2009-08-201-5/+91
| | | | | | | * add -D to enter non-daemon mode git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4758 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine chicken revive messagespiaip2009-08-201-11/+15
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4757 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * WITH_EMAILDB was deprecated by USE_EMAILDB in pttbbs.conf.piaip2009-08-193-5/+5
| | | | | | | * ambiguous user id check is toggled by WITH_REGCHECKD git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4756 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * move ambiguous id check into (emaildb/regcheckd) daemon piaip2009-08-194-67/+40
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4755 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * prepare to move ambiguous id check into regmaild (it should be named as ↵piaip2009-08-193-1/+97
| | | | | | regcheckd instead someday) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4754 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * force confirm y/n input for chiken deathpiaip2009-08-191-2/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4753 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * prevent ambiguous account registrationpiaip2009-08-191-0/+68
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4752 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix previous typopiaip2009-08-181-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4751 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine stampdir behaviorpiaip2009-08-183-12/+47
| | | | | | | | * we don't want massive user to use man(announce) as blog/home, so restrict folder number back to 4096 * for deleted/junk boards, they need to use large set (65535) because they may contain all boards from entire site git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4750 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * change 'user number exceeded' error message. thanks to yogira@PttSuggestpiaip2009-08-171-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4749 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * make subject decoding always performed.piaip2009-08-161-2/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4748 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: endless loop if too many directories created by stampdir(). (occurs ↵piaip2009-08-161-1/+4
| | | | | | | | | when too many directories were deleted and creates entry in man/deleted) * note: to prevent compatibility issue, only expand when required. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4747 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix prototype change of decode APIpiaip2009-08-161-5/+1
| | | | | | | * note: should we ignore USE_ICONV and always apply conversion? git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4746 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * make pretty subject names in internet mails (to make people who cannot ↵piaip2009-08-151-3/+37
| | | | | | understand English happy for common error notifications). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4745 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Foreigner may not have 9 ~ 10 digit phone numberscw2009-07-251-0/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4744 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove bid as claimed before.piaip2009-07-165-330/+39
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4743 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * synchronize money display unit to prevent confusionpiaip2009-07-163-6/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4742 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * make money display in uinfo realtimepiaip2009-07-151-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4741 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * make the money in query_self realtimepiaip2009-07-151-1/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4740 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: invalid default selection in xyz menupiaip2009-07-151-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4739 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine menu structure (for extra space to expand in the future)piaip2009-07-141-5/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4738 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * do not allow guest using mail reply (thanks to OutOfHome@ptt)piaip2009-07-131-0/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4737 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Prevent memory leak. Pointer should be assigned after checking return value.wens2009-07-101-1/+1
| | | | | | | realloc manpage: If realloc() fails the original block is left untouched; it is not freed or moved. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4736 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * code refine: prevent double free / memory leakspiaip2009-07-101-20/+31
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4735 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * ann: prevent invalid user input causing assert fail of (z_indexes[0] == -1).piaip2009-07-101-0/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4734 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * ann: let leading 'z' be the 'go back to root' selectorpiaip2009-07-091-13/+64
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4733 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix bug: sometimes edit window region state is inconsistent after hit ↵kcwu2009-07-091-98/+65
| | | | | | | | | Ctrl-T with phone mode * edit.c code refactor: window scroll git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4732 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * tree selection in announce: do not enter last entry (simply move to it)piaip2009-07-091-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4731 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * board: fix: status bar not refreshed after incomplete delete/backup actionpiaip2009-07-091-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4730 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * code refinepiaip2009-07-091-14/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4729 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix offset-by-one error in single input modepiaip2009-07-081-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4728 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * experimental support: input of selection tree in announce(man)piaip2009-07-081-22/+71
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4727 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix endless backward search in pmore pagerpiaip2009-07-081-0/+1
| | | | | | | * thanks to dsync@ptt.cc [PttBug] git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4726 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * code refine where_am_i in announce(man)piaip2009-07-081-52/+179
| | | | | | | * replace static variables by session git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4725 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix file timestamping for vote report and innbbsd.mhsin2009-07-052-2/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4724 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * directly show cuser if user is querying selfpiaip2009-07-032-4/+9
| | | | | | | * change description of numpost git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4723 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug: search in edit.ckcwu2009-07-011-8/+16
| | | | | | | | * access violation if search forward and cursor at end of line * currline will become NULL if search backward and cursor at the first keyword git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4722 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * chat: allow multiple operators (/op can now toggle other's op)piaip2009-07-011-24/+17
| | | | | | | * removed unused stuff code git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4721 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * the simple 'x' check should be case insensitive.piaip2009-06-301-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4720 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove more bid assess(good/bad sale) stuffpiaip2009-06-305-40/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4719 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine vote source codepiaip2009-06-301-147/+127
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4718 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * change BN_SECURITY checks to is_readonly_boardpiaip2009-06-304-34/+13
| | | | | | | | * remove more bid stuff * expire some deprecated BM hot keys git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4717 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add Security and ALLPOST to system internal readonly boardspiaip2009-06-303-0/+13
| | | | | | | | * previously, ALLPOST was set to reject del_post by attr BRD_VOTEBOARD; however this is confusing to admins. * in order to prevent such potential issue, we'd force it to be readonly in source level. (since it has special meaning in the code) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4716 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine menu structurespiaip2009-06-291-13/+43
| | | | | | | | | * add more XYZ sub menus to prepare for more itmes in the future * change the name of pager to synchronize the terms * move topsong from Play list to XYZ list git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4715 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove open_bid, according the statistical results.piaip2009-06-291-1/+1
| | | | | | | | * open_bid is invoked less than 375 in 16 months (with lots of testing posts) so we decide to remove it. * the other bid parts will be removed in the future. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4714 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * code refinepiaip2009-06-281-15/+16
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4713 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * code refine piaip2009-06-281-12/+23
| | | | | | | * change the default value for using 'boo' in 'no_boo' from 'good' to 'comment (arrow)'. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4712 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * synchronize the terms of pagerpiaip2009-06-281-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4711 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * we may split 'score' and 'comment' in the future, so making 'good' and ↵piaip2009-06-281-12/+12
| | | | | | 'boo' in 1/2 seems more portable... git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4710 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * change ui behavior of 'no_boo' to allow selection from 'good' or 'comment ↵piaip2009-06-281-22/+42
| | | | | | | | | | only' mode. * swap key binding of 'boo' (2) and 'comment (3). (I know changing key binding is not good... but it makes the whole flow better) * this change is based on discussion in PttSuggest: herculex, largesperm, IEhacker, A6, edctw, ilovewc, anauma git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4709 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * use portable way (as defined in man) to alter signal handlerpiaip2009-06-281-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4708 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * logic typopiaip2009-06-281-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4707 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * make Rename() return real status result when SIGCHLD was set to SIG_IGN.piaip2009-06-281-13/+22
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4706 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine badpost assignment error messages againpiaip2009-06-281-8/+13
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4705 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine messagepiaip2009-06-271-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4704 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * provide message when file was already removed (which implies no badpost ↵piaip2009-06-271-2/+19
| | | | | | can be assigned) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4703 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * badpost can be only assigned if the file deletion was success, to prevent ↵piaip2009-06-261-7/+12
| | | | | | | | | race condition. * note: note good implementation anyway, but we'd like to minimize the change for this issue. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4702 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * reg: after getfield() was changed, all function should pause if it prints ↵piaip2009-06-251-2/+5
| | | | | | messages below getfield(). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4701 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * don't delete ALLPOST of user post if the account is expired.kcwu2009-06-251-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4700 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix bug: edit.c ctrl-y state inconsistentkcwu2009-06-251-5/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4699 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: internet mail subject input box was too longpiaip2009-06-241-2/+7
| | | | | | | * refine and check zip home command git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4698 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix mutt command line. according to mutt's manpage, -a should be last option.kcwu2009-06-241-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4697 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * should not open twice mail db... must be typo misspiaip2009-06-241-2/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4696 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * move money calibration from bbs.c to edit.cpiaip2009-06-232-6/+12
| | | | | | | * fix: previous entropy limitation would half max post money git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4695 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * to use UTMPD, the daemons.h should be included.piaip2009-06-221-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4694 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * initcuser should also update numpost!piaip2009-06-221-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4693 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * do not return error when forwarding to rejects (following the behavior of ↵piaip2009-06-221-2/+2
| | | | | | multisend / send). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4692 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * change function to several display text screen from pager to show_file.piaip2009-06-224-10/+19
| | | | | | | * may get better performance (?) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4691 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * move structure used in UTMPD mode to daemons.hkcwu2009-06-226-9/+14
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4690 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix horoscope days by wikipediapiaip2009-06-211-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4689 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * support bounded entropy to money calculationpiaip2009-06-211-3/+35
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4688 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix 'foreign' messages.piaip2009-06-212-1/+2
| | | | | | | * notes: r4078,r4079,r4080 overrides r4077 in a better way git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4687 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * enable the customizable 'register detail messages' [edit the messages ↵piaip2009-06-211-45/+44
| | | | | | from (0)Admin -> (X)File -> etc/regnotes/* ] git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4686 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * detail register description filespiaip2009-06-2110-0/+74
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4685 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add more description to register/career, according to Ptt1 rulespiaip2009-06-211-13/+37
| | | | | | | * highlight the reject reason in regform git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4684 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * utmpserver doesn't depend on util_var.okcwu2009-06-211-8/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4683 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix buffer overflow.kcwu2009-06-201-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4682 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * speed up sql commandpiaip2009-06-201-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4681 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * recover initemaildbpiaip2009-06-201-112/+127
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4680 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine log formatpiaip2009-06-201-2/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4679 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add 'const' to paramspiaip2009-06-201-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4678 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * to fill request correctlypiaip2009-06-201-1/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4677 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add more logspiaip2009-06-201-0/+10
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4676 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * clear previous messagespiaip2009-06-201-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4675 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* allow disable INSCREEN in logindpiaip2009-06-191-2/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4674 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * use public defined address instead of local definitionpiaip2009-06-191-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4673 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * logind: setproctitle does not have prefix/postfix on Linuxpiaip2009-06-192-2/+2
| | | | | | | * regmaild: enable daemonize mode git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4672 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * move emaildb to standalone regmaildbpiaip2009-06-1910-266/+583
| | | | | | | * integrate the daemon structure to daemons.h git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4671 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * async logattemptspiaip2009-06-191-25/+147
| | | | | | | * add 'logfile' in bindports.conf git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4670 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove global or static variablekcwu2009-06-192-10/+10
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4669 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove static variablespiaip2009-06-191-1/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4668 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * move global variable to local.kcwu2009-06-191-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4667 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix compile warningskcwu2009-06-191-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4666 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * make table pointer const, reduce 444 data bytes.kcwu2009-06-191-12/+12
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4665 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * don't log useless etc/othello.secretkcwu2009-06-191-10/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4664 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * replace indigestion() with assert().kcwu2009-06-191-41/+21
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4663 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * missing check-in filespiaip2009-06-191-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4662 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * allow the 'hold mail' to appear as changed titlepiaip2009-06-194-7/+16
| | | | | | | * refine emaildb error messages git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4661 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix bug: array forgot initializekcwu2009-06-191-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4660 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: user cannot register when emaildb is malfunction.piaip2009-06-181-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4659 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: if connection was closed before being acked, the ack should be ↵piaip2009-06-181-13/+20
| | | | | | abandoned directly. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4658 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * let loginc support async protocol.kcwu2009-06-181-7/+13
| | | | | | | * let loginc works for long run. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4657 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix potential negative numpostspiaip2009-06-182-4/+12
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4656 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * increase tunnel buffer sizepiaip2009-06-181-0/+17
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4655 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine the error message when emaildb was malfunctionpiaip2009-06-182-9/+21
| | | | | | | * allow specify db file to generate in initemaildb git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4654 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * check the real return value of forked emaildb checking processpiaip2009-06-181-2/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4653 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine the names of money (some user get confused between the names)piaip2009-06-182-5/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4652 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * prevent using non-block mode for tunnelpiaip2009-06-181-10/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4651 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * enable different level of verbose messages.piaip2009-06-181-23/+36
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4650 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add timeout reports and refine messagespiaip2009-06-171-15/+54
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4649 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * logind: move logattempt to mbbsd (thanks to kcwu)piaip2009-06-172-33/+45
| | | | | | | * logind: refine asserts and package the queue structure git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4648 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * update default ack waiting timeout (should be longer)piaip2009-06-171-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4647 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine AYT report messagespiaip2009-06-171-4/+12
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4646 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix allocation size and reference of closed tunnel fdpiaip2009-06-171-28/+67
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4645 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine ackq again - incorrect return valuepiaip2009-06-171-4/+20
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4644 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * ackq: fix reuse numberpiaip2009-06-171-0/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4643 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * logind: fix double free when connection was terminated before ackpiaip2009-06-171-7/+80
| | | | | | | * current solution: add a queue for ack git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4642 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: incorrect pid in procnamepiaip2009-06-161-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4641 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * lower down login frequency: 10 per minuteskcwu2009-06-162-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add missing check-in for async mode logindpiaip2009-06-161-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4639 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix usernum range (1..MAX_USER)piaip2009-06-161-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4638 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * rewrite match_parenkcwu2009-06-161-97/+70
| | | | | | | * fix bug: incorrectly handle some case of /**/ while matching parentheses git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4637 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add missing filespiaip2009-06-161-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4636 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add asynchronous ack modepiaip2009-06-161-17/+153
| | | | | | | * refine options git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4635 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix compile errorkcwu2009-06-163-13/+28
| | | | | | | * fix boundary condition if uid == MAX_USERS git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4634 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * adjust cpu limit of first daykcwu2009-06-161-1/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4633 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix r4600: forgot to set last_time_exceeded.kcwu2009-06-161-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4632 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add error message if guest wants to use bbsluapiaip2009-06-161-1/+3
| | | | | | | * add DISABLE_BBSLUA_IN_PAGER macro to make sites able to run only authorized lua code git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4631 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * the 'aligned recommend' is now not new.piaip2009-06-161-2/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4630 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: memory leak + segv: passing incorrect parameter as buffer. (how can ↵piaip2009-06-161-1/+3
| | | | | | this be found so late!?) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4629 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * revert r4584, r4586, r4595: to preserve old behavior.kcwu2009-06-164-38/+19
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4628 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove dead code (forgot in r4625)kcwu2009-06-161-3/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4627 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * support non-blocking mode clients (added -b to toggle non-blocking)piaip2009-06-162-5/+50
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4626 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * don't increase user's login count if login less than 60 seconds.kcwu2009-06-161-11/+7
| | | | | | | * remove some dead code. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4625 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * performance improvementspiaip2009-06-161-66/+75
| | | | | | | | * accept all connections in one event * cached guest number testing git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4624 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add online guest checkingpiaip2009-06-151-37/+137
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4623 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * 'l' looks like '1' and confusing. rename to 's'.kcwu2009-06-151-16/+16
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4622 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * change toread/towrite's return value to be '-1 for EOF and error'.piaip2009-06-153-13/+15
| | | | | | | * make the callers of toread/towrite more robust git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4621 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * bug fix: crash if user want to add fav, but it's actually filtered out ↵kcwu2009-06-151-2/+13
| | | | | | due to keyword search. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4619 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * update Makefile: support installpiaip2009-06-152-1/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4618 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * handle (to)read/write return value more correctlypiaip2009-06-151-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4617 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix socket error handling (thanks to Kuang/wens)piaip2009-06-151-2/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4616 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* vedit bug fixeskcwu2009-06-142-151/+249
| | | | | | | | | | | | | | | | | | | | * bug fix: rewrite undelete_line() and block_delete() which was very complicated and buggy * bug fix: fix Ctrl-Q memory leak: should free memory of lines in edit_buffer_destructor() * bug fix: block_cancel() for add/remove line operations to avoid incorrect state * bug fix: join() add space character offset by one * bug fix: sometimes should redraw all but not due to last_margin incorrect * (not bug) make state consistency even for fields we don't care - block_cancel(): avoid dangling pointer curr_buf->blockline - don't assign line->len as 0 for deleted line * add edit_check_healthy() to check data structure consistency - you may #define SLOW_CHECK_DETAIL when debugging vedit * remove dead code (insert_c, Ctrl-_) * add/fix some comments ve.hlp update * remove description of dead function git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4615 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Bufferevent error callback is REQUIREDwens2009-06-141-1/+10
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4614 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * simplify bindports.conf, and make full version as 'advanced'.piaip2009-06-142-45/+67
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4613 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* chdir after opening files, so relative paths workwens2009-06-141-5/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4612 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* revert previous commit of SIGPIPE handlerwens2009-06-141-9/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4611 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* ignore binarieswens2009-06-140-0/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4610 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: current money should be updated in order song and other commandspiaip2009-06-141-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4609 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: money in cuser was not updated / sync to shm after sync_update...piaip2009-06-141-1/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4608 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add auto-retry service to logindpiaip2009-06-141-2/+63
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4607 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * more checks on net systempiaip2009-06-142-6/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4606 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix previous compile errorpiaip2009-06-141-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4605 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * ignore sig_pipe: sometimes the tunnel mbbsd just die without reason...!?piaip2009-06-141-2/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4604 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * only report welcome screen change in verbose modepiaip2009-06-141-1/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4603 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add welcome screen update into regular check listpiaip2009-06-141-0/+11
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4602 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * change sample CPULIMIT -> CPULIMIT_PER_DAYkcwu2009-06-141-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4601 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * CPULIMIT macro is deprecatedkcwu2009-06-143-7/+38
| | | | | | | * new CPULIMIT_PER_DAY macro: cpu limit control by day git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4600 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine overload / out_of_service screen and messagespiaip2009-06-141-8/+11
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4599 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * update bind port info in tunnel modepiaip2009-06-131-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4598 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix bug of r4586: leave board. I feel this is a dirty fix..kcwu2009-06-131-0/+23
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4597 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * does not allow guest to change mindpiaip2009-06-132-1/+3
| | | | | | | * set default guest mind to empty string git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4596 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix tmp buf behavior changed in 4585: use user's last choice as defaultkcwu2009-06-131-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4595 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * rollback experimental stuff... piaip2009-06-131-6/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4594 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * bbsctl: should keep back setuidpiaip2009-06-131-2/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4593 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * support bindports.conf in bbsctl.piaip2009-06-132-44/+153
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4592 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * code refine to mbbsdpiaip2009-06-131-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4591 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * disable beep for unknown keys (because some stupid clients are doing ↵piaip2009-06-131-3/+9
| | | | | | | | | anti-idle and confuse user) * add '-d' to sync syntax to mbbsd command git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4590 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add 'client command' in bindports.conf/logind typespiaip2009-06-131-14/+60
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4589 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix some buffer line length (for display, so 256 -> ANSILINELEN would be ↵piaip2009-06-131-5/+5
| | | | | | better.) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4588 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * also disable URL display in restricted reading / hidden boardspiaip2009-06-131-2/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4587 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix bug introduced in r4584: always enter default board in Read()kcwu2009-06-132-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4586 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix bug: incorrect user's tmp buf filename.kcwu2009-06-1315-56/+50
| | | | | | | | | * don't test upper case if getdata with LCECHO flag * add some comment * some small code revise git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4585 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * revise brc interface: brc will not change currbid, currboard, currbrdattrkcwu2009-06-133-18/+14
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4584 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * set svn properties and update commentspiaip2009-06-131-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4583 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* vedit revisekcwu2009-06-1315-116/+123
| | | | | | | | | * move global save_title[] to local * vedit() vedit2() interface change * add veditfile() for editing normal file git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4582 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add timeout to logindpiaip2009-06-131-3/+21
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4581 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Eliminate warningswens2009-06-124-19/+19
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4580 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Eliminate compile warningswens2009-06-121-14/+14
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4579 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix crash on user query: another recursive call :-(piaip2009-06-121-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4578 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * make definition more verbosepiaip2009-06-121-5/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4577 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * ultilize AYT in logind piaip2009-06-121-0/+25
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4576 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix recursive call error (sync version should call raw API)piaip2009-06-121-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4575 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine cmbbs: move util_passwd.o to cmbbs/passwd.c.piaip2009-06-1226-376/+187
| | | | | | | | * note: in order to workaround the buggy/dirty synchronization hacks, changed 'passwd_query' and 'passwd_update' to passwd_sync_*. * util/* and daemon/* use directly passwd_query/update, and mbbsd should use passwd_sync_*. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4574 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * prepare to move passwd to common libpiaip2009-06-122-1/+269
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4573 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * logind: add resolve_garbage() and refine messagespiaip2009-06-121-1/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4572 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * make AYT customizablepiaip2009-06-122-23/+33
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4571 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix compilation error on Linux - unnecessary header filepiaip2009-06-121-1/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4570 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine cmbbs/cache.c: we don't need 'util_cache.o' anymore! simply common ↵piaip2009-06-1212-1301/+169
| | | | | | bbs library (libcmbbs.a). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4569 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * prepare to split mbbsd/cache.c into mbbsd/ (for mbbsd) and common/bbs/ ↵piaip2009-06-122-1/+1162
| | | | | | (for util/mbbsd/daemons). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4568 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * allow tunnel/port daemon mode to run within one command.piaip2009-06-121-0/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4567 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * allow client_code to be logged in tunnel modepiaip2009-06-121-7/+14
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4566 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix previous checkin - forgot to remove comment -_-piaip2009-06-121-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4565 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: some API/logs (eg, incorrect password attempts) require cwd=BBSHOMEpiaip2009-06-121-0/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4564 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Add argument for log outputwens2009-06-111-4/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4563 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add log prefixes and refine initialize/daemonize sequencepiaip2009-06-111-32/+43
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4562 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Move SIGHUP handler after daemonizewens2009-06-111-3/+8
| | | | | | | Call event_reinit after daemonize (for kqueue) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4561 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * make port binding to standalone configuration fine (etc/bindports.conf)piaip2009-06-116-33/+187
| | | | | | | * refine some file names git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4560 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * force IDLEN only in CONVERT mode (for backward user behavior compatibility)piaip2009-06-111-0/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4559 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * now should be initialized before register(new), otherwise birthday will ↵piaip2009-06-111-1/+1
| | | | | | always be error... git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4558 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine out of service messagespiaip2009-06-111-1/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4557 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * after checking visio, we found we rejected non-ascii in password...piaip2009-06-111-3/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4556 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add opened fd counterpiaip2009-06-111-9/+13
| | | | | | | * fix wrong closed fds git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4555 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add is_valid_brdname() to cmbbskcwu2009-06-111-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4554 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add is_valid_brdname() to cmbbskcwu2009-06-116-20/+55
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4553 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Only 2 bytes are useful (3rd byte with big5 results in garbage)wens2009-06-111-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4552 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Increase maximum number of open fileswens2009-06-111-0/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4551 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add -v as verbose message outputpiaip2009-06-111-11/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4550 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * revert previous disable of perror... it should not be the reason of crashespiaip2009-06-101-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4549 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * no need to exit process when passing fd failed... (or not?)piaip2009-06-101-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4548 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * on Linux, argv0 is modified after *every* setproctitle. fix previous ↵piaip2009-06-101-6/+6
| | | | | | check-in. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4547 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix setproctitle behavior difference on Linux (prevent long proc titles)piaip2009-06-101-1/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4546 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix parallel make fail: innbbsd depends on utilkcwu2009-06-101-0/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4545 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix compile warningskcwu2009-06-101-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4544 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine logind: deliver port info and add more keyspiaip2009-06-102-11/+36
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4543 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix compile error on linuxkcwu2009-06-102-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4542 63ad8ddf-47c3-0310-b6dd-a9e9d9715204