Update README.md

This commit is contained in:
Martin Cech 2015-07-13 16:13:26 +02:00
parent 933f6075f4
commit 4866668176

View File

@ -7,7 +7,7 @@ Originally collected to filter new user registration at https://usegalaxy.org an
Example Usage Example Usage
============= =============
Python (thanks to @txt3rob) Python
```Python ```Python
blacklist = ('disposable_email_blacklist.conf') blacklist = ('disposable_email_blacklist.conf')
blacklist_content = [line.rstrip() for line in blacklist.readlines()] blacklist_content = [line.rstrip() for line in blacklist.readlines()]
@ -17,7 +17,7 @@ if email.split('@')[1] in blacklist_content:
else: else:
return True return True
``` ```
PHP PHP contributed by @txt3rob
```php ```php
function is_temp_mail($mail) { function is_temp_mail($mail) {
$list = file_get_contents ('disposable_email_blacklist.conf'); $list = file_get_contents ('disposable_email_blacklist.conf');