Created
May 22, 2018 15:21
-
-
Save gladunrv/bf3b3f12cb47892726791d3e5f3cb961 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <? | |
| $fileId = isset($_REQUEST['id']) ? (int) $_REQUEST['id'] : 0; | |
| file_put_contents( 'log_' . $fileId . '.txt', PHP_EOL, FILE_APPEND ); | |
| file_put_contents( 'log_' . $fileId . '.txt', date('H:i d-m-Y'), FILE_APPEND ); | |
| file_put_contents( 'log_' . $fileId . '.txt', PHP_EOL, FILE_APPEND ); | |
| file_put_contents( 'log_' . $fileId . '.txt', print_r($_REQUEST, true), FILE_APPEND ); | |
| file_put_contents( 'log_' . $fileId . '.txt', print_r($_SERVER, true), FILE_APPEND ); | |
| file_put_contents( 'log_' . $fileId . '.txt', PHP_EOL, FILE_APPEND ); | |
| header('Location: https://www.google.com/'); | |
| exit; | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment