All pastes #469225 Raw Edit

Untitled

public php v1 · immutable
·published 2007-05-03 16:52 UTC
rendered paste body
<?php$tlds = array('com', 'net', 'org');if (!isset($_REQUEST['check']) || !in_array($_REQUEST['tld'], $tlds)) {	$results = '';} elseif (empty($_REQUEST['domain'])) {	$results = '<b>Please fill in all fields</b>';} else {	$domain = $_REQUEST['domain'] . '.' . $_REQUEST['tld'];	$site = file_get_contents("http://isfree.schlundtech.de/cgi-bin/isfree.cgi?domain=$domain&lang=EN");	if (strpos($site, 'is still available') !== false) {			$results = "<b>$domain is Available</b>";	} else {		$results = "<b>$domain is Not Available</b>";	}}?>