Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eterfund-api-email
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eterfund
eterfund-api-email
Commits
f66eb8f2
Commit
f66eb8f2
authored
Oct 09, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add README
parent
61876058
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
README.md
README.md
+16
-0
svcCheckEmail.php
svcCheckEmail.php
+1
-1
No files found.
README.md
0 → 100644
View file @
f66eb8f2
Using
=====
Add
<script
type=
"text/javascript"
src=
"//eterfund.ru/js/jquery/jquery-latest.min.js"
></script>
<script
type=
"text/javascript"
src=
"//eterfund.ru/api/email/svcCheckEmail.js"
></script>
to page with e-mail input field.
Mark input e-mail tag with class="svcCheckEmail"
You can also add emailhash input field to form:
<input
type=
"hidden"
name=
"emailhash"
value=
"valuable"
/>
It will fills with special hash you can check on the server side.
svcCheckEmail.php
View file @
f66eb8f2
...
@@ -7,7 +7,7 @@ error_reporting(0);
...
@@ -7,7 +7,7 @@ error_reporting(0);
function
typeddomain
(
$domain
)
function
typeddomain
(
$domain
)
{
{
$blacklist
=
array
(
"
meil.ru"
,
"maile.ru"
,
"meil.ru"
,
"wail.ru"
,
"maiil.ru"
,
"maij.ru"
,
"mfil.ru"
,
"yandeks.ru"
,
"yandexs.ru"
,
"jandex.ru"
,
"yahdex.ru"
,
"yanbex.ru"
,
"ayndex.ru"
,
"yndex.ru"
,
"yanddex.ru"
,
"gmal.com
"
,
"gmeil.com"
,
"gmauil.com"
,
"rabler.ru"
,
"ramdler.ru"
,
"ranbler.ru"
,
"gmail.ru"
,
"gmal.com"
);
$blacklist
=
array
(
"
lnbox.ru"
,
"meil.ru"
,
"maile.ru"
,
"meil.ru"
,
"wail.ru"
,
"maiil.ru"
,
"maij.ru"
,
"mfil.ru"
,
"yandeks.ru"
,
"yandexs.ru"
,
"jandex.ru"
,
"yahdex.ru"
,
"yanbex.ru"
,
"ayndex.ru"
,
"yndex.ru"
,
"yanddex.ru"
,
"gmal.com"
,
"gmal.ru
"
,
"gmeil.com"
,
"gmauil.com"
,
"rabler.ru"
,
"ramdler.ru"
,
"ranbler.ru"
,
"gmail.ru"
,
"gmal.com"
);
return
in_array
(
$domain
,
$blacklist
);
return
in_array
(
$domain
,
$blacklist
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment