3 // PROJECT HONEY POT ADDRESS DISTRIBUTION SCRIPT
4 // For more information visit: http://www.projecthoneypot.org/
5 // Copyright (C) 2004-2013, Unspam Technologies, Inc.
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 2 of the License, or
10 // (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22 // If you choose to modify or redistribute the software, you must
23 // completely disconnect it from the Project Honey Pot Service, as
24 // specified under the Terms of Service Use. These terms are available
27 // http://www.projecthoneypot.org/terms_of_service_use.php
29 // The required modification to disconnect the software from the
30 // Project Honey Pot Service is explained in the comments below. To find the
31 // instructions, search for: *** DISCONNECT INSTRUCTIONS ***
33 // Generated On: Wed, 20 Feb 2013 07:19:08 -0800
34 // For Domain: www.wernis4mails.de
38 // *** DISCONNECT INSTRUCTIONS ***
40 // You are free to modify or redistribute this software. However, if
41 // you do so you must disconnect it from the Project Honey Pot Service.
42 // To do this, you must delete the lines of code below located between the
43 // *** START CUT HERE *** and *** FINISH CUT HERE *** comments. Under the
44 // Terms of Service Use that you agreed to before downloading this software,
45 // you may not recreate the deleted lines or modify this software to access
46 // or otherwise connect to any Project Honey Pot server.
48 // *** START CUT HERE ***
50 define('__REQUEST_HOST', 'hpr1.projecthoneypot.org');
51 define('__REQUEST_PORT', '80');
52 define('__REQUEST_SCRIPT','/cgi/serve.php');
54 // *** FINISH CUT HERE ***
57 define('__HPOT_TAG1', '7b8a66bc336b69c9af3e1af568a2b17d');
58 define('__HPOT_TAG2', 'd092e61c32a25555d8c609de2570ed82');
59 define('__HPOT_TAG3', '34aa2473d1aa4705f92165addfe297ff');
61 define('__CLASS_STYLE_1','slahocla');
62 define('__CLASS_STYLE_2','boxuc');
64 define('__DIV1', 'stac');
66 define('__VANITY_L1', 'MEMBER OF PROJECT HONEY POT');
67 define('__VANITY_L2', 'Spam Harvester Protection Network');
68 define('__VANITY_L3', 'provided by Unspam');
70 define('__DOC_TYPE1', '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n');
71 define('__HEAD1', '<html>\n<head>\n');
72 define('__HEAD2', '<title>Www.wernis4mails.de Shoal</title>\n</head>\n');
73 define('__ROBOT1', '<meta name="robots" content="noindex">\n<meta name="robots" content="noarchive,follow">\n');
74 define('__NOCOLLECT1', '<meta name="no-email-collection" content="/">\n');
75 define('__TOP1', '<body>\n<div id="wellgroomed" align="center">\n');
76 define('__EMAIL1A', '<a href="mailto:');
77 define('__EMAIL1B', '" style="display: none;">');
78 define('__EMAIL1C', '</a>');
79 define('__EMAIL2A', '<a href="mailto:');
80 define('__EMAIL2B', '" style="display:none;">');
81 define('__EMAIL2C', '</a>');
82 define('__EMAIL3A', '<a style="display: none;" href="mailto:');
83 define('__EMAIL3B', '">');
84 define('__EMAIL3C', '</a>');
85 define('__EMAIL4A', '<a style="display:none;" href="mailto:');
86 define('__EMAIL4B', '">');
87 define('__EMAIL4C', '</a>');
88 define('__EMAIL5A', '<a href="mailto:');
89 define('__EMAIL5B', '"></a>');
90 define('__EMAIL5C', '..');
91 define('__EMAIL6A', '<span style="display: none;"><a href="mailto:');
92 define('__EMAIL6B', '">');
93 define('__EMAIL6C', '</a></span>');
94 define('__EMAIL7A', '<span style="display:none;"><a href="mailto:');
95 define('__EMAIL7B', '">');
96 define('__EMAIL7C', '</a></span>');
97 define('__EMAIL8A', '<!-- <a href="mailto:');
98 define('__EMAIL8B', '">');
99 define('__EMAIL8C', '</a> -->');
100 define('__EMAIL9A', '<div id="'.__DIV1.'"><a href="mailto:');
101 define('__EMAIL9B', '">');
102 define('__EMAIL9C', '</a></div><br><script language="JavaScript" type="text/javascript">document.getElementById(\''.__DIV1.'\').innerHTML=\'\';</script>');
103 define('__EMAIL10A', '<a href="mailto:');
104 define('__EMAIL10B', '"><!-- ');
105 define('__EMAIL10C', ' --></a>');
106 define('__LEGAL1', '');
107 define('__LEGAL2', '\n');
108 define('__STYLE1', '\n<style>a.'.__CLASS_STYLE_1.'{color:#FFF;font:bold 10px arial,sans-serif;text-decoration:none;}</style>');
109 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');
110 define('__BOTTOM1', '</div>\n</body>\n</html>\n');
113 function getLegalContent() { return '<table cellspacing="0" border="0" cellpadding="0">\n<tr>\n<td><font face="courier"> <br> <br>The webs<br>to<font color=white>h</font>you s<br>other te<br>Website <br>read the<br>agents o<br>them.<font color=white>i</font>Th<br>non-tran<br>Website.<br><br> <br> <br>Special <br>Non-Huma<br>spiders,<br>p<!-- conscience dealer waiting wicked -->rograms<br>automati<br><br>Email ad<br>It is re<br>alone. Y<br>has a va<br>storage,<br>value of<br>storing<!-- pathological twopenny square major promotion --> <br>agreemen<br><br> <br> <br>Each par<br>against <br>("Judici<br>the regi<br>such law<br>and perf<br>of feder<br>any acti<br>Service.<br>the abov<br><br> <b><font color=white>f</font><font color=white>c</font></b> <br> <br>You<font color=white>e</font>cons<br>may appe<br>abuse. T<br>Visitors<br><br>VISITORS<br>PARTY OR<br>SUBSEQUE<br></font></td>\n<td><font face="courier"><b><font color=white>k</font></b> <br><br>ite<font color=white>g</font>from<br>ubject t<br>rms g<!-- dress classic directionless comatose letter -->ove<br>you<font color=white>p</font>acce<br>m carefu<br>f the in<br>e access<br>sferable<br><br><br> <b>S</b><br><br>restrict<br>n Visito<br><font color=white>f</font>bots,<font color=white>i</font>i<br> designe<br>cally.<br><br>dresses <br>cognized<br>ou<font color=white>g</font>ackno<br>lue not<font color=white>o</font><br> and/or <br> th<!-- endless productive neophyte transparent hairline -->ese a<br>this Web<br>t and ex<br><br> <b><font color=white>h</font></b> <br><br>ty<font color=white>t</font>agree<br>the othe<br>al Actio<br>stered A<br>s are ap<br>ormed en<br>al and s<br>on<font color=white>t</font>broug<br> You con<br>e agreem<br><br> <br><br>ent to h<br>ar somew<br>he Ident<!-- choral unchristian psychotropic elderly newfangled --><br> agree n<br><br> AGREE T<!-- crocodiles shortwaisted --><br> SENDING<br>NT BREA<!-- exchange -->C<br></font></td>\n<td><font face="courier"> <b><font color=white>f</font></b> <br><br> which y<br>o<font color=white>o</font>the fo<br>rning ac<br>pt these<br>lly<!-- charlatan workstudy coat mug -->. Any<br>di<!-- stringendo -->vidual<br><font color=white>e</font>rights <br> without<br><br><br><b>PECIAL</b> <b>L</b><br><br>ions on <br>rs. Non-<br>ndexers,<br>d to acc<br><br><br>on t<!-- grandfather impressive prisoner boundless -->his <br><font color=white>k</font>that th<br>wledge a<br>less tha<br>distribu<br>ddresses<br>site\'s e<br>pressly <br><br> <b><font color=white>p</font></b> <b><font color=white>o</font></b> <b><font color=white>s</font></b><br><br>s<font color=white>e</font>that a<br>r in con<br>n") shal<br>dministr<br>plied to<br>tirely<font color=white>e</font>w<br>tate cou<br>ht<font color=white>o</font>again<br>sent to <br>ent.<br><br> <b><font color=white>p</font></b><br><br>aving yo<br>here on <br>ifier is<br>ot<font color=white>c</font>to us<br><br>HAT HARV<br> ANY MES<br>H OF<font color=white>f</font>THE<br></font></td>\n<td><font face="courier"> <b>TERM<!-- encroute climate venomous vitamin neighborly -->S</b><br><br>ou acc<!-- standup agriculture perfunctory puny -->es<br>l<!-- thought divalent toilworn -->lowing <br>cess to<font color=white>h</font><br> terms a<br> Non-Hum<br>(s) who <br>granted <br> the exp<br><br><br><b>ICENSE</b> <b>R</b><br><br>a visito<br>Human Vi<br> robots,<br>ess, rea<br><br><br>s<!-- management sigh -->ite are<br>ese emai<br>nd agree<br>n US $5<!-- balance journal -->0<!-- division socialist alloy finedrawn ballet --><br>tion of <br>. Intent<br>mail add<br>prohibit<br><br><b><font color=white>i</font>APPLICA</b><br><br>ny<font color=white>d</font>suit,<br>nectio<!-- resultant ownership -->n<font color=white>e</font><br>l be gov<br>ative Co<br> agreeme<br>ithin<!-- workingclass fun --> th<br>rts with<br>st him i<br>electron<br><br><br><b>RECORDS</b> <br><br>ur Inter<br>this pag<br> uniquel<br>e<font color=white>c</font>this a<br><br>ESTING, <br>SAGE(S) <br>SE TERMS<br></font></td>\n<td><font face="courier"> <b>AND</b> <b>CON</b><br><br>sed this<br>conditio<br>the Webs<br>nd condi<br>an Visit<br>controls<br>to you u<br>ress<font color=white>d</font>wri<br><br><br><b>ESTRICTI</b><br><br>r\'s<font color=white>d</font>lice<br>sitors i<br> crawler<br>d, compi<br><br><br> conside<br>l<font color=white>e</font>addres<br> that ea<br>. You fu<br>these<font color=white>k</font>ad<br>ional<font color=white>k</font>co<br>resses i<br>ed.<br><br><b>BLE</b> <b>LAW</b> <br><br> action <br>with<font color=white>h</font>or <br>erned by<br>ntact (t<br>nts betw<br>e Admin <br>in the A<br>n connec<!-- racism revision animato --><br>ic servi<br><br><br><b>OF</b> <b>VISIT</b><br><br>net Prot<br>e (t<!-- oxyhydrogen profession fleshcolored -->he "<br>y matche<br>ddress f<br><br>GATHERIN<br>TO THE I<br> OF SERV<br></font></td>\n<td><font face="courier"><b>DITIONS<font color=white>i</font></b><br><br> agreeme<br>ns.<font color=white>p</font>Thes<br>ite. By <br>tions (t<br>ors<font color=white>i</font>to t<br>,<font color=white>o</font>author<br>nder the<br>tten per<br><br><br><b>ONS</b> <b>FOR</b> <br><br>nse to<font color=white>s</font>a<br>nclude, <br>s, harve<br>le<font color=white>c</font>or ga<br><br><br>red<font color=white>e</font>prop<br>ses are <br>ch email<br>rther ag<br>dresses <br>llection<br>s<font color=white>p</font>recogn<br><br><br><b>AND</b> <b>JURI</b><br><br>or proce<br>arising <br> the law<br>he "Admi<br>een Admi<br>State.<font color=white>e</font>Y<br>dmin Sta<br>tion wit<br>ce of pr<br><br><br><b>OR</b> <b>USE</b> <b>A</b><br><br>ocol add<br>Identifi<br>d to you<br>or<font color=white>p</font>any<font color=white>h</font>r<br><br>G, STORI<br>DENTIFIE<br>ICE.<br></font></td>\n<td><font face="courier"><b>OF</b> <b>USE</b> <br><br>nt ("the<br>e terms <br>visiting<br>he "Term<br>he Websi<!-- passenger prehistoric oscine --><br>s or oth<br> Terms o<br>mission <br><br><br><b>NON-HUMA</b><br><br>ccess th<br>but are<font color=white>d</font><br>sters,<font color=white>s</font>o<!-- turbid aware trustee smelly wanting --><br>ther con<br><br><br>rietary<font color=white>d</font><br>provided<br> address<br>ree that<br>substant<br>, harves<br>ized as<font color=white>e</font><br><br><br><b>SDICTION</b><br><br>eding br<br>from the<br> of the <br>n State"<br>n<font color=white>e</font>State <br>ou conse<br>te. You <br>h breach<br>ocess re<br><br><br><b>ND</b> <b>ABUSE</b><br><br>ress rec<br>er") if <br>r Intern<br>eason.<br><br>NG, TRAN<br>R CONSTI<br><br></font></td>\n<td><font face="courier"><br><br> Website<br>are in a<br><font color=white>p</font>(in any<br>s of<font color=white>t</font>Ser<br>te shall<br>erwise<font color=white>d</font>m<br>f Servic<br>of the<font color=white>s</font>o<br><br><br><b>N</b> <b>VISITO</b><br><br>e Websit<br>not limi<br>r any ot<br>tent fro<br><br><br>intellec<br> for hum<br> the Web<br> the com<!-- mathematicians tomato --><br>ially di<br>ting, ga<br>a violat<br><br><br> <br><br>ought by<br> Terms o<br>state of<br>) for th<br>resident<br>nt to th<br>consent <br>es of<font color=white>t</font>t<!-- can -->h<br>garding <br><br><br> <br><br>orded. A<br>we suspe<br>et Proto<br><br><br>SFERRING<br>TUTES<font color=white>p</font>AN<br><br></font></td>\n<td><font face="courier"><br><br>") is pr<!-- butterfly --><br>dditio<!-- scorpioid -->n <br> m<!-- beefy consanguineous -->anner)<br>vice"). <br> be cons<br>akes use<br>e are<br>wner of <br><br><br><b>RS</b> <br><br>e ap<!-- little black service -->ply <br>ted<!-- reeltoreel penitent --> to, <br>her comp<br>m the We<br><br><br>tual pro<br>an visit<br>site con<br>pilation<br>minishes<br>thering,<br>ion of t<br><br><br><br><br> such pa<br>f Servic<br> reside<!-- atingle tenuous -->n<br>e Websit<br>s entere<!-- attendant --><br>e<font color=white>i</font>jurisd<br>to the v<br>ese Term<br>actions <br><br><br><br><br>n<font color=white>c</font>email <br>ct poten<br>col addr<br><br><br> TO A TH<br> ACCEPTA<br><br></font></td>\n<td><font face="courier"><br><br>ovided<br>to a<!-- maintenance grumpy flying offtrack recipient -->ny<br> th<!-- family left defective -->e<br>Please<br>ide<!-- uncial -->red<br> of<br><br>the<br><br><br><br><br>to<br>web<br>uter<br>bsite<br><br><br>perty.<br>ors<br>tains<br>,<br> the<br> and/or<br>his<!-- excitement complex churchly herd insurgent --><br><br><br><br><br>r<!-- doubleblind lyrate -->ty<br>e<br>ce of<br>e as<br>d into<br>iction<br>enue<font color=white>e</font>in<br>s of<br>under<!-- daddy --><br><br><br><br><br>address<br>tial<br>ess.<br><br><br>IRD<br>NCE AND<br><br></font></td>\n</tr>\n</table>\n<br>'; }
121 // This honey pot script supports Proxies. If your webserver requires a proxy
122 // for outbound connections you may configure this honey pot's settings to use
125 // For more information, visit:
126 // http://www.projecthoneypot.org/settings_help.php
132 function formatHTML($s) {
133 return str_replace('\n',"\n",$s);
136 function getDocType() { return formatHTML(__DOC_TYPE1); }
137 function getHeadHTML1() { return formatHTML(__HEAD1); }
138 function getRobotHTML() { return formatHTML(__ROBOT1); }
139 function getNoCollectHTML() { return formatHTML(__NOCOLLECT1); }
140 function getHeadHTML2() { return formatHTML(__HEAD2); }
141 function getTopHTML() { return formatHTML(__TOP1); }
142 function getEmailHTML($method,$m) {
145 case 1: return formatHTML(__EMAIL1A.$m.__EMAIL1B.$m.__EMAIL1C);
146 case 2: return formatHTML(__EMAIL2A.$m.__EMAIL2B.$m.__EMAIL2C);
147 case 3: return formatHTML(__EMAIL3A.$m.__EMAIL3B.$m.__EMAIL3C);
148 case 4: return formatHTML(__EMAIL4A.$m.__EMAIL4B.$m.__EMAIL4C);
149 case 5: return formatHTML(__EMAIL5A.$m.__EMAIL5B);
150 case 6: return formatHTML(__EMAIL6A.$m.__EMAIL6B.$m.__EMAIL6C);
151 case 7: return formatHTML(__EMAIL7A.$m.__EMAIL7B.$m.__EMAIL7C);
152 case 8: return formatHTML(__EMAIL8A.$m.__EMAIL8B.$m.__EMAIL8C);
153 case 9: return formatHTML(__EMAIL9A.$m.__EMAIL9B.$m.__EMAIL9C);
155 return formatHTML(__EMAIL10A.$m.__EMAIL10B.$m.__EMAIL10C);
157 function getLegalHTML() { return formatHTML(__LEGAL1.(getLegalContent()).__LEGAL2); }
158 function getStyleHTML() { return formatHTML(__STYLE1); }
159 function getVanityHTML() { return formatHTML(__VANITY1); }
160 function getBottomHTML() { return formatHTML(__BOTTOM1); }
162 function readSettings() {
164 $settings_file = dirname(__FILE__)."/phpot_settings.php";
166 if (is_file($settings_file) && is_readable($settings_file)) {
167 $fp = fopen($settings_file,"r");
170 $contents .= fread($fp, 8192);
174 $lines = explode("\n",$contents);
175 foreach ($lines as $line) {
176 if (trim($line) !== "") {
177 list ($setting, $value) = @explode(":",$line,2);
180 $settings["sock_host"] = trim($value);
183 $settings["sock_port"] = trim($value);
186 if (trim($value) !== "") {
187 $settings[trim($setting)] = trim($value);
193 if (isset($settings["proxy_host"]) && isset($settings["proxy_port"]) && !isset($settings["use_proxy"])) {
194 $settings["use_proxy"] = "1";
196 $settings["use_proxy"] = "0";
199 if (isset($settings["proxy_user"]) && isset($settings["proxy_pass"]) && !isset($settings["proxy_auth"])) {
200 $settings["proxy_auth"] = "basic";
202 $settings["proxy_auth"] = "none";
205 if (!isset($settings["sock_host"])) $settings["sock_host"] = __REQUEST_HOST;
206 if (!isset($settings["sock_port"])) $settings["sock_port"] = __REQUEST_PORT;
211 function performRequest($request) {
214 $settings = readSettings();
216 if ($settings["use_proxy"] == "1") {
218 $post_url = "http://".__REQUEST_HOST.":".__REQUEST_PORT.__REQUEST_SCRIPT;
220 $head = "POST ".$post_url." HTTP/1.0\r\n";
221 //$head .= "Host: ".__REQUEST_HOST."\r\n";
222 $head .= "User-Agent: PHPot ".__HPOT_TAG2."\r\n";
223 if ($settings["proxy_auth"] == "basic") {
224 $head .= "Proxy-Authorization: Basic ".base64_encode($settings["proxy_user"].":".$settings["proxy_pass"])."\r\n";
226 $head .= "Cache-Control: no-store, no-cache\r\n";
227 $head .= "Accept: */*\r\n";
228 $head .= "Pragma: no-cache\r\n";
229 $head .= "Content-Type: application/x-www-form-urlencoded\r\n";
230 $head .= "Content-Length: ".strlen($request)."\r\n";
231 $head .= "Connection: close\r\n\r\n";
235 $head = "POST ".__REQUEST_SCRIPT." HTTP/1.1\r\n";
236 $head .= "Host: ".__REQUEST_HOST."\r\n";
237 $head .= "User-Agent: PHPot ".__HPOT_TAG2."\r\n";
238 $head .= "Content-Type: application/x-www-form-urlencoded\r\n";
239 $head .= "Content-Length: ".strlen($request)."\r\n";
240 $head .= "Connection: close\r\n\r\n";
245 $fd = @fsockopen ($settings["sock_host"], $settings["sock_port"], $errno, $errstr, 20);
249 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");
253 fputs($fd,$head.$request);
255 $response .= fgets($fd,4096);
263 function prepareRequest() {
265 $postvars["tag1"] = __HPOT_TAG1;
266 $postvars["tag2"] = __HPOT_TAG2;
267 $postvars["tag3"] = __HPOT_TAG3;
268 if (!($handle = fopen(__FILE__,"r"))) {
269 die("\n<BR>Unable to read contents of ".__FILE__." for hashing<BR>\n");
273 while (!feof($handle)) {
274 $contents .= fread($handle, 8192);
277 $postvars["tag4"] = md5(preg_replace("/[^a-zA-Z0-9]/","",$contents));
278 $postvars["ip"] = $_SERVER["REMOTE_ADDR"];
279 $postvars["svrn"] = $_SERVER["SERVER_NAME"];
280 $postvars["svp"] = $_SERVER["SERVER_PORT"];
281 $postvars["svip"] = isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : "";
282 $postvars["rquri"] = isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : "";
283 $postvars["phpself"] = str_replace(' ','%20',$_SERVER["PHP_SELF"]);
284 $postvars["version"] = "php-".phpversion();
285 $postvars["sn"] = str_replace(' ','%20',$_SERVER["SCRIPT_NAME"]);
286 $postvars["ref"] = isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : "";
287 $postvars["uagnt"] = isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : "";
288 if (isset($_POST) && count($_POST) > 0) {
289 $postvars["has_post"] = count($_POST);
290 for (reset($_POST);list($k,$v) = each($_POST);) {
291 $postvars["post|".$k] = $v;
295 if (isset($_GET) && count($_GET) > 0) {
296 $postvars["has_get"] = count($_GET);
297 for (reset($_GET);list($k,$v) = each($_GET);) {
298 $postvars["get|".$k] = $v;
302 if (isset($_SERVER) && count($_SERVER) > 0) {
304 for (reset($_SERVER);list($k,$v) = each($_SERVER);) {
305 if ($k !== "HTTP_COOKIE" && preg_match('/^HTTP_/',$k)) {
306 $postvars["header|".$k] = $v;
310 $postvars["has_header"] = $i;
317 function transcribeResponse(& $response) {
319 $arr = explode("\n",$response);
323 for ($i=0;list(,$v)=each($arr);$i++) {
324 if ($v == "<END>") $isParam = FALSE;
327 $pieces = explode("=",$v,2);
328 $settings[$pieces[0]] = urldecode($pieces[1]);
330 if ($v == "<BEGIN>") $isParam = TRUE;
334 if (isset($settings["directives"])) {
335 $settings["directives"] = explode(",",$settings["directives"]);
341 header("Cache-Control: no-store, no-cache");
342 header("Pragma: no-cache");
346 $post = prepareRequest();
348 for (reset($post);list($k,$v) = each($post);) {
349 $request .= "&".urlencode($k)."=".urlencode(stripslashes($v));
351 $request = substr($request,1);
352 $response = performRequest($request);
353 if ($response == "-1") {
356 $settings = transcribeResponse($response);
358 $directives = $settings["directives"];
359 $email = isset($settings["email"]) ? $settings["email"] : "";
360 $emailmethod = isset($settings["emailmethod"]) ? $settings["emailmethod"] : 0;
366 <?php echo (isset($directives[0]) && $directives[0]==1) ? getDocType() : ""; ?>
367 <?php echo (isset($settings["injDocType"])) ? formatHTML($settings["injDocTypeMsg"]) : ""; ?>
368 <?php echo (isset($directives[1]) && $directives[1]==1) ? getHeadHTML1() : ""; ?>
369 <?php echo (isset($settings["injHead1HTML"])) ? formatHTML($settings["injHead1HTMLMsg"]) : ""; ?>
370 <?php echo (isset($directives[8]) && $directives[8]==1) ? getRobotHTML() : ""; ?>
371 <?php echo (isset($settings["injRobotHTML"])) ? formatHTML($settings["injRobotHTMLMsg"]) : ""; ?>
372 <?php echo (isset($directives[9]) && $directives[9]==1) ? getNoCollectHTML() : ""; ?>
373 <?php echo (isset($settings["injNoCollectHTML"])) ? formatHTML($settings["injNoCollectHTMLMsg"]) : ""; ?>
374 <?php echo (isset($directives[1]) && $directives[1]==1) ? getHeadHTML2() : ""; ?>
375 <?php echo (isset($settings["injHead2HTML"])) ? formatHTML($settings["injHead2HTMLMsg"]) : ""; ?>
376 <?php echo (isset($directives[2]) && $directives[2]==1) ? getTopHTML() : ""; ?>
377 <?php echo (isset($settings["injTopHTML"])) ? formatHTML($settings["injTopHTMLMsg"]) : ""; ?>
379 if (isset($settings["actMsgOn"])) {
380 echo formatHTML($settings["actMsg"]);
382 if (isset($settings["errMsgOn"])) {
383 echo formatHTML($settings["errMsg"]);
385 if (isset($settings["customMsgOn"])) {
386 echo formatHTML($settings["customMsg"]);
389 <?php echo (isset($directives[3]) && $directives[3]==1) ? getLegalHTML() : ""; ?>
390 <?php echo (isset($settings["injLegalHTML"])) ? formatHTML($settings["injLegalHTMLMsg"]) : ""; ?>
392 if (isset($settings["altLegalOn"])) {
393 echo formatHTML($settings["altLegalMsg"]);
396 <?php echo (isset($directives[4]) && $directives[4]==1) ? getEmailHTML(intval($emailmethod),$email) : ""; ?>
397 <?php echo (isset($settings["injEmailHTML"])) ? formatHTML($settings["injEmailHTMLMsg"]) : ""; ?>
398 <?php echo (isset($directives[5]) && $directives[5]==1) ? getStyleHTML() : ""; ?>
399 <?php echo (isset($settings["injStyleHTML"])) ? formatHTML($settings["injStyleHTMLMsg"]) : ""; ?>
400 <?php echo (isset($directives[6]) && $directives[6]==1) ? getVanityHTML() : ""; ?>
401 <?php echo (isset($settings["injVanityHTML"])) ? formatHTML($settings["injVanityHTMLMsg"]) : ""; ?>
403 if (isset($settings["altVanityOn"])) {
404 echo formatHTML($settings["altVanityMsg"]);
407 <?php echo (isset($directives[7]) && $directives[7]==1) ? getBottomHTML() : ""; ?>
408 <?php echo (isset($settings["injBottomHTML"])) ? formatHTML($settings["injBottomHTMLMsg"]) : ""; ?>