Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // script babbo in php per aprire al volo google immagini da locale
- $campo = $_REQUEST['campo'];
- switch ($_REQUEST['engine']) {
- case 'img':
- $url = "https://www.google.com/search?site=&tbm=isch&source=hp&q=" . $campo . "&oq=" . $campo;
- break;
- case 'google':
- $url = "https://www.google.it/#q=" . $campo;
- break;
- case 'wikit':
- $url = "https://it.wikipedia.org/w/index.php?search=" . $campo . "&title=Speciale%3ARicerca&go=Vai";
- break;
- case 'youtube':
- $url = "https://www.youtube.com/results?search_query=" . $campo;
- break;
- case 'facebook':
- $url = "https://www.facebook.com/search/results/?q=" . $campo;
- break;
- case 'jamendo':
- $url = "https://www.jamendo.com/it/search?qs=q=" . $campo;
- break;
- case 'deviantart':
- $url = "http://www.deviantart.com/browse/all/?qh=§ion=&global=1&q=" . $campo;
- break;
- case 'bing':
- $url = "http://www.bing.com/search?q=" . $campo;
- break;
- case 'dailymotion':
- $url = "http://www.dailymotion.com/it/relevance/universal/search/" . $campo;
- break;
- case 'twitch':
- $url = "http://www.twitch.tv/search?query=" . $campo;
- break;
- case 'stackov':
- $url = "http://stackoverflow.com/search?q=" . $campo;
- break;
- case 'itunes':
- $url = "https://www.apple.com/search/?section=itunes&q=" . $campo;
- break;
- case 'duck':
- $url = "https://duckduckgo.com/?q=" . $campo;
- break;
- case 'vimeo':
- $url = "http://vimeo.com/search?q=" . $campo;
- break;
- case 'yahoo':
- $url = "https://it.search.yahoo.com/search?p=" . $campo;
- break;
- case 'amazon':
- $url = "http://www.amazon.it/s/field-keywords=" . $campo;
- break;
- case 'ebay':
- $url = "http://www.ebay.it/sch/i.html?_nkw=" . $campo;
- break;
- default:
- $url = "";
- break;
- }
- header("Location: $url ");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement