Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Check if the url starts with: http://cache.www.gametracker.com/server_info/
- if(substr($_GET['url'],0,60) != 'aHR0cDovL2NhY2hlLnd3dy5nYW1ldHJhY2tlci5jb20vc2VydmVyX2luZm8v')
- {
- die('not gametracker');
- }
- // Decode Base64 and check file extension to set appropriate header mime.
- // Only jpg, jpeg, png and gif allowed.
- $strFile = base64_decode(@$_GET['url']);
- $strFileExt = end(explode('.' , $strFile));
- if($strFileExt == 'jpg' or $strFileExt == 'jpeg'){
- header('Content-Type: image/jpeg');
- }elseif($strFileExt == 'png'){
- header('Content-Type: image/png');
- }elseif($strFileExt == 'gif'){
- header('Content-Type: image/gif');
- }else{
- die('not supported');
- }
- // Output GT Banner image
- if($strFile != ''){
- readfile($strFile);
- }
- exit;
- ?>
Add Comment
Please, Sign In to add comment