<?php

//  PROJECT HONEY POT ADDRESS DISTRIBUTION SCRIPT
//  For more information visit: http://www.projecthoneypot.org/
//  Copyright (C) 2004-2010, Unspam Technologies, Inc.
//  
//  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, 25 Jan 2010 07:03:52 -0500
//  For Domain: miki.menek.one.pl
//  
//  

//  *** 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', 'hpr9.projecthoneypot.org');
define('__REQUEST_PORT', '80');
define('__REQUEST_SCRIPT','/cgi/serve.php');
//  
//  *** FINISH CUT HERE ***
//  

define('__HPOT_TAG1',    '75fb6c6b9ee3bd49d7d86a7eb8d57ffb');
define('__HPOT_TAG2',    '0fffdaa8ec2f91e5492e6d0c5d9614c7');
define('__HPOT_TAG3',    '34aa2473d1aa4705f92165addfe297ff');

define('__CLASS_STYLE_1','cripaspafro');
define('__CLASS_STYLE_2','lecrenawiri');

define('__DIV1',         '49g26ocl19ac');

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>millefleurs champaign miki.menek.one.pl intransigent enigma</title>\n</head>\n');
define('__ROBOT1',       '<meta name="robots" content="follow">\n<meta name="robots" content="noarchive">\n<meta name="robots" content="noindex">\n');
define('__NOCOLLECT1',   '<meta name="no-email-collection" content="/">\n');
define('__TOP1',         '<body>\n<div align="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="mailto:');
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',      '</div>\n</body>\n</html>\n');


function getLegalContent() { return '<table cellpadding="0" border="0" cellspacing="0"><tr>\n<td style="font-family: courier, monospace;">&#160; &#160;&#160; <br><font color=white>d</font><br>&#84;he w<br>to y&#111;<br>other<br>Webs&#105;<br>read <br>ag&#101;nt<br>th&#101;m.<br>non-t<br>We&#98;si<br><br><b><font color=white>c</font></b>&nbsp;<b><font color=white>s</font></b>&#160; <br><font color=white>a</font><br>&#83;peci<br>Non-H<br>spide<br>progr<br>autom<br><br>Email<br>It i&#115;<br>alone<br>has a<br>stor&#97;<br>value<br>stori<br>agree<br><br>&#160; &#160;&#160; <br>&nbsp;<br>&#69;ach <br>ag&#97;&#105;n<br>("Jud<br>th&#101; r<br>s&#117;ch <br>&#97;nd p<br>o&#102; f&#101;<br>a&#110;y a<br>Servi<br>the a<br><br><b><font color=white>c</font></b>&#160; &#160; <br>&nbsp;<br>Yo&#117; c<br>&#109;ay<font color=white>k</font>a<br>abuse<br>&#86;isit<br><br>&#86;ISIT<br>PA&#82;TY<br>SUBSE<br></td>\n<td style="font-family: courier, monospace;"><b><font color=white>t</font></b>&#160; &#160; <br><br>ebsit<br>&#117; sub<br>&nbsp;term<br>te yo<br>them <br>s of <br>&nbsp;The <br>ransf<br>te.<br><br>&#160; &#160;&#160; <br><br>al re<br>um&#97;n<!-- european -->&nbsp;<br>rs, b<br>a&#109;s d<br>atica<br><br>&nbsp;ad&#100;r<br><font color=white>h</font>r&#101;co<br>. You<br><font color=white>c</font>valu<br>ge&#44; a<br><font color=white>c</font>of t<br>ng &#116;h<br>ment <br><br>&#160; &#160;&#160; <br><br>p&#97;rt<!-- inequality -->y<br>st th<br>ici&#97;&#108;<br>e&#103;ist<br>laws <br>erfor<br>dera&#108;<br>c&#116;ion<br>ce.<font color=white>e</font>Y<br>bov&#101; <br><br>&#160;&#160; <b><font color=white>f</font></b>&nbsp;<br><br>onsen<br>ppear<!-- semifluid monarchy pushover --><br>.<font color=white>d</font>The<br>ors a<br><br>ORS A<br>&nbsp;O&#82; &#83;<br>QUENT<br></td>\n<td style="font-family: courier, monospace;">&#160; &#160;&#160; <br><br>&#101;<font color=white>p</font>fr&#111;<br>ject <br>&#115; gov<br>u ac&#99;<br>&#99;aref<br>&#116;he<font color=white>h</font>i<br>acces<br>erabl<br><br><br>&#160; &#160;&#160; <br><br>stric<br>Visit<br>ots, <br>esign<br>lly.<br><br>esses<br>gnize<br>&nbsp;ac&#107;&#110;<br>e not<br>nd/or<br>h&#101;&#115;e <br>&#105;&#115; We<br>a&#110;d e<br><br>&#160; &#160;&#160; <br><br>&nbsp;&#97;gre<br>e<font color=white>h</font>o&#116;&#104;<br>&nbsp;A&#99;&#116;i<br>ered <br>are a<br>med e<br>&nbsp;and <br>&nbsp;brou<br>ou<font color=white>a</font>co<br>agree<br><br>&#160; &#160; <b><font color=white>a</font></b><br><br>t<font color=white>g</font>to<font color=white>e</font><br>&nbsp;some<br>&nbsp;Ide&#110;<br>gree<font color=white>i</font><br><br>GRE&#69; <br>E&#78;DI&#78;<br>&nbsp;&#66;REA<br></td>\n<td style="font-family: courier, monospace;">&#160; &#160;&#160; <br><br>m whi<br>&#116;o th<br>&#101;rni&#110;<br>ept &#116;<br>ully.<br>&#110;divi<br>&#115; rig<br>e wit<br><br><br><b>S&#80;&#69;CI</b><br><br>tions<br>&#111;rs. <br>index<br>ed to<br><br><br>&nbsp;on t<br>&#100; &#116;&#104;a<br>owle&#100;<br>&nbsp;l&#101;ss<br>&nbsp;dist<br>addre<br>bs<!-- invention witness good -->it&#101;<br>xp&#114;es<br><br>&nbsp;<b><font color=white>d</font></b>&#160;&#160; <br><br>e&#115; th<br>er in<br>on")<!-- silver incendiary odd -->&nbsp;<br>Admi&#110;<br>pp&#108;ie<br>n&#116;ire<br>state<br>ght a<br>n&#115;ent<br>ment&#46;<br><br>&nbsp;<b><font color=white>s</font></b>&#160; <b><font color=white>s</font></b><br><br>havi&#110;<br>&#119;&#104;ere<br>ti&#102;ie<br>not t<br><br>THAT <br>&#71; ANY<br>CH O&#70;<br></td>\n<td style="font-family: courier, monospace;">&#160; &#160;&#160; <br><br>&#99;&#104; yo<br>e<font color=white>a</font>fo&#108;<br>g &#97;cc<br>hese <br>&nbsp;Any <br>d<!-- smoky integral precocious odds -->&#117;al(<br>h&#116;s g<br>&#104;o&#117;t <br><br><br><b>AL</b>&nbsp;<b>LI</b><br><br>&nbsp;on<font color=white>a</font>a<br>Non&#45;H<br>ers, <br>&nbsp;acce<br><br><br>his s<br>t the<br>ge an<br>&nbsp;t&#104;a&#110;<br>ri&#98;ut<br>s&#115;es.<br>\'s em<br>s&#108;y p<br><br>&#160; &#160;&#160; <br><br>at an<br>&nbsp;conn<br>sha<!-- civilian underthetable -->ll<br>is&#116;ra<br>d to<font color=white>k</font><br>ly &#119;i<br>&nbsp;cour<br>ga<!-- object guiltless -->in&#115;<br>&nbsp;to e<br><br><br>&#160; &#160; <b>R</b><br><br>g you<br>&nbsp;on t<br>r is <br>&#111; use<br><br>H&#65;RVE<br>&nbsp;MES<!-- nurture agriculture president ingratiating finegrained -->S<br>&nbsp;THES<br></td>\n<td style="font-family: courier, monospace;">&#160; <b>TER</b><br><br>u &#97;cc<br>lowin<br>e&#115;s t<br>terms<br>Non-<!-- movie gigantic -->H<br>s) wh<br>rante<br>t&#104;e e<br><br><br><b>CENSE</b><br><br>&nbsp;visi<br>&#117;man <br>robot<br>s<!-- whales -->s, r<br><br><br>ite a<br>se em<br>d agr<br>&nbsp;US<font color=white>t</font>$<br>ion o<br>&nbsp;I&#110;te<br>ail<font color=white>k</font>&#97;<br>rohib<br><br><b>APPLI</b><br><br>y sui<br>ect&#105;o<br>&nbsp;be g<br>tive <br>agree<br>thin<font color=white>f</font><br>ts wi<br>t him<br>&#108;e&#99;tr<br><br><br><b>ECORD</b><br><br>r Int<br>h&#105;s<font color=white>i</font>p<br>uniqu<br>&nbsp;this<br><br>STIN&#71;<br>AGE(S<br>E TER<br></td>\n<td style="font-family: courier, monospace;"><b>MS</b>&nbsp;<b>AN</b><br><br>essed<br>g<font color=white>d</font>con<br>&#111; t<!-- direct tender rebel adjacent encouragement -->&#104;e<br>&nbsp;and <br>uman <br>o<font color=white>d</font>c&#111;n<br>d to <br>&#120;pres<br><br><br>&nbsp;<b>R&#69;&#83;T</b><br><br>to&#114;\'s<br>Vis&#105;&#116;<br>s, cr<br>ead, <br><br><br>re co<br>ail a<br>ee th<br>50. Y<br>f the<br>ntion<br>&#100;dres<br>ited&#46;<br><br><b>C&#65;BLE</b><br><br>t, ac<br>n wit<br>&#111;vern<br>Cont<!-- county doctrinaire -->a<br>&#109;ents<br>th&#101; A<br>thi&#110; <br>&nbsp;&#105;n &#99;<br>onic <br><br><br><b>S</b>&nbsp;<b>OF</b>&nbsp;<br><br>ern&#101;&#116;<br>a&#103;e<!-- geography minor board foxy --><font color=white>s</font>(<br>el&#121; m<br>&nbsp;addr<br><br>, GAT<br>) TO <br>MS &#79;F<br></td>\n<td style="font-family: courier, monospace;"><b>D<font color=white>e</font>CON</b><br><br>&nbsp;this<br>ditio<br>&nbsp;Webs<br>condi<br>Visit<br>tr&#111;ls<br>y&#111;u<!-- surrogate languid familial -->&nbsp;u<br>&#115; &#119;ri<br><br><br><b>&#82;ICTI</b><br><br>&nbsp;lic<!-- goshawks democratic genius scintillating -->e<br>ors i<br>awler<br>compi<br><br><br>nside<br>&#100;dr&#101;s<br>at<font color=white>a</font>ea<br>ou fu<br>se ad<br>a&#108;<font color=white>p</font>co<br>s&#101;s i<br><br><br>&nbsp;<b>LAW</b>&nbsp;<br><br>tion <br>h or <br>e&#100;<font color=white>e</font>by<br>ct (t<br>&nbsp;betw<br>dmin <br>th&#101; A<br>onnec<br>se&#114;vi<br><br><br><b>VI<!-- mandatory impartial conterminous shrewish -->S<!-- swans subsidy -->IT</b><br><br>&nbsp;Pr&#111;t<br>&#116;he "<br>atche<br>ess &#102;<br><br>HER&#73;N<br>&#84;H&#69; I<br>&nbsp;SERV<br></td>\n<td style="font-family: courier, monospace;"><b>DITIO</b><br><br>&nbsp;ag&#114;&#101;<br>ns<!-- hemisphere horse -->.<font color=white>g</font>T<br>ite. <br>tions<br>o&#114;s &#116;<br>, aut<br>nder<font color=white>i</font><br>t&#116;en <br><br><br><b>ON<!-- icky -->S</b>&nbsp;<b>F</b><br><br>nse &#116;<br>ncl&#117;d<br>s, h&#97;<br>le<font color=white>p</font>or<br><br><br>red<font color=white>i</font>p<br>ses<!-- administration boorish yokel -->&nbsp;&#97;<br>ch e&#109;<br>rth<!-- multivalent egg -->er<br>d&#114;ess<br>llect<br>s re&#99;<br><br><br><b>AND</b>&nbsp;<b>J</b><br><br>or<font color=white>p</font>&#112;r<br>ari&#115;i<br>&nbsp;the <br>he "A<br>een<font color=white>o</font>A<br>Sta&#116;e<br>dmi&#110; <br>tion <br>ce of<br><br><br><b>OR</b>&nbsp;<b>US</b><br><br>&#111;c&#111;l <br>Id&#101;nt<br>d to <br>&#111;r an<br><br>G&#44; ST<br>DENTI<br>I&#67;E&#46;<br></td>\n<td style="font-family: courier, monospace;"><b>NS</b>&nbsp;<b>OF</b><br><br>ement<br>he<!-- stark cardiologists known sematic university -->se <br>&#66;y<font color=white>s</font>vi<br><font color=white>t</font>(t&#104;&#101;<br>&#111; the<br>ho&#114;s <br>&#116;he<font color=white>p</font>T<br>permi<br><br><br><b>OR</b>&nbsp;<b>NO</b><br><br>o acc<br>e, bu<br>rvest<br><font color=white>e</font>gath<br><br><br>ropri<br>re pr<br>ail a<br>&nbsp;agre<br>es su<br>ion&#44; <br>o&#103;niz<br><br><br><b>U&#82;ISD</b><br><br>o&#99;e&#101;d<br>n&#103;<font color=white>o</font>f&#114;<br>law o<br>dmi&#110; <br>d&#109;in <br>. You<br>&#83;tate<br>&#119;ith <br>&nbsp;proc<br><br><br><b>E</b>&nbsp;<b>A&#78;D</b><br><br>addre<br>ifi&#101;r<br>your <br>y rea<!-- underfoot ruddy strawhat extramarital aslope --><br><br>ORI&#78;G<br>&#70;IER <br><br></td>\n<td style="font-family: courier, monospace;">&nbsp;<b>USE</b>&nbsp;<br><br>&nbsp;&#40;"<!-- initial parotid gun -->th<br>terms<br>sitin<br>&nbsp;"&#84;er<br>&nbsp;We&#98;s<br>or<font color=white>d</font>ot<br>&#101;rms <br>ss&#105;on<br><br><br><b>N-H&#85;&#77;</b><br><br>ess t<br>t are<br>e&#114;&#115;, <br>er co<br><br><br>eta&#114;y<br>ovide<br>dd&#114;e&#115;<br>e th&#97;<br>bstan<br>h<!-- diva fashionable -->arve<br>ed as<br><br><br><b>IC&#84;&#73;O</b><br><br>ing<font color=white>d</font>b<br>om<font color=white>k</font>th<br>f the<br>St&#97;te<br>Sta&#116;e<br><font color=white>p</font>cons<br>&#46; You<br>b&#114;e&#97;c<br>&#101;ss r<br><br><br>&nbsp;<b>&#65;B&#85;S</b><br><br>ss re<br>") if<br>Inter<br>so&#110;.<br><br>, TR&#65;<br>CON&#83;T<br><br></td>\n<td style="font-family: courier, monospace;"><br><br>e<font color=white>t</font>Web<br>&nbsp;are <br>g (in<br>ms of<br>&#105;te &#115;<br>herwi<br>of Se<br>&nbsp;o&#102; t<br><br><br><b>A&#78;</b>&nbsp;<b>VI</b><br><br>he We<br><font color=white>p</font>not <br>or an<br>n&#116;e&#110;t<br><br><br><font color=white>s</font>inte<br>d for<br>&#115; the<br>t t&#104;e<br>tiall<br>sting<br>&nbsp;a vi<br><br><br><b>N</b>&nbsp;<br><br>r&#111;u<!-- supplies statistical -->gh<br>e Ter<br>&nbsp;s&#116;at<br>")<font color=white>t</font>f&#111;<br>&nbsp;res&#105;<br>ent t<br>&nbsp;cons<br>hes o<br>egard<br><br><br><b>&#69;</b>&nbsp;<br><br>corde<br>&nbsp;we s<br>n&#101;t P<br><br><br>NSFER<br>ITUT&#69;<br><br></td>\n<td style="font-family: courier, monospace;"><br><br>site"<br>in ad<br><font color=white>h</font>a&#110;y<font color=white>a</font><br>&nbsp;S&#101;rv<br>hall <br>se &#109;a<br>r&#118;ice<br>he ow<br><br><br><b>SITOR</b><br><br>bsi&#116;e<br>limit<br>y oth<br>&nbsp;f&#114;om<br><br><br>&#108;lect<br>&nbsp;huma<br>&nbsp;Webs<br>&nbsp;co&#109;p<br>y &#100;im<br>, g&#97;t<br>olati<br><br><br><br><br>t<font color=white>c</font>by <br>m&#115; of<br>e of <br>r the<br>de&#110;ts<br>o<font color=white>t</font>&#116;he<br>ent t<br>f the<br>&#105;ng a<br><br><br><br><br>d. An<br>uspec<br>rotoc<br><br><br>RING <br>S &#65;N <br><br></td>\n<td style="font-family: courier, monospace;"><br><br>)<font color=white>i</font>is <br>d&#105;&#116;&#105;o<br>manne<br>i&#99;e"&#41;<br>&#98;e<font color=white>f</font>co<br>&#107;e&#115;<font color=white>k</font>u<br>&nbsp;a&#114;e<br>ner &#111;<br><br><br><b>&#83;<font color=white>t</font></b><br><br>&nbsp;appl<br>ed to<br>er co<br>&nbsp;the <br><br><br>ual p<br>n vis<br>ite &#99;<br>&#105;lati<br>i&#110;i&#115;h<br>heri&#110;<br>on o&#102;<br><br><br><br><br>such <br>&nbsp;Serv<br>re&#115;id<br>&nbsp;Webs<br>&nbsp;ente<br>&nbsp;ju&#114;i<br>o the<br>se Te<br>c&#116;ion<br><br><br><br><br>&nbsp;emai<br>t &#112;&#111;&#116;<br>ol &#97;d<br><br><br>T&#79;<font color=white>a</font>&#65; <br>ACCEP<br><br></td>\n<td style="font-family: courier, monospace;"><br><br>p&#114;ovi<br>&#110;<font color=white>d</font>to <br>r) th<br>. Ple<br>&#110;si&#100;e<br>se of<br><br>f the<br><br><br><br><br>y to<br>, web<br>mpute<br>&#87;ebsi<br><br><br>ro&#112;er<br>itor&#115;<br>ontai<br>on&#44;<br>es th<br>g&#44; an<br>&nbsp;th&#105;s<br><br><br><br><br>party<br>i&#99;e<br>ence <br>i&#116;e a<br>re&#100; i<br>sd&#105;ct<br><font color=white>t</font>venu<br>rms o<br>s und<br><br><br><br><br>l add<br>entia<br>dress<br><br><br>TH&#73;&#82;D<br>TANCE<br><br></td>\n<td style="font-family: courier, monospace;"><br><br>ded<br>a&#110;y<br>e<br>ase<br>red<br><br><br><br><br><br><br><br><br><br>r<br>t<!-- lonesome -->&#101;<br><br><br>&#116;y.<br><br>ns<br><br>e<br>d/o<!-- ripe economy -->r<br><br><br><br><br><br><br><br>of<br>s<br>nt&#111;<br>ion<br>e in<br>f<br>er<br><br><br><br><br>ress<br>l<br>.<br><br><br><br><font color=white>g</font>A&#78;D<br><br></td>\n</tr>\n</table>\n<br>'; }


?><?php 

// 
// PROXY SUPPORT
//  
// This honey pot script supports Proxies. If your webserver requires a proxy
// for outbound connections you may configure this honey pot's settings to use
// a proxy.
//
// For more information, visit: 
//     http://www.projecthoneypot.org/settings_help.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(__EMAIL10A.$m.__EMAIL10B.$m.__EMAIL10C); 
}
function getLegalHTML()   { return formatHTML(__LEGAL1.(getLegalContent()).__LEGAL2); }
function getStyleHTML()   { return formatHTML(__STYLE1); }
function getVanityHTML()  { return formatHTML(__VANITY1); }
function getBottomHTML()  { return formatHTML(__BOTTOM1); }

function readSettings() {
    $settings      = NULL;
    $settings_file = dirname(__FILE__)."/phpot_settings.php";

    if (is_file($settings_file) && is_readable($settings_file)) {
        $fp = fopen($settings_file,"r");
        $contents = "";
        while (!feof($fp)) {
            $contents .= fread($fp, 8192);
        }
        fclose($fp);

        $lines = explode("\n",$contents);
        foreach ($lines as $line) {
            if (trim($line) !== "") {
                list ($setting, $value) = @explode(":",$line,2);
                switch ($setting) {
                case "proxy_host": 
                    $settings["sock_host"] = trim($value);
                    break;
                case "proxy_port":
                    $settings["sock_port"] = trim($value);
                    break;
                }
                if (trim($value) !== "") {
                    $settings[trim($setting)] = trim($value);
                }
            }
        }
    }

    if (isset($settings["proxy_host"]) && isset($settings["proxy_port"]) && !isset($settings["use_proxy"])) {
        $settings["use_proxy"] = "1";
    } else {
        $settings["use_proxy"] = "0";
    }

    if (isset($settings["proxy_user"]) && isset($settings["proxy_pass"]) && !isset($settings["proxy_auth"])) {
        $settings["proxy_auth"] = "basic";
    } else {
        $settings["proxy_auth"] = "none";
    }

    if (!isset($settings["sock_host"])) $settings["sock_host"] = __REQUEST_HOST;
    if (!isset($settings["sock_port"])) $settings["sock_port"] = __REQUEST_PORT;

    return $settings;
}

function performRequest($request) {
    $response = "";

    $settings = readSettings();

    if ($settings["use_proxy"] == "1") {
        // POST via proxy
        $post_url = "http://".__REQUEST_HOST.":".__REQUEST_PORT.__REQUEST_SCRIPT;

        $head  = "POST ".$post_url." HTTP/1.0\r\n";
        //$head .= "Host: ".__REQUEST_HOST."\r\n";
        $head .= "User-Agent: PHPot ".__HPOT_TAG2."\r\n";
        if ($settings["proxy_auth"] == "basic") {
            $head .= "Proxy-Authorization: Basic ".base64_encode($settings["proxy_user"].":".$settings["proxy_pass"])."\r\n";
        }
        $head .= "Cache-Control: no-store, no-cache\r\n";
        $head .= "Accept: */*\r\n";
        $head .= "Pragma: no-cache\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";

    } else {
        // POST directly
        $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 ($settings["sock_host"], $settings["sock_port"], $errno, $errstr, 20);

    if (!$fd) {
        // Socket Error
        die("\n<BR>Unable to contact the Server. Are outbound connections disabled? (If a proxy is required for outbound traffic, you may configure the honey pot to use a proxy. For instructions, visit http://www.projecthoneypot.org/settings_help.php)<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(preg_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"] : "";
    if (isset($_POST) && count($_POST) > 0) {
        $postvars["has_post"] = count($_POST);
        for (reset($_POST);list($k,$v) = each($_POST);) {
            $postvars["post|".$k] = $v;
        }
        reset($_POST);
    }
    if (isset($_GET) && count($_GET) > 0) {
        $postvars["has_get"] = count($_GET);
        for (reset($_GET);list($k,$v) = each($_GET);) {
            $postvars["get|".$k] = $v;
        }
        reset($_GET);
    }

    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;
}

header("Cache-Control: no-store, no-cache");
header("Pragma: no-cache");

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

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

$directives   = $settings["directives"];
$email        = isset($settings["email"]) ? $settings["email"] : "";
$emailmethod  = isset($settings["emailmethod"]) ? $settings["emailmethod"] : 0;




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