Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $query = $_GET['url'];
- if(preg_match('#^https?:\/\/.*\.fbsbx\.com\/file_download\.php\?(id=[^\&\s]*).*#i', "$query", $match))
- {
- echo 'OK store-id=http://fb-attachment.squid.internal/';
- echo $match[1];
- }
- else if(preg_match('#^http:\/\/.*\/depot\/[0-9]{3}\/chunk\/(.*?)(\?.*|$)#i', "$query", $match))
- {
- echo 'OK store-id=http://dota2.squid.internal/';
- echo $match[1];
- }
- else if(preg_match('#^https?:\/\/[^\.]+\.dl\.sourceforge\.net\/(.*)#i', "$query", $match))
- {
- echo 'OK store-id=http://sourceforge.squid.internal/';
- echo $match[1];
- }
- else
- {
- echo 'ERR';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement