summaryrefslogtreecommitdiffstats
path: root/mbbsd
Commit message (Collapse)AuthorAgeFilesLines
* * fix DBCS detection: DEL is 0x7f not 0x1fpiaip2009-09-231-1/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4880 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * reject people without basic permission (why such user exist?).piaip2009-09-221-6/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4879 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * to preven non-registered user getting money/post from free boardspiaip2009-09-221-2/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4878 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * detect repeated DBCS commands from evil clientspiaip2009-09-224-4/+73
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4877 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine messagepiaip2009-09-221-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4876 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add auto-forward in admin viewpiaip2009-09-222-4/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4875 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add more info (mostly uflags) to admin viewpiaip2009-09-221-4/+32
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4874 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * convert more fieldspiaip2009-09-212-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4873 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * merge uflag2 and uflag, and refine flag bitmask namespiaip2009-09-2113-115/+77
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4871 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine menu and ad banner system, making the code simple and readablepiaip2009-09-203-43/+81
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4870 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix adbanner mappiaip2009-09-201-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4869 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* This goes with the previous revisionwens2009-09-201-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4868 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Banner mapping is needed...wens2009-09-201-2/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4867 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * allow setting default value for site like ptt2piaip2009-09-201-3/+16
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4866 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine adbanner_usong againpiaip2009-09-202-12/+23
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4865 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine adbanner_usong stuff, add timebombpiaip2009-09-202-11/+40
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4864 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add last_login_time for some check rules in the futurepiaip2009-09-202-1/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4863 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * mark auto-forward in mail title because some users just does not ↵piaip2009-09-191-2/+9
| | | | | | understand what they've done. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4862 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine order song init query uipiaip2009-09-192-6/+45
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4861 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * adjust pref description and orderpiaip2009-09-191-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4860 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * enable more checkings in usong selectionpiaip2009-09-192-6/+16
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4857 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Always display designated system banner first.wens2009-09-192-16/+16
| | | | | | | | Let user choose whether to display user songs. r4856_adbanner will reset all users to not display user songs. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4856 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add more comments to explain the expression of adbanner index calculationpiaip2009-09-191-3/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4855 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * change the name of 'movie' to 'adbanner' (advertisement banner), which is ↵piaip2009-09-196-32/+42
| | | | | | more descriptive. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4854 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * to make restriction more visiblepiaip2009-09-181-6/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4853 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * more, more aggressive cache of pwcu...piaip2009-09-171-4/+17
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4852 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine pwcuExitSave again, prevent the initial query if possible.piaip2009-09-173-65/+50
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4851 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * notify about how numpost workspiaip2009-09-171-1/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4849 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * move WATER_* from uflag2 to cuser.pager_ui_type (standalone variable)piaip2009-09-176-43/+32
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4848 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine badpost code againpiaip2009-09-172-13/+13
| | | | | | | * remove more deprecated stuff git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4847 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine uflagspiaip2009-09-172-49/+46
| | | | | | | | * remove and mark for more deprecated uflags * finetune pwcu exit save for uflags git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4846 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * change magic numbers to const namespiaip2009-09-162-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4845 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * more logs for exmailboxpiaip2009-09-161-1/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4844 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * put-back the code to handle numlogin (changed to numlogindays)piaip2009-09-145-11/+66
| | | | | | | * we can enable this after current code base becomes stable git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4838 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * performance improve: clear alerts when cuser was reloaded.piaip2009-09-141-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4837 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * also reload when ordering songspiaip2009-09-131-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4836 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: money was not synchronized...piaip2009-09-134-2/+36
| | | | | | | * also enhanced more check with explicit reload git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4835 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * note brc v3 capability changepiaip2009-09-121-3/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4834 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add check for ambiguous id in case user cheat on adminspiaip2009-09-121-0/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4833 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Ask for confirmation before clearing writelog.mhsin2009-09-121-1/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4831 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * some users do not understand the numpost is for all boards, so let's hint ↵piaip2009-09-101-1/+1
| | | | | | them. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4828 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * make pwcu branch as trunk.piaip2009-09-1030-878/+972
|\ | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4826 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * code refine piaip2009-09-102-5/+8
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4823 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * refine message, due to too many new BMs not knowing why their ↵piaip2009-09-081-2/+3
| | | | | | | | | | | | registration was canceled. git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4822 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * message refinepiaip2009-09-082-3/+12
| | | | | | | | | | | | | | * adjust login time base (must consider timezone when rounding to midnight) git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4821 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * merge trunkpiaip2009-09-081-1/+2
| | | | | | | | | | | | | | | | * merge current * allow view old 'goodpost' just like old numlogin git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4820 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * improve check_BM frequency piaip2009-09-084-8/+14
| | | | | | | | | | | | | | * refine messages git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4819 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * move oldnumlogin display from talk=>query to user=>info.piaip2009-09-072-8/+5
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4817 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * allow query old login number (for self only)piaip2009-09-072-3/+12
| | | | | | | | | | | | | | * merge latest git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4816 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * refine message with quantitypiaip2009-09-063-4/+5
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4813 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * adjust numlogindays calculation - should be rounded to each day.piaip2009-09-061-2/+6
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4812 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * experimental: add user recent login history viewpiaip2009-09-062-1/+42
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4810 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * change display name of numlogindays to macro (we may change it again in ↵piaip2009-09-053-6/+6
| | | | | | | | | | | | future) git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4809 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * fix: user habit: wrong index in uflag2 selectionpiaip2009-09-051-1/+1
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4808 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * optimize exit savepiaip2009-08-311-2/+47
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4807 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * merge pwcu branch with trunkpiaip2009-08-317-19/+61
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4806 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * add more checking to numlogindayspiaip2009-08-301-4/+16
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4802 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * allow setting chess_go results and lastloginpiaip2009-08-302-6/+92
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4801 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * allow numlogindays to be upgraded on-the-fly.piaip2009-08-301-0/+3
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4800 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * fix numlogindayspiaip2009-08-3012-50/+81
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4799 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * code refinepiaip2009-08-302-5/+2
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4797 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * (pwcu branch) code refine, remove unused code, and finetune alertspiaip2009-08-308-110/+14
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4796 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * (pwcu branch) const cuser code completepiaip2009-08-304-129/+82
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4795 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * (pwcu branch) make user compatible to pwcu APIpiaip2009-08-306-84/+165
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4794 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * (pwch branch) change chess results to use pwcu APIpiaip2009-08-305-83/+126
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4793 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * (pwcu branch) code refinepiaip2009-08-293-53/+42
| | | | | | | | | | | | | | | | * also changed numlogin formula to 'only increase max to one per each day', which allow us to update the value in login state instead of logout stage git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4792 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * (pwcu branch) remove the 'goodpost' ~ I love this commit.piaip2009-08-296-271/+3
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4791 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * (pwcu branch) end support of r2275 version passwordpiaip2009-08-291-5/+13
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4790 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * enable lastseen and CONST_CUSER, also use cuser_ref as "&cuser".piaip2009-08-2912-33/+46
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4786 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * modify more APIspiaip2009-08-283-32/+45
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4784 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
| * * moving into the new pwcu (password - current user helper) APIpiaip2009-08-2813-159/+319
| | | | | | | | git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4783 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* | * add view recent login in trunkpiaip2009-09-062-1/+41
| | | | | | | | 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-292-3/+3
| | | | | | | | 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-265-250/+281
| | | | | | | | | * 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
* * 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-253-37/+3
| | | | | | | | | | * 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
* * 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
* * 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-231-1/+1
| | | | | | | * 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-234-19/+94
| | | | | | | | | * 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
* * 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
* * 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-193-67/+37
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4755 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-182-12/+46
| | | | | | | | * 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
* * 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
* 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-163-308/+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
* * 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-051-1/+3
| | | | 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
* * 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-304-38/+0
| | | | 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-302-0/+12
| | | | | | | | * 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
* * 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
* * 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-223-7/+15
| | | | | | | * may get better performance (?) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4691 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-211-1/+1
| | | | | | | * 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
* * 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
* * fix buffer overflow.kcwu2009-06-201-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4682 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
* * clear previous messagespiaip2009-06-201-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4675 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * move emaildb to standalone regmaildbpiaip2009-06-193-235/+45
| | | | | | | * integrate the daemon structure to daemons.h git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4671 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
* * 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 potential negative numpostspiaip2009-06-182-4/+12
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4656 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
* * logind: move logattempt to mbbsd (thanks to kcwu)piaip2009-06-171-1/+1
| | | | | | | * logind: refine asserts and package the queue structure git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4648 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-161-1/+1
| | | | 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
* * 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-163-37/+18
| | | | 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-161-0/+3
| | | | 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
* * change toread/towrite's return value to be '-1 for EOF and error'.piaip2009-06-151-8/+8
| | | | | | | * 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
* vedit bug fixeskcwu2009-06-141-145/+244
| | | | | | | | | | | | | | | | | | | | * 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
* * 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
* * 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
* * 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
* * code refine to mbbsdpiaip2009-06-131-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4591 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-1313-48/+49
| | | | | | | | | * 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-132-17/+13
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4584 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* vedit revisekcwu2009-06-1313-107/+114
| | | | | | | | | * 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
* 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
* * 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-1214-248/+89
| | | | | | | | * 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
* * refine cmbbs/cache.c: we don't need 'util_cache.o' anymore! simply common ↵piaip2009-06-121-967/+26
| | | | | | bbs library (libcmbbs.a). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4569 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
* * make port binding to standalone configuration fine (etc/bindports.conf)piaip2009-06-113-4/+70
| | | | | | | * refine some file names git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4560 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
* * 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-112-18/+2
| | | | 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
* * 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 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-101-2/+7
| | | | 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-102-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4541 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
* * 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-101-1/+1
| | | | | | 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
* * minor fixes:piaip2009-06-082-6/+7
| | | | | | | | | * 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
* * delete dead code.kcwu2009-06-081-28/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4522 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
* * add client code detection to tunnel modepiaip2009-06-082-1/+8
| | | | | | | * 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-071-11/+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-071-1/+1
| | | | | | | | * 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-072-11/+30
| | | | | | | * 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
* * 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
* - 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-073-304/+30
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4505 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - minor revise: call init_convert()kcwu2009-06-071-11/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4504 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - rework r4500: resolve_fcache() seems only required in where() [thanks to wens]piaip2009-06-071-3/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4503 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - refine setup_utmp procedurepiaip2009-06-071-13/+20
| | | | | | | | * reduce the latency * moved SSH_CONNECTION fromhost overriding to shell_login git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4500 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - refine and prepare for login daemon:piaip2009-06-064-87/+91
| | | | | | | | | * change str_guest and str_new to macro definition names * make passwd utilites (check, verify, ...) available in util_passwd * make logattemtp() use assigned time and host. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4498 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* card: make prompt message more clear, and accept user response betterpiaip2009-06-061-1/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4497 63ad8ddf-47c3-0310-b6dd-a9e9d9715204