Commit 9b1e7e5e authored by Andy Castille's avatar Andy Castille

SSN may be more scary than useful

parent 4077af27
......@@ -40,6 +40,7 @@
data-class="EMAIL">
</div>
</div>
<div class="row">
<div class="four columns">
<label for="phone">Phone number</label>
......@@ -53,17 +54,18 @@
data-class="PHONE">
</div>
</div>
<div class="row">
<div class="four columns">
<label for="ipv4">IPv4 address</label>
</div>
<div class="eight columns">
<?php
$ip = array_key_exists("HTTP_X_FORWARDED_FOR", $_SERVER)
? $_SERVER["HTTP_X_FORWARDED_FOR"]
: $_SERVER["REMOTE_ADDR"];
$ip4 = strpos($ip, ":") === false ? $ip : "";
?>
<?php
$ip = array_key_exists("HTTP_X_FORWARDED_FOR", $_SERVER)
? $_SERVER["HTTP_X_FORWARDED_FOR"]
: $_SERVER["REMOTE_ADDR"];
$ip4 = strpos($ip, ":") === false ? $ip : "";
?>
<input type="text"
id="ipv4"
class="u-full-width"
......@@ -72,19 +74,22 @@
data-class="IPv4">
</div>
</div>
<div class="row">
<div class="four columns">
<label for="ssn">Social Security Number</label>
</div>
<div class="eight columns">
<input type="text"
id="ssn"
class="u-full-width"
placeholder="000-00-0000 or 000000000"
pattern="^(\d{9}|\d{3}-\d{2}-\d{4})$"
data-class="SSN">
<?php if (isset($_GET["ssn"])): ?>
<div class="row">
<div class="four columns">
<label for="ssn">Social Security Number</label>
</div>
<div class="eight columns">
<input type="text"
id="ssn"
class="u-full-width"
placeholder="000-00-0000 or 000000000"
pattern="^(\d{9}|\d{3}-\d{2}-\d{4})$"
data-class="SSN">
</div>
</div>
</div>
<?php endif; ?>
<div class="row">
<div class="four columns">
......@@ -99,6 +104,7 @@
data-class="HANDLE">
</div>
</div>
<button type="button" class="button-primary" onclick="hashForm(this.parentElement)">Search</button>
<button type="reset" class="button">Clear</button>
</form>
......@@ -120,7 +126,7 @@
<a href="https://gitlab.com/dumpiisearch/pii-search">this search website</a> or
<a href="https://gitlab.com/dumpiisearch/pii-indexer">the indexer that generated the database</a>.
</p>
<?php readfile("../include/footer.html"); ?>
<?php readfile("../include/footer.html"); ?>
</div>
</footer>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment