<?php
header('Content-Type: text/xml');
$headers = apache_request_headers();
$myfile = fopen("log3ds.txt","a");
foreach ($headers as $header => $value) {
fwrite($myfile, $header);
fwrite($myfile, ": ");
fwrite($myfile, $value);
fwrite($myfile, "\n");
if($header == "SOAPAction") {
if($value == "urn:nus.wsapi.broadon.com/GetSystemUpdate") {
fwrite($myfile, "GetSystemUpdate detected\n");
echo file_get_contents("GetSystemUpdate_response.xml");
} elseif ($value == "urn:nus.wsapi.broadon.com/GetSystemTitleHash") {
fwrite($myfile, "GetSystemTitleHash detected\n");
echo file_get_contents("GetSystemTitleHash_response.xml");
} elseif ($value == "urn:nus.wsapi.broadon.com/GetSystemCommonETicket") {
fwrite($myfile, "GetSystemCommonETicket detected\n");
echo file_get_contents("GetSystemCommonETicket_response.xml");
}
}
}
fwrite($myfile, "\n");
fclose($myfile);
die();
?>