Created
November 22, 2017 10:38
-
-
Save shoman4eg/ae241703882686172ef7a564cd326ad9 to your computer and use it in GitHub Desktop.
rk.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Переход по внешней ссылке <?= $request->get("goto") ?></title> | |
<meta name="referrer" content="origin"> | |
<noscript> | |
<META http-equiv="refresh" content="0;URL=<?= $request->get("goto") ?>"> | |
</noscript> | |
</head> | |
<body> | |
<noscript> | |
<form action="<?= $request->get("goto") ?>" method="POST"><input type="submit" value="Continue"/></form> | |
</noscript> | |
<input id="redir" type="hidden" value="<?= $request->get("goto") ?>"/> | |
<script> | |
<? if (!empty($request->get("goto"))) { ?> | |
window.opener = null; | |
window.location.replace(document.getElementById('redir').value); | |
<? } else { ?> | |
window.history.back(); | |
<? } ?> | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment