da questo codice:
codice:
// .com domains
define('COM_SERVER', "rs.internic.net"); // server to lookup for domain name
define('COM_NOMATCH', "No match"); // string returned by server if the domain is not found
define('COM_INCLUDE', true); // include this domain in lookup
// .net domains
define('NET_SERVER', "rs.internic.net"); // server to lookup for domain name
define('NET_NOMATCH', "No match"); // string returned by server if the domain is not found
define('NET_INCLUDE', true); // include this domain in lookup
// .org domains
define('ORG_SERVER', 'whois.publicinterestregistry.net'); // server to lookup for domain name
define('ORG_NOMATCH', 'NOT FOUND'); // string returned by server if the domain is not found
define('ORG_INCLUDE', true); // include this domain in lookup
// .info domains
define('INFO_SERVER', 'whois.afilias.net'); // server to lookup for domain name
define('INFO_NOMATCH', 'Not found'); // string returned by server if the domain is not found
define('INFO_INCLUDE', true); // include this domain in lookup
// .biz domains
define('BIZ_SERVER', 'whois.nic.biz'); // server to lookup for domain name
define('BIZ_NOMATCH', 'Not found'); // string returned by server if the domain is not found
define('BIZ_INCLUDE', true); // include this domain in lookup
// Shall we use register link? (true/false)
define('REG_LINK', true);
// If yes, give the url, it can be your affiliate link
define('REG_URL', 'http://www.123-reg.co.uk/affiliate.cgi?id=AF8763');
// Do you want a log file? (true/false)
define('WANTLOG', false);
// If yes, give the log file name here
// remember to chmod the file to 777 (change permition to writable for everyone)
define('LOGFILE', 'mrwhois.log');
/*
#################################################################################################################
End of variables, you do not need to change anythin below this line.
#################################################################################################################
*/
if ($_POST['type']!="") define('TYPE', $_POST['type']); else define('TYPE', '');
if ($_POST['ddomain']!="") define('DDOMAIN', $_POST['ddomain']); else define('DDOMAIN', '');
// This function displays an available domain
function dispav($what)
{
echo '<tr><td nowrap align="center">';
if (REG_LINK)
{
echo ''.LINK_REGISTER_TEXT.'';
}
else
echo '';
echo '</td>
<td nowrap align="center" class="available">'.$what.'</td><td colspan=3></td></tr>';
}
// Function to display an unavailable domain with additional links
function dispun($what,$where)
{
echo '<tr>
<td colspan="2"></td>
<td align="center" nowrap class="notavailable">'.$what.'</td>
<td nowrap align="center">
<a href="'.FILE_NAME.'?action=details&ddomain='.$what.'&server='.$where.'" onMouseOver="window.status=\''.STATUS_BAR_DETAILS.' '.$what.'\';return true" onMouseOut="window.status=\'\';return true" onClick="NewWindow(this.href,\'details\',\'620\',\'400\',\'yes\');return false;">
'.LINK_TAKEN_DETAILS.'</a></td>
<td nowrap align="center">'.LINK_TAKEN_GOTO.'</td>
</tr>';
}
function startborder()
{
echo '<table align="center" width="600" border="0" cellspacing="0" cellpadding="0">
<tr><td width="100%" class="windowborder">
<table width="600" border="0" cellspacing="1" cellpadding="2">
<tr><td class="windowinside">';
}
function endborder()
{
echo '</td></tr></table></td></tr></table>';
}
function disperror($text)
{
startborder();
echo '<center><b class="errors">'.$text.'[/b]</center>';
endborder();
}
function main()
{
echo '
';
startborder();
echo '
<table width="100%" align="center" cellspacing="0" cellpadding="1">
<tr>
<td colspan="2" align="center" width="100%">'.MAIN_COMMAND.'</td>
</tr>
<tr>
<td align="center">
<form method="POST" action="'.FILE_NAME.'">
<input type="hidden" name="action" value="checkdom">
<input type="hidden" name="type" value="'.TYPE.'">
www. <input type="text" name="ddomain" size="30" maxlength="63" value="'.DDOMAIN.'">
<input type="submit" name="button" value="'.CHECK_BUTTON.'">
</td>
<td align="left">';
if (IT_INCLUDE) { echo '<INPUT TYPE="radio" '; if(TYPE=='it') { echo 'CHECKED '; } echo ' NAME="type" VALUE="it"> it
'; }
if (COM_INCLUDE) { echo '<INPUT TYPE="radio" '; if(TYPE=='com' or TYPE == '') { echo 'CHECKED '; } echo ' NAME="type" VALUE="com"> com
'; }
if (NET_INCLUDE) { echo '<INPUT TYPE="radio" '; if(TYPE=='net') { echo 'CHECKED '; } echo ' NAME="type" VALUE="net"> net
'; }
if (ORG_INCLUDE) { echo '<INPUT TYPE="radio" '; if(TYPE=='org') { echo 'CHECKED '; } echo ' NAME="type" VALUE="org"> org
'; }
if (INFO_INCLUDE){ echo '<INPUT TYPE="radio" '; if(TYPE=='info') { echo 'CHECKED '; } echo ' NAME="type" VALUE="info"> info
'; }
if (BIZ_INCLUDE) { echo '<INPUT TYPE="radio" '; if(TYPE=='biz') { echo 'CHECKED '; } echo ' NAME="type" VALUE="biz"> biz
'; }
echo '<INPUT TYPE="radio" '; if(TYPE=='all') { echo 'CHECKED '; } echo ' NAME="type" VALUE="all"> '.ALL_TEXT.'';
echo '</form>
</td>
</tr>
<tr><td colspan="2" align="center" class="footer">'.FOOTER_TEXT.'
'.FOOTER_RELOAD_TEXT.'
'.POWERED_BY.'
</td></tr>
</table>';
endborder();
}
vorrei inserire al posto di:
codice:
</td>
<td align="left">';
if (IT_INCLUDE) { echo '<INPUT TYPE="radio" '; if(TYPE=='it') { echo 'CHECKED '; } echo ' NAME="type" VALUE="it"> it
'; }
if (COM_INCLUDE) { echo '<INPUT TYPE="radio" '; if(TYPE=='com' or TYPE == '') { echo 'CHECKED '; } echo ' NAME="type" VALUE="com"> com
'; }
if (NET_INCLUDE) { echo '<INPUT TYPE="radio" '; if(TYPE=='net') { echo 'CHECKED '; } echo ' NAME="type" VALUE="net"> net
'; }
if (ORG_INCLUDE) { echo '<INPUT TYPE="radio" '; if(TYPE=='org') { echo 'CHECKED '; } echo ' NAME="type" VALUE="org"> org
'; }
if (INFO_INCLUDE){ echo '<INPUT TYPE="radio" '; if(TYPE=='info') { echo 'CHECKED '; } echo ' NAME="type" VALUE="info"> info
'; }
if (BIZ_INCLUDE) { echo '<INPUT TYPE="radio" '; if(TYPE=='biz') { echo 'CHECKED '; } echo ' NAME="type" VALUE="biz"> biz
'; }
echo '<INPUT TYPE="radio" '; if(TYPE=='all') { echo 'CHECKED '; } echo ' NAME="type" VALUE="all"> '.ALL_TEXT.'';
echo '</form>
</td>
questo:
codice:
</td>
<td>
<select name="ext">
<option selected>.it</option>
<option>.com</option>
<option>.net</option>
<option>.org</option>
<option>.biz</option>
<option>.eu</option>
<option>.info</option>
</select>
</td>
<td>
<div align="right">
come lo posso adattare?si può?