mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-09 03:01:18 +02:00
11 lines
308 B
PHP
11 lines
308 B
PHP
<?php
|
|
$request = trim(strtolower($_REQUEST['email']));
|
|
$emails = array('glen@marketo.com', 'george@bush.gov', 'me@god.com', 'aboutface@cooper.com', 'steam@valve.com', 'bill@gates.com');
|
|
$valid = 'true';
|
|
foreach($emails as $email) {
|
|
if( strtolower($email) == $request )
|
|
$valid = 'false';
|
|
}
|
|
echo $valid;
|
|
?>
|