if isset _POST domain empty _POST domain host htmlspecialchars _POST d

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
if(isset($_POST['domain']) && !empty($_POST['domain'])) {
$host = htmlspecialchars($_POST['domain']);
$host = parse_url($host, PHP_URL_HOST);
}
if(isset($_POST['login'])) $login = htmlspecialchars($_POST['login']);
if(isset($_POST['password'])) $pass = htmlspecialchars($_POST['password']);
$desc = htmlspecialchars($_POST['description']);
$host = preg_replace('#^www\.#is','',$host);
$domain_hash = crc32fix($host);
$login_hash = crc32fix($login);
print $domain_hash ." and ". $login_hash;