<?php

//  PROJECT HONEY POT ADDRESS DISTRIBUTION SCRIPT
//  For more information visit: http://www.projecthoneypot.org/
//  Copyright (C) 2004, Unspam, LLC
//  
//  This program is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation; either version 2 of the License, or
//  (at your option) any later version.
//  
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//  
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
//  02111-1307  USA
//  
//  If you choose to modify or redistribute the software, you must
//  completely disconnect it from the Project Honey Pot Service, as
//  specified under the Terms of Service Use. These terms are available
//  here:
//  
//  http://www.projecthoneypot.org/terms_of_service_use.php
//  
//  The required modification to disconnect the software from the
//  Project Honey Pot Service is explained in the comments below. To find the
//  instructions, search for:  *** DISCONNECT INSTRUCTIONS ***
//  
//  Generated On: Mon, 17 Jan 2005 05:57:59 -0600
//  For Domain: www.lagged.za.net
//  
//  

//  *** DISCONNECT INSTRUCTIONS ***
//  
//  You are free to modify or redistribute this software. However, if
//  you do so you must disconnect it from the Project Honey Pot Service.
//  To do this, you must delete the lines of code below located between the
//  *** START CUT HERE *** and *** FINISH CUT HERE *** comments. Under the
//  Terms of Service Use that you agreed to before downloading this software,
//  you may not recreate the deleted lines or modify this software to access
//  or otherwise connect to any Project Honey Pot server.
//  
//  *** START CUT HERE ***
//  
define('__REQUEST_HOST', 'hpr2.projecthoneypot.org');
define('__REQUEST_PORT', '80');
define('__REQUEST_SCRIPT','/cgi/serve.php');
//  
//  *** FINISH CUT HERE ***
//  

define('__HPOT_TAG1',    '521c9ee6778b8fe5575bd36237130453');
define('__HPOT_TAG2',    'a0172b2b8ea312122e1011e34df4bed8');
define('__HPOT_TAG3',    '34aa2473d1aa4705f92165addfe297ff');

define('__CLASS_STYLE_1','stusweswubo');
define('__CLASS_STYLE_2','swajaphucasw');

define('__DIV1',         'hi5el1le');

define('__VANITY_L1',    'MEMBER OF PROJECT HONEY POT');
define('__VANITY_L2',    'Spam Harvester Protection Network');
define('__VANITY_L3',    'provided by Unspam');

