summaryrefslogtreecommitdiffstats
path: root/mbbsd/fav.c
Commit message (Collapse)AuthorAgeFilesLines
* better readability.in22005-06-141-3/+3
| | | | | | | | | real => adminmode, HAS_PERM() => HasUserPerm(), HasPerm() => HasBoardPerm(). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2840 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* give a warning if too many subscribed favorites is added at the same timevictor2005-04-231-5/+15
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2711 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* strict value checkingvictor2005-04-221-7/+44
| | | | | | | write to disk only if fav is dirty git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2710 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* do not allow removing a NULL entryvictor2005-04-211-0/+2
| | | | | | | reduce branch number git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2709 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* buffer overflow: file path [64] is too small!piaip2005-04-211-1/+1
| | | | | | | use PATHLEN instead. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2706 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug: remove an unnecessary decreasevictor2005-04-201-4/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2700 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add assertion. deallocate resources.kcwu2005-04-201-0/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2698 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* reduce system callkcwu2005-02-281-13/+13
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2562 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* reduce some hundred of system call for each logoutkcwu2005-02-261-14/+14
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2553 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix setperm's bug, check NULL condition first in set_attrvictor2005-02-151-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2512 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* commit local change of {read,write}_favrec, which solved the problem of ↵victor2005-02-141-7/+43
| | | | | | pointer size in 32 and 64-bit arch git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2509 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use time4_t(uint32_t) instead of time_t for x86-64 arch.in22005-01-241-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2426 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* revertvictor2005-01-151-4/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2399 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* do fav_cleanup() after loading from .fav4victor2005-01-151-3/+4
| | | | | | | (to avoid mis-cleanup cause by corrupt brd) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2398 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* It should be a function call ...victor2004-12-171-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2380 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* cdoc finishedvictor2004-12-171-55/+197
| | | | | | | | comments for brc.c, fav.c do not allow a board to be added twice in fav git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2379 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* some help pages are showed from filevictor2004-12-021-3/+1
| | | | | | | | more comments remove dirty hack in fav.c since it's safe now git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2360 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* try to fix strange behavior of bvotevictor2004-11-111-1/+4
| | | | | | | | check tmpfile size before save fav4 comment for DDOS git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2322 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* missing fav_removevictor2004-10-131-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2249 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* refactoringvictor2004-10-121-20/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2244 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix memory leakvictor2004-10-121-14/+17
| | | | | | | solve problem when moving tagged folders git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2242 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add subscribed boards only when loginvictor2004-09-271-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2212 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Add statistic program for angel.scw2004-06-201-0/+1
| | | | | | | fix some warning and add svn:keywords Id for several files. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2072 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* missing commitvictor2004-05-131-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1976 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* color fixvictor2004-05-131-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1975 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* in log_file(), use LOG_VF if need to vfprintf().in22004-05-031-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1921 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* change log_file()ptt2004-04-301-3/+1
| | | | | | | log_user() git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1889 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* revert cuser from pointer to buffer.ptt2004-04-211-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* dont add a link to fav subscriptionvictor2004-04-181-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1782 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* return @@victor2004-04-081-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1724 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* depracated functionvictor2004-04-081-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1723 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* dirty hack to the losing favvictor2004-04-081-0/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1722 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add mmap to cuser get ride of passwd_updateptt2004-03-311-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix a small bugvictor2004-03-231-9/+20
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1601 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix memory leak, remove dirty hacking codevictor2004-03-151-11/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1592 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix compile errorvictor2004-03-131-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1591 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix compile errorvictor2004-03-121-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1590 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge from victor.symbolic branchvictor2004-03-121-3/+3
| | | | | | | | | symbolic link to board rename something might cause misunderstanding git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1589 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add some assert() on malloc()kcwu2004-03-091-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1582 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* dirty hackvictor2004-03-061-0/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1579 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* do not need to check herevictor2004-03-051-5/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1578 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix error when .fav4 and .fav3 don't existvictor2004-03-041-6/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1577 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* don't truncate immediatelyvictor2004-02-271-3/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1567 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* subscription should be perform after choice, move some code from board.c to ↵victor2004-02-221-0/+64
| | | | | | fav.c git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1559 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* rm deleted board in cleanupvictor2004-01-101-5/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1478 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Seperate cleanup() into two, cleanup() and clean_invisible().scw2004-01-041-2/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1465 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Wrong condition of cleaning invisible boards.scw2004-01-041-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1463 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Make K,1 under favorite (cleaning invisible boards) rework.scw2004-01-041-5/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1461 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* show non-visible board in favvictor2004-01-041-13/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1457 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* dont remove a non-exist board when logoutvictor2004-01-031-2/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1455 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* clean up non-exist board if set SHM->cleanboardvictor2004-01-031-1/+1
| | | | | | | WARNING, SHM modified git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1452 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* remove some comment, add static modifier properlyvictor2003-12-251-24/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1434 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* typovictor2003-12-071-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1406 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge gb branch backvictor2003-11-281-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1379 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix wrong result of votevictor2003-11-281-3/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1377 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* remove fav branch, open new branch for big5<->gbvictor2003-11-271-4/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1373 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* compile errorvictor2003-11-231-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1367 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* compile errorvictor2003-11-231-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1366 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix 't' for admin, add docs/fav4.txtvictor2003-11-221-0/+31
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1364 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix 't' for adminvictor2003-11-221-0/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1361 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* missing close(fd)victor2003-11-221-5/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1359 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge back from fav4 brachesvictor2003-11-221-0/+921
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1356 63ad8ddf-47c3-0310-b6dd-a9e9d9715204