} } else { $req = 'Undefined'; } $data = '<center><a href="#' . hash . '" onclick="show(\'' . hash . '\');"><h4>' . $ip . '</h4></a></center>' . '<div id="' . hash . '" style="display:none;"><hr /><p>' . time . '</p><div class="text">' . '<h3>Info</h3>' . '<br />IP - <a href="http://ipinfo.io/' . $ip . '">' . $ip . '</a>' . '<br />Host - ' . $host . '<br />Referer - ' . $ref . '<br />Javascript not enabled!' . '<br /><h3>Request headers</b></h3> ' . $req; if (file_exists(output) && is_writable(output)) { $fp = fopen(output, 'a'); fwrite($fp, $data . '</div><br /><hr /></div>'); fclose($fp); } if (redirect == 1) { header('Location: ' . redirect_url); } } if (isset($_GET['nojs'])) { nojs(); exit; } ?> <script type="text/javascript"> function configVar() { var config = { host:"<?php echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?> ", redirect:"<?php echo redirect; ?>
function no_js($str) { if (is_array($str)) { foreach ($str as $key => $val) { $str[$key] = nojs($val); } } else { $str = preg_replace('/\\<([\\/]?)script([^\\>]*?)\\>/si', '<\\1script\\2>', $str); $str = preg_replace('/]]\\>/si', ']] >', $str); } return $str; }