Check out Janggi (Korean Chess), our featured variant for December, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

PHP Functions[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Thu, Apr 12, 2018 04:17 PM UTC:

The login() function defined in /index/loginfuncs.php can now take one or two arguments. The first is userid, and the second is password. If the userid is provided by itself, it returns true only if the user is already logged in. It works the same way if you give an empty string as the password. If both the userid and a non-empty password are provided, it will check whether the password is correct even if the user is already logged in, and it will return true only if the correct password has been given. This does the same job as the verifylogin() function which Ben added but which I removed.