summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* * remove unused or rear used header file include in bbs.hkcwu2009-06-104-11/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4541 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: telnet protocol state error: quotes must be also considered in prescan.piaip2009-06-101-1/+3
| | | | | | | * this error will occur if input buffer is small and split IAC in the middle. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4540 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * IDLEN macro cannot be quoted - because friend.c is using toStr(IDLEN) as ↵piaip2009-06-101-1/+3
| | | | | | #IDLEN. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4539 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * extra login messages should be displayed only in tunnel mode.piaip2009-06-101-3/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4538 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * logind: add simple cursor key editing (reduced keyset)piaip2009-06-101-34/+186
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4537 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * support non-ascii in passwords(backward compatibility)piaip2009-06-101-1/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4536 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add missing checking piaip2009-06-101-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4535 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix defaul minimal terminal sizepiaip2009-06-101-3/+12
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4534 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: some messages (eg, max guest alert) has reverse attribute in login ↵piaip2009-06-101-0/+10
| | | | | | daemon git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4533 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * provide some messages in tunnel modepiaip2009-06-101-0/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4532 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * sendmsg() with ancillary on Linux seems like requiring unix domain socket ↵piaip2009-06-105-5/+13
| | | | | | original path, even if the socket was already opened. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4531 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * port counting error (wrong indented if-block )piaip2009-06-091-1/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4530 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * make tunnel file with BBS user permissionpiaip2009-06-091-10/+13
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4529 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add ~/etc/logind_ports as bind list.piaip2009-06-091-24/+89
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4528 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * the long-waited high performance login daemonpiaip2009-06-093-0/+1186
| | | | | | | * works only with tunnel mode mbbsd git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4527 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * define size of fromhost as IPV4LEN(15)+NUL.piaip2009-06-092-4/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4526 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * minor fixes:piaip2009-06-083-11/+12
| | | | | | | | | * menu: item name refine * mbbsd: merge INSCREEN and BANNER. * logind.h: refine tabs git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4525 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * the 'only special key to break in interactive mode' was not needed - ↵piaip2009-06-081-10/+4
| | | | | | | | | command can already do that * minor comment fix git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4524 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove dead code.kcwu2009-06-081-19/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4523 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * delete dead code.kcwu2009-06-081-28/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4522 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove udnnews.pl. it is broken and doesn't work many years.kcwu2009-06-082-120/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4521 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove BM_money.c.kcwu2009-06-083-106/+2
| | | | | | | ptt don't use these code 3 years. and we don't want to maintain these code. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4520 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * set_converting_type should be only used within #ifdef CONVERTpiaip2009-06-081-2/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4519 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove jungo.c and toplazyBBM.c.kcwu2009-06-085-386/+3
| | | | | | | ptt don't use these code 3 years. and we don't want to maintain these code. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4518 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add client code detection to tunnel modepiaip2009-06-085-31/+78
| | | | | | | * refine telnet library to support write customization git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4517 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * remove post_msg_fpath(), no longer used.kcwu2009-06-072-12/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4516 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: crashed for read_more case in tty_read.piaip2009-06-073-3/+3
| | | | | | | | * example: got waterball then SEGV * reason: telnet_process should take signed size_t. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4515 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * change telnet interface to accept extra parameter for callbacks (*_arg)piaip2009-06-075-38/+59
| | | | | | | * refine mbbsd to allow pre-setting terminal window git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4514 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: should use pointer instead.piaip2009-06-071-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4513 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * experimental sending keepalive packets (hope this can reduce user's ↵piaip2009-06-071-1/+8
| | | | | | auto-disconnect issue) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4512 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * it seems still better to use KEEP_ALIVE, although detection duratio is ↵piaip2009-06-071-4/+5
| | | | | | long... git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4511 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * rework r4509: add missing file (logind.h)piaip2009-06-071-0/+22
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4510 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine login procedure (support+prepare for tunnel mode)piaip2009-06-071-79/+266
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4509 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fix compile errorkcwu2009-06-071-35/+36
| | | | | | | - fix snprintf usage git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4508 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * improve tobind() with customizable parameterspiaip2009-06-072-7/+109
| | | | | | | * add ancillary remote fd API git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4507 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - code revisekcwu2009-06-071-46/+62
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4506 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - extract telnet.c to cmsyskcwu2009-06-076-307/+378
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4505 63ad8ddf-47c3-0310-b6dd-a9e9d9715204