Topic on Extension talk:EmailDomainCheck

This is just what i need.

4
112.198.79.131 (talkcontribs)

I got a question tho, can I use this if I want to allow multiple domains?

84.112.31.251 (talkcontribs)

you have to change the code like follows:

replace:

$wgEmailDomain = "foo.com";

by:

$wgEmailDomain=array("news.com","foo.com","bar.com"); //Array of allowed domains

and

if ($host == $wgEmailDomain){

by

if in_array($host,$wgEmailDomain){

regards, mlu

Antstamper~mediawikiwiki (talkcontribs)

I got this error using the array...

PHP Parse error: syntax error, unexpected 'in_array' (T_STRING), expecting '('

relating to the line

if in_array($host,$wgEmailDomain){

Grateful for any ideas...

This post was posted by Antstamper~mediawikiwiki, but signed as Antstamper.

Antstamper~mediawikiwiki (talkcontribs)
Reply to "This is just what i need."