Advertisement
Guest User

phpsupersearch

a guest
Nov 24th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.84 KB | None | 0 0
  1. <?php
  2.     // script babbo in php per aprire al volo google immagini da locale
  3.     $campo = $_REQUEST['campo'];
  4.    
  5.     switch ($_REQUEST['engine']) {
  6.         case 'img':
  7.             $url = "https://www.google.com/search?site=&tbm=isch&source=hp&q=" . $campo . "&oq=" . $campo;
  8.             break;
  9.         case 'google':
  10.             $url = "https://www.google.it/#q=" . $campo;
  11.             break;
  12.         case 'wikit':
  13.             $url = "https://it.wikipedia.org/w/index.php?search=" . $campo . "&title=Speciale%3ARicerca&go=Vai";
  14.             break;
  15.         case 'youtube':
  16.             $url = "https://www.youtube.com/results?search_query=" . $campo;
  17.             break; 
  18.         case 'facebook':
  19.             $url = "https://www.facebook.com/search/results/?q=" . $campo;
  20.             break;
  21.         case 'jamendo':
  22.             $url = "https://www.jamendo.com/it/search?qs=q=" . $campo;
  23.             break;
  24.         case 'deviantart':
  25.             $url = "http://www.deviantart.com/browse/all/?qh=&section=&global=1&q=" . $campo;
  26.             break;
  27.         case 'bing':
  28.             $url = "http://www.bing.com/search?q=" . $campo;
  29.             break; 
  30.         case 'dailymotion':
  31.             $url = "http://www.dailymotion.com/it/relevance/universal/search/" . $campo;
  32.             break;     
  33.         case 'twitch':
  34.             $url = "http://www.twitch.tv/search?query=" . $campo;
  35.             break;
  36.         case 'stackov':
  37.             $url = "http://stackoverflow.com/search?q=" . $campo;
  38.             break;
  39.         case 'itunes':
  40.             $url = "https://www.apple.com/search/?section=itunes&q=" . $campo;
  41.             break;
  42.         case 'duck':
  43.             $url = "https://duckduckgo.com/?q=" . $campo;
  44.             break;
  45.         case 'vimeo':
  46.             $url = "http://vimeo.com/search?q=" . $campo;
  47.             break; 
  48.         case 'yahoo':
  49.             $url = "https://it.search.yahoo.com/search?p=" . $campo;
  50.             break; 
  51.         case 'amazon':
  52.             $url = "http://www.amazon.it/s/field-keywords=" . $campo;
  53.             break;     
  54.         case 'ebay':
  55.             $url = "http://www.ebay.it/sch/i.html?_nkw=" . $campo;
  56.             break; 
  57.        
  58.            
  59.         default:
  60.             $url = "";
  61.             break;
  62.     }
  63.    
  64.     header("Location: $url ");
  65. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement