Check out Janggi (Korean Chess), our featured variant for November, 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 Tue, May 8, 2018 04:21 PM UTC:

The safe_email() function normally checks whether a To address is listed in the database, and I initially just wrote in an exception for changing an email address. But since Game Courier invitations may also be sent to an address that is not in the database, I replaced this specific exception with a flag that allows an exception for a particular use. I added an optional sixth argument called $onlytomember, and it defaults to true if you don't include it. When the function should be allowed to send email to someone who is not a member, the sixth argument should be set to false. When you need to set the sixth argument, but you don't need to set the fifth argument, set the fifth argument to "", which is the same as its default value.