YTHT code - remove voting registration 7 days restrictions

xiaoxiao2021-03-06  17

NJU09 / BBSVote.c

@@ 110, 1

IF (RETV == 0 || RETV == -1) {

Http_fatal ("Sorry, you don't have the right to choose);

}

}

- IF (currentuser-> firstlogin> = currvote.Opendate - 7 * 86400)

- http_fatal ("Sorry, you have been registered for 7 days this vote is open, no qualification vote / N");

/ * If (currentuser-> firstlogin> = currvote.Opendate - 7 * 86400)

Http_fatal ("Sorry, you register for 7 days this vote is open, no qualification vote / N"); * /

IF ((currvote.flag & vote_flag_limitip) && invalid_voteip (fromhost))

Http_fatal ("Sorry, you come from shuttle station, no voting rights / N");

SRC / Vote.c

@@ 836, 1

Return;

}

-IF (currentuser-> firstlogin> = currvote.opendate - 7 * 86400) {

/ * if (currentuser-> firstlogin> = currvote.opendate - 7 * 86400) {

PRINTS

("Sorry, you have been registered for 7 days when you open this vote, no qualification to participate! / N");

PressanyKey ();

Return;

-}

} * /

IF ((currvote.flag & vote_flag_limitip) && invalid_voteip (fromhost) {

Prints ("Sorry, you are connected from the shuttle station, you can't vote / N");

转载请注明原文地址:https://www.9cbs.com/read-45490.html

New Post(0)