define('__DOC_TYPE1',    '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n');
define('__HEAD1',        '<html>\n<head>\n');
define('__HEAD2',        '<title>Www.lagged.za.net>dictionary Scratchy</title>\n</head>\n');
define('__ROBOT1',       '<meta name="robots" content="noindex,noarchive">\n<meta name="robots" content="follow">\n');
define('__NOCOLLECT1',   '<meta name="no-email-collection" content="/" />\n');
define('__TOP1',         '<body>\n<center>\n');
define('__EMAIL1A',      '<a href="mailto:');
define('__EMAIL1B',      '" style="display: none;">');
define('__EMAIL1C',      '</a>');
define('__EMAIL2A',      '<a href="mailto:');
define('__EMAIL2B',      '" style="display:none;">');
define('__EMAIL2C',      '</a>');
define('__EMAIL3A',      '<a style="display: none;" href="mailto:');
define('__EMAIL3B',      '">');
define('__EMAIL3C',      '</a>');
define('__EMAIL4A',      '<a style="display:none;" href="mailto:');
define('__EMAIL4B',      '">');
define('__EMAIL4C',      '</a>');
define('__EMAIL5A',      '<a href="mailto:');
define('__EMAIL5B',      '"></a>');
define('__EMAIL5C',      '..');
define('__EMAIL6A',      '<span style="display: none;"><a href="mailto:');
define('__EMAIL6B',      '">');
define('__EMAIL6C',      '</a></span>');
define('__EMAIL7A',      '<span style="display:none;"><a href="mailto:');
define('__EMAIL7B',      '">');
define('__EMAIL7C',      '</a></span>');
define('__EMAIL8A',      '<!-- <a href="mailto:');
define('__EMAIL8B',      '">');
define('__EMAIL8C',      '</a> -->');
define('__EMAIL9A',      '<div id="'.__DIV1.'"><a href="');
define('__EMAIL9B',      '">');
define('__EMAIL9C',      '</a></div><br><script language="JavaScript" type="text/javascript">document.getElementById(\''.__DIV1.'\').innerHTML=\'\';</script>');
define('__EMAIL10A',     '<a href="mailto:');
define('__EMAIL10B',     '"><!-- ');
define('__EMAIL10C',     ' --></a>');
define('__LEGAL1',       '');
define('__LEGAL2',       '\n');
define('__STYLE1',       '\n<style>a.'.__CLASS_STYLE_1.'{color:#FFF;font:bold 10px arial,sans-serif;text-decoration:none;}</style>');
define('__VANITY1',      '<table cellspacing="0"cellpadding="0"border="0"style="background:#999;width:230px;"><tr><td valign="top"style="padding: 1px 2px 5px 4px;border-right:solid 1px #CCC;"><span style="font:bold 30px arial,sans-serif;color:#666;top:0px;position:relative;">@</span></td><td valign="top" align="left" style="padding:3px 0 0 4px;"><a href="http://www.projecthoneypot.org/" class="'.__CLASS_STYLE_1.'">'.__VANITY_L1.'</a><br><a href="http://www.unspam.com"class="'.__CLASS_STYLE_1.'">'.__VANITY_L2.'<br>'.__VANITY_L3.'</a></td></tr></table>\n');
define('__BOTTOM1',      '</center>\n</body>\n</html>\n');


function getLegalContent() { return '<table border="0" cellpadding="0" cellspacing="0">\n<tr>\n<td><tt>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp;<br>The webs&#105;t<br>to you<font color=white>s</font>&#115;ub<br>other term<br>Website yo<br>read the&#109; <br>age<!-- kingsize -->nts<font color=white>t</font>of <br>t&#104;em. The <br>n&#111;n-transf<br>Website.<br><br>&nbsp; &nbsp; &nbsp; &nbsp; <b><font color=white>f</font></b>&nbsp;<br>&nbsp;<br>Spec&#105;al re<br>Non-&#72;uman <br>spiders&#44; b<br>programs &#100;<br>automatica<br><br>Email add&#114;<br>It is reco<br>alone. Y&#111;u<br>has &#97; val&#117;<br>&#115;torage, a<br>v&#97;lue<font color=white>c</font>of t<br>stori&#110;g th<br>a&#103;r&#101;ement<font color=white>i</font><br><br>&nbsp;&nbsp; <b><font color=white>s</font></b>&nbsp; &nbsp;&nbsp; <b><font color=white>p</font></b><br>&nbsp;<br>Each<font color=white>o</font>par&#116;y<br>against th<br>("J<!-- passport average -->udicial<br>th&#101; regi&#115;&#116;<br>such laws <br>and p&#101;rfo&#114;<br>of fede&#114;a&#108;<br>any acti&#111;n<br>&#83;e&#114;vice. Y<br>th&#101; &#97;bove <br><br>&nbsp;&nbsp; <b><font color=white>e</font></b>&nbsp; &nbsp; &nbsp; <br><font color=white>s</font><br>Yo&#117; co&#110;sen<br>may a&#112;pe&#97;r<br>abuse. The<br>&#86;isitors &#97;<br><br>VIS&#73;TORS A<br>PARTY<!-- violent -->&nbsp;OR S<br>SUBSEQ&#85;ENT<br></tt></td>\n<td><tt>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br><br>&#101; fro&#109; whi<br>ject to th<br>s g&#111;ve<!-- filterable degree -->rnin<br>u accept &#116;<br>c&#97;refully&#46;<br>the indiv&#105;<br>acc&#101;ss &#114;ig<br>er&#97;bl&#101; wit<br><br><br>&nbsp; &nbsp;&nbsp; <b>S&#80;&#69;CI</b><br><br>strictions<br>Visitors. <br>ots, ind&#101;x<br>esigned to<br>lly.<br><br>e&#115;ses<font color=white>d</font>on t<br>gnized tha<br>&nbsp;&#97;&#99;kno&#119;l&#101;d<br>e not less<br>nd/or dis&#116;<br>h&#101;se &#97;ddr<!-- complex punishment school swallowtailed answer -->e<br>is We&#98;site<br>&#97;nd e&#120;p&#114;&#101;&#115;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br><br>&nbsp;a&#103;rees th<br>e other in<br>&nbsp;Action") <br>&#101;red Admin<br>are app&#108;ie<br>&#109;ed ent&#105;re<br>&nbsp;and state<br>&nbsp;brought a<br>ou consent<!-- cliffhanger corn note majestic --><br>ag&#114;eement.<br><br>&nbsp;<b><font color=white>o</font></b>&nbsp;<b><font color=white>c</font></b>&nbsp; <b><font color=white>c</font></b>&nbsp;&nbsp; <br><br>t to havin<br>&nbsp;somew&#104;ere<br><font color=white>o</font>Identifie<br>gree not &#116;<br><br>G&#82;EE &#84;HAT <br>ENDING<font color=white>o</font>AN&#89;<br><font color=white>f</font>BREACH OF<br></tt></td>\n<td><tt>&nbsp; &nbsp; &nbsp;&nbsp; <b>TER</b><br><br>&#99;h you acc<!-- objective glance chemistry lip --><br>e fol&#108;&#111;win<br>g a&#99;cess t<br>hese t&#101;rms<br>&nbsp;A&#110;y N&#111;n-H<br>dual(s) wh<br>hts gr<!-- bare hardcover -->a&#110;te<br>&#104;out<font color=white>k</font>the e<br><br><br><b>AL</b>&nbsp;<b>LICENS&#69;</b><br><br>&nbsp;on a visi<br>N&#111;n-Human <br>ers, &#114;obot<br>&nbsp;access, r<br><br><br>his site a<br>t these em<br>g&#101; and agr<!-- focus didactic sample purple villainous --><br>&nbsp;t&#104;an &#85;S $<br>ributio<!-- winded dressmaker -->n o<br>sses. Inte<br>\'s email &#97;<br>s<!-- anserine aircraft -->&#108;y pr&#111;&#104;ib<br><br>&nbsp; &nbsp;&nbsp; <b>AP&#80;L&#73;</b><br><br>at a&#110;y<font color=white>e</font>sui<br>&nbsp;con&#110;ectio<br>sh<!-- subacid economy overrated tall humectant -->all b&#101; g<br>istr&#97;tive <br>d to agree<br>ly w&#105;&#116;hin<font color=white>e</font><br>&nbsp;courts wi<br>ga&#105;&#110;st him<br>&nbsp;t&#111; electr<br><br><br>&nbsp; &nbsp; <b>RECORD</b><br><br>g your Int<br>&nbsp;on t&#104;is<font color=white>s</font>p<br>r &#105;&#115; uniqu<br>o &#117;se this<br><br>&#72;ARVESTING<br>&nbsp;MESSAG&#69;(S<br><font color=white>t</font>THESE T&#69;R<br></tt></td>\n<td><tt><b>&#77;&#83;</b>&nbsp;<b>AND</b>&nbsp;<b>&#67;&#79;N</b><br><br>es&#115;ed this<!-- murky highpitched rugby --><br>g &#99;ond&#105;tio<br>o the Webs<br>&nbsp;an<!-- insider -->&#100; condi<br>u&#109;an Vi&#115;&#105;t<br>o controls<br>d to y&#111;u u<br>xpress wri<br><br><br>&nbsp;<b>RESTRICTI</b><br><br>tor\'s<font color=white>h</font>lice<br>Visitors<!-- seafowl nuclear roasted smalltown regretful -->&nbsp;i<br>s, &#99;rawle&#114;<br>ead, c&#111;m&#112;i<br><br><br>re con&#115;ide<br>ai&#108;<font color=white>o</font>addres<br>ee t&#104;&#97;t e&#97;<br>50. You fu<br>f &#116;hes&#101; ad<br>ntional co<br>ddresses i<br>ite<!-- device extensive -->d.<br><br><b>CABLE</b>&nbsp;<b>LAW</b>&nbsp;<br><br>t, acti&#111;n <br>&#110; &#119;ith &#111;r <br>o<!-- reach news contractor -->verned by<br>&#67;on&#116;act<font color=white>p</font>(t<br>ments betw<br>the A&#100;min <br>t&#104;i&#110; the A<br>&nbsp;in co&#110;&#110;&#101;c<br>onic servi<br><br><br><b>S<font color=white>k</font>OF</b>&nbsp;<b>VI&#83;IT</b><br><br>e&#114;n&#101;t Prot<br>age (the "<br>ely matc&#104;e<br>&nbsp;addre&#115;&#115; f<br><br>, GAT&#72;ERI<!-- beans glut accurate rhomboid -->N<br>) &#84;O THE I<br>MS OF SE&#82;V<br></tt></td>\n<td><tt><b>DITIONS</b>&nbsp;<b>OF</b><br><br>&nbsp;agre&#101;ment<br>ns. These <br>ite. By<font color=white>g</font>&#118;i<br>&#116;i&#111;ns (the<br>ors to th&#101;<br>,<font color=white>s</font>&#97;uthors <br>nd&#101;&#114;<font color=white>a</font>t&#104;&#101; T<br>tten<font color=white>d</font>pe&#114;mi<br><br><br><b>ONS</b>&nbsp;<b>FO&#82;</b>&nbsp;<b>NO</b><br><br>nse to<font color=white>p</font>acc<br>nclud&#101;, bu<br>&#115;, harvest<br>le or gat&#104;<br><br><br>red pr&#111;pri<br>ses<font color=white>c</font>are pr<br>&#99;h<font color=white>f</font>email a<br>r&#116;her agre<br>d&#114;esses &#115;u<br>l&#108;ection, <br>s recog&#110;iz<br><br><br><b>AND</b>&nbsp;<b>J&#85;RISD</b><br><br>o&#114; proceed<!-- semiyearly monaural --><br>ari&#115;i&#110;g fr<br>&nbsp;&#116;&#104;&#101; la&#119; o<br>he "Admin <br>e&#101;n Admin <br>Sta&#116;e. You<br>&#100;min State<br>tion with<font color=white>c</font><br>&#99;e of pro&#99;<br><br><br><b>OR<font color=white>k</font>USE</b>&nbsp;<b>AND</b><br><br>&#111;col ad&#100;re<br>Iden&#116;ifier<br>&#100; to your <br>or<font color=white>s</font>&#97;ny &#114;ea<br><br>G, STORING<br>D<!-- oceanic misers -->ENTIFIER <br>IC&#69;.<br></tt></td>\n<td><tt>&nbsp;<b>USE</b>&nbsp;<br><br>&nbsp;("&#116;&#104;e Web<br>terms are <br>sit&#105;ng<font color=white>p</font>(in<br>&nbsp;"T&#101;rm&#115; of<br>&nbsp;Website<font color=white>f</font>&#115;<br>or<font color=white>t</font>otherwi<br>erm&#115; of Se<br>ssi<!-- quality software monastic -->on<font color=white>o</font>&#111;f t<br><br><br><b>N-HUMAN</b>&nbsp;<b>VI</b><br><br>ess the We<br>t ar&#101; not <br>ers&#44;<font color=white>h</font>or &#97;n<br>er cont&#101;n&#116;<br><br><br>etary i&#110;&#116;e<br>ovided f&#111;&#114;<br>ddr&#101;ss the<br>e that the<br>bstant&#105;a<!-- local selfincriminating -->ll<br>har&#118;&#101;sti<!-- pocket -->ng<br>ed as a vi<br><br><br><b>ICTI&#79;N</b>&nbsp;<br><br>ing br&#111;u&#103;&#104;<br>&#111;m &#116;&#104;e Ter<br>&#102; the st&#97;t<br>St&#97;t&#101;") fo<br>State resi<br>&nbsp;consen&#116; t<br>. You cons<br>bre&#97;ches<font color=white>c</font>o<br>ess regar&#100;<br><br><br>&nbsp;<b>AB&#85;SE</b>&nbsp;<br><br>ss recorde<br>") if<font color=white>p</font>we s<br>I&#110;ternet P<br>&#115;&#111;n.<br><br>, T&#82;ANS&#70;ER<br>&#67;O&#78;STIT&#85;T&#69;<br><br></tt></td>\n<td><tt><br><br>site") is <br>in ad&#100;itio<br><font color=white>d</font>a&#110;&#121; manne<br><font color=white>o</font>Servic&#101;")<br>ha<!-- packet -->ll b&#101;<font color=white>o</font>c<!-- infertile personal cooperation gimmick aglow -->o<br>se mak<!-- stimulus tertian consent -->es u<br>rvic&#101; are<br>he &#111;wner o<br><br><br><b>SITORS</b>&nbsp;<br><br>bsite appl<br>limi&#116;ed to<br>y oth&#101;r co<br><font color=white>s</font>from the <br><br><br>lle&#99;&#116;u&#97;l p<br>&nbsp;&#104;uman v&#105;s<br>&nbsp;Website c<!-- kingly nordic varietal --><br>&nbsp;compilati<br>y<font color=white>h</font>d&#105;minish<br>, g&#97;therin<br>olat&#105;&#111;n o&#102;<br><br><br><br><br>t by &#115;uch <br>ms of Serv<br>e<font color=white>d</font>of &#114;esid<br>r<font color=white>f</font>th&#101; Webs<br>de&#110;ts en&#116;e<br>o the<font color=white>t</font>&#106;ur&#105;<br>&#101;nt to t&#104;e<br>f these Te<br>ing &#97;&#99;tio&#110;<br><br><br><br><br>d. An<font color=white>k</font>emai<br>uspect p&#111;t<br>&#114;otocol a&#100;<br><br><br>RING TO A <br>S AN &#65;CCE&#80;<br><br></tt></td>\n<td><tt><br><br>provi&#100;ed<br>n to any<br>r) the<br>. Please<br>&#110;sid<!-- perception motherly -->er&#101;d<br>se of<br><br>f th&#101;<br><br><br><br><br>y to<br>, w&#101;b<br>mp<!-- adverse pretty spending cloven merciful -->uter<br>Web&#115;ite<br><br><br>r&#111;pert&#121;.<br>itors<br>ontai&#110;s<br>on,<br>es the<br>g, and/&#111;r<br>&nbsp;this<br><br><br><br><br>par<!-- environmental leading postwar female sinistrorse -->ty<br>ice<br>ence of<br>&#105;te as<!-- visit amuck lonely topic turnkey --><br>re<!-- lyrical -->d into<br>s&#100;i&#99;&#116;i&#111;n<br>&nbsp;venue &#105;n<br>rms of<br>s<font color=white>p</font>unde&#114;<br><br><br><br><br>l<font color=white>p</font>address<br>entia&#108;<br>dress.<br><br><br>THIRD<br>TANCE AND<br><br></tt></td>\n</tr>\n</table>\n<br>'; }


?><?php 


function formatHTML($s) {
    return str_replace('\n',"\n",$s);
}

function getDocType()       { return formatHTML(__DOC_TYPE1); }
function getHeadHTML1()     { return formatHTML(__HEAD1); }
function getRobotHTML()     { return formatHTML(__ROBOT1); }
function getNoCollectHTML() { return formatHTML(__NOCOLLECT1); }
function getHeadHTML2()     { return formatHTML(__HEAD2); }
function getTopHTML()       { return formatHTML(__TOP1); }
function getEmailHTML($method,$m) { 
    switch ($method) {
    case 0: return "";
    case 1: return formatHTML(__EMAIL1A.$m.__EMAIL1B.$m.__EMAIL1C); 
    case 2: return formatHTML(__EMAIL2A.$m.__EMAIL2B.$m.__EMAIL2C); 
    case 3: return formatHTML(__EMAIL3A.$m.__EMAIL3B.$m.__EMAIL3C); 
    case 4: return formatHTML(__EMAIL4A.$m.__EMAIL4B.$m.__EMAIL4C); 
    case 5: return formatHTML(__EMAIL5A.$m.__EMAIL5B); 
    case 6: return formatHTML(__EMAIL6A.$m.__EMAIL6B.$m.__EMAIL6C); 
    case 7: return formatHTML(__EMAIL7A.$m.__EMAIL7B.$m.__EMAIL7C); 
    case 8: return formatHTML(__EMAIL8A.$m.__EMAIL8B.$m.__EMAIL8C); 
    case 9: return formatHTML(__EMAIL9A.$m.__EMAIL9B.$m.__EMAIL9C); 
    }
    return formatHTML(__EMAIL9A.$m.__EMAIL9B.$m.__EMAIL9C); 
}
function getLegalHTML()   { return formatHTML(__LEGAL1.(getLegalContent()).__LEGAL2); }
function getStyleHTML()   { return formatHTML(__STYLE1); }
function getVanityHTML()  { return formatHTML(__VANITY1); }
function getBottomHTML()  { return formatHTML(__BOTTOM1); }

function performRequest($request) {
    $response = "";
    
    $head  = "POST ".__REQUEST_SCRIPT." HTTP/1.1\r\n";
    $head .= "Host: ".__REQUEST_HOST."\r\n";
    $head .= "User-Agent: PHPot ".__HPOT_TAG2."\r\n";
    $head .= "Content-Type: application/x-www-form-urlencoded\r\n";
    $head .= "Content-Length: ".strlen($request)."\r\n";
    $head .= "Connection: close\r\n\r\n";
    
    $errno  = NULL;
    $errstr = NULL;
    $fd = @fsockopen (__REQUEST_HOST, __REQUEST_PORT, $errno, $errstr, 20);
    
    if (!$fd) {
        // Socket Error
        die("\n<BR>Unable to contact the Server<BR>\n");
        return "-1";
    } else {
        fputs($fd,$head.$request);
        while(!feof($fd)) {
            $response .= fgets($fd,4096);
        }
        fclose($fd);
    }

    return $response;
}

function prepareRequest() {
    $postvars          = array();
    $postvars["tag1"]  = __HPOT_TAG1;
    $postvars["tag2"]  = __HPOT_TAG2;
    $postvars["tag3"]  = __HPOT_TAG3;
    if (!($handle = fopen(__FILE__,"r"))) {
        die("\n<BR>Unable to read contents of ".__FILE__." for hashing<BR>\n");
        return -2;
    }
    $contents = "";
    while (!feof($handle)) {
        $contents .= fread($handle, 8192);
    }
    fclose($handle);
    $postvars["tag4"]   = md5(ereg_replace("[^a-zA-Z0-9]","",$contents));
    $postvars["ip"]    = $_SERVER["REMOTE_ADDR"];
    $postvars["svrn"]  = $_SERVER["SERVER_NAME"];  
    $postvars["svp"]   = $_SERVER["SERVER_PORT"];  
    $postvars["svip"]  = isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : "";
    $postvars["rquri"]   = isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : "";
    $postvars["phpself"] = str_replace(' ','%20',$_SERVER["PHP_SELF"]);
    $postvars["version"] = "php-".phpversion();
    $postvars["sn"]    = str_replace(' ','%20',$_SERVER["SCRIPT_NAME"]);
    $postvars["ref"]   = isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : "";
    $postvars["uagnt"] = isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : "";

    return $postvars;
}

function transcribeResponse(& $response) {
    $settings  = NULL;
    $arr       = explode("\n",$response);
    $isParam   = FALSE;

    
    for ($i=0;list(,$v)=each($arr);$i++) {
        if ($v == "<END>")   $isParam = FALSE;

        if ($isParam) {          
            $pieces = explode("=",$v,2);
            $settings[$pieces[0]] = urldecode($pieces[1]);
        }
        if ($v == "<BEGIN>") $isParam = TRUE;
    }
    

    if ($settings["directives"]) {
        $settings["directives"] = explode(",",$settings["directives"]);
    }

    return $settings;
}


$response  = "";
$request   = "";
$post      = prepareRequest();

for (reset($post);list($k,$v) = each($post);) {
    $request .= "&$k=".urlencode(stripslashes($v));
}
$request    = substr($request,1);
$response   = performRequest($request);
if ($response == "-1") {
    exit();
}
$settings   = transcribeResponse($response);

$directives   = $settings["directives"];
$email        = $settings["email"];
$emailmethod  = $settings["emailmethod"];




?>
<?=(isset($directives[0]) && $directives[0]==1) ? getDocType()    : "" ?>
<?=(isset($settings["injDocType"])) ? $settings["injDocTypeMsg"] : "" ?>
<?=(isset($directives[1]) && $directives[1]==1) ? getHeadHTML1()   : "" ?>
<?=(isset($settings["injHead1HTML"])) ? $settings["injHead1HTMLMsg"] : "" ?>
<?=(isset($directives[8]) && $directives[8]==1) ? getRobotHTML()   : "" ?>
<?=(isset($settings["injRobotHTML"])) ? $settings["injRobotHTMLMsg"] : "" ?>
<?=(isset($directives[9]) && $directives[9]==1) ? getNoCollectHTML()   : "" ?>
<?=(isset($settings["injNoCollectHTML"])) ? $settings["injNoCollectHTMLMsg"] : "" ?>
<?=(isset($directives[1]) && $directives[1]==1) ? getHeadHTML2()   : "" ?>
<?=(isset($settings["injHead2HTML"])) ? $settings["injHead2HTMLMsg"] : "" ?>
<?=(isset($directives[2]) && $directives[2]==1) ? getTopHTML()    : "" ?>
<?=(isset($settings["injTopHTML"])) ? $settings["injTopHTMLMsg"] : "" ?>
<?
   if (isset($settings["actMsgOn"])) { 
       echo $settings["actMsg"]; 
   }
   if (isset($settings["errMsgOn"])) { 
       echo $settings["errMsg"]; 
   }
   if (isset($settings["customMsgOn"])) { 
       echo $settings["customMsg"]; 
   }
?>
<?=(isset($directives[3]) && $directives[3]==1) ? getLegalHTML()  : "" ?>
<?=(isset($settings["injLegalHTML"])) ? $settings["injLegalHTMLMsg"] : "" ?>
<?
   if (isset($settings["altLegalOn"])) { 
       echo $settings["altLegalMsg"]; 
   } 
?>
<?=(isset($directives[4]) && $directives[4]==1) ? getEmailHTML(intval($emailmethod),$email)  : "" ?>
<?=(isset($settings["injEmailHTML"])) ? $settings["injEmailHTMLMsg"] : "" ?>
<?=(isset($directives[5]) && $directives[5]==1) ? getStyleHTML()  : "" ?>
<?=(isset($settings["injStyleHTML"])) ? $settings["injStyleHTMLMsg"] : "" ?>
<?=(isset($directives[6]) && $directives[6]==1) ? getVanityHTML() : "" ?>
<?=(isset($settings["injVanityHTML"])) ? $settings["injVanityHTMLMsg"] : "" ?>
<?
   if (isset($settings["altVanityOn"])) {
        echo $settings["altVanityMsg"];
    }
?>
<?=(isset($directives[7]) && $directives[7]==1) ? getBottomHTML() : "" ?>
<?=(isset($settings["injBottomHTML"])) ? $settings["injBottomHTMLMsg"] : "" ?>
