I have the following script, which is designed to automatically post a killmail posted to my board on this server to another board on another server. This is the location familyties.frih.net/public_html/eve-killboard/common/class.parser.php
Is there anything in there as far as the forwarding that is not allowed, as this is not working. I know this works for other people on other servers. Thanks.
Is there anything in there as far as the forwarding that is not allowed, as this is not working. I know this works for other people on other servers. Thanks.
| Quote: |
| // start send2otherkillboard
// function send2otherkillboard($corp, $killmail) { if ($corp == 'yanks') { if (strstr($killmail, 'Team Americas')){ $data = "password=cyber&mail=" . $killmail; PostToHost ( "kos.griefwatch.net", "?p=addmail", "http://kos.griefwatch.net/?p=addmail", $data ); } } } function PostToHost($host, $path, $referer, $data_to_send) { $fp = fsockopen($host,80,$errno, $errstr, 5); if (!$fp) { echo "Fehler: $errno - $errstr<br>\n"; }else{ fputs($fp, "POST $path HTTP/1.1\r\n"); fputs($fp, "Host: $host\r\n"); fputs($fp, "Referer: $referer\r\n"); fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n"); fputs($fp, "Content-length: ". strlen($data_to_send) ."\r\n"); fputs($fp, "Connection: close\r\n\r\n"); fputs($fp, stripslashes($data_to_send)); /* while(!feof($fp)) { $res .= fgets($fp)."<br>"; } */ fclose($fp); } return $res; } if (strstr($killmail, 'Team Americas')){ send2otherkillboard(yanks, $killmail); } // // end send2otherkillboard // |
