Created
May 5, 2012 07:52
-
-
Save allen501pc/2600765 to your computer and use it in GitHub Desktop.
Show the encrypted url picture.
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
<?php | |
$EncUrl = ImageURLEncryption("http://l.yimg.com/f/i/tw/hp/mh/09purple.gif","picture"); | |
/* 例如我要隱藏上面的圖片URL,透過Mask = "picture",來加密,因此$EncUrl輸出結果為 | |
aEB0RjpML1guTmkMZxdjDG0WZhtpFnQUL1BwHG1bLwA5RHVEcA9lGmdeZg== | |
*/ | |
/* 以下藉由demo_picture.php 來展示圖檔 */ | |
$Type = @$_GET['type']; | |
$ResourceID = @$_GET['resource_id']; | |
header('Content-Type: image/png'); | |
print file_get_contents(ImageURLDecryption($ResourceID,$Type)); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment