Codice PHP:

<?
    
if (DISPLAY_RESULT_HEADER) include_once (FILE_NAME_HEADER);

    
$type $_POST['type'];
    
$ddomain $_POST['ddomain'];

    if (
$type!=""define('TYPE'$type); else define('TYPE''');
    if (
$ddomain!="") { $_ddomain trim($ddomain); define('DDOMAIN'$_ddomain);    }
    else 
define('DDOMAIN''');
    
//    echo "Debug info:
";
//    echo "
TYPE" . TYPE . "
";
//    echo "
DDOMAIN" . DDOMAIN;

    function extracheck(
$exdomain,$exserver,$exmatch)
    {
        
$exns = fsockopen($exserver,43); fputs($exns,"$exdomain\r\n");
        
$exresult = "";
        while(!feof(
$exns)) $exresult .= fgets($exns,128); fclose($exns);
        if (eregi(
$exmatch,$exresult))
        {
            
$iss = "1";
        } else {
            
$iss = "0";
        }
        return 
$iss;
    }

    function dispav(
$what,$reglink,$justname,$justtld,$iscname)
    {
        echo '<tr><td nowrap class="
available">[b]'.$what.'[/b]';
        if (
$iscname=="1") echo ' '.CANONICAL_TEXT;
        echo '</td>
        <td nowrap align="
center" class="available">[b]'.AVAILABLE_TEXT.'[/b]</td>
        <td nowrap align="
center">';
        // choose the action according to the further processing method:
        if (PROCESSING_TYPE=="
2")    // further processing using FORM/POST
        { echo '<input type="
Checkbox" name="'.$justtld.'" value="1">'; }
        else if (PROCESSING_TYPE=="
3")    // further processing using link/GET
        { echo '[url="'.LINK_EXTERNAL.'
?alldomain='.$what.'&domain='.$justname.'&tld='.$justtld.'"]'.LINK_REGISTER_TEXT.'[/url]'; }
        else // just affiliate link
        {
            if (
$reglink!="" and REG_LINK)
            { echo '[url="'.$reglink.'"]'.LINK_REGISTER_TEXT.'[/url]'; }
            else if (
$reglink=="" and REG_LINK)
            { echo '[url="'.LINK_AFFILIATE.'"]'.LINK_REGISTER_TEXT.'[/url]'; }
            else
            { echo ''; }
        }
        echo '</td></tr>';
    }

    function dispun(
$what,$where) {
        echo '<tr>
        <td nowrap class="
notavailable">[b]'.$what.'[/b]</td>
        <td nowrap align="
center" class="notavailable">[b]'.NOT_AVAILABLE_TEXT.'[/b]</td>
        <td nowrap align="
center">
        <a href="'.FILE_NAME_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>';
        if (
USE_GOTO_LINK)
        {
            echo 
' / [url="http://www.'.$what.'"]'.LINK_TAKEN_GOTO.'[/url]';
        }
        echo 
'</td></tr>';
    }

    function 
disperror($text) {
        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">'
;
        echo 
'<center><b class="errors">'.$text.'[/b]</center>';
        echo 
'</td></tr></table></td></tr></table>';
    }


    if (
WAIT_LAYER_ENABLED)
    {
    
?>
        <script language=javascript>
            var ie4 = (document.all) ? true : false;
            var ns4 = (document.layers) ? true : false;
            var ns6 = (document.getElementById && !document.all) ? true : false;
            function hidelayer(lay) {
                //if (ie4) {document.waitlayer.visible = False; }
                if (ie4) {document.all[lay].style.visibility = "hidden";}
                if (ns4) {document.layers[lay].visibility = "hide";}
                if (ns6) {document.getElementById([lay]).style.display = "none";}
            }
            function showlayer(lay) {
                if (ie4) {document.all[lay].style.visibility = "visible";}
                if (ns4) {document.layers[lay].visibility = "show";}
                if (ns6) {document.getElementById([lay]).style.display = "block";}
            }
            var laywidth  = screen.width/2;
            var layheight = screen.height/2;
            var layl   = (screen.width-laywidth)/2;
              var layt   = (screen.height-layheight)/2;
            document.write("<div name='waitlayer' id='waitlayer' align='center' style='position:absolute; width:"+laywidth+"px; height:"+layheight+"px; z-index:-1; left:"+layl+"px; top:"+layt+"px; visibility: visible;'><p align=center>[b]<? echo WAIT_TITLE?>[/b]

[url='<? echo FILE_NAME?>']<? echo WAIT_MESSAGE?>[/url]</p></div>");
        </script>