All pastes #419067 Raw Edit

Unnamed

public php v1 · immutable
·published 2007-04-01 00:52 UTC
rendered paste body
<?php	if (!isset($_REQUEST['check'])) {		$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> <a href='#'>Click here to order</a>";		} else {			$results = "<b>$domain is Not Available</b>";		}	}?>