<?php // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('THIS_SCRIPT', 'Googlesearch'); define('CSRF_PROTECTION', true); // change this depending on your filename // ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array(); // get special data templates from the datastore $specialtemplates = array(); // pre-cache templates used by all actions $globaltemplates = array(); // pre-cache templates used by specific actions $actiontemplates = array(); // ######################### REQUIRE BACK-END ############################ // if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line // chdir ('/path/to/your/forums'); require_once('./global.php'); if ($_REQUEST['do'] == 'search') { if ($_REQUEST['source'] == 0) { $vbulletin->url = 'search.php?do=process&query=' . urlencode($_REQUEST['q']); print_standard_redirect('', false); } else echo 'search google'; } else { echo '<form action="test.php"> <input type="hidden" name="do" value="search"> <input type="text" name="q" size="20" /></br> Midwifery Online <input type="radio" name="source" value="0"> WWW <input type="radio" name="source" value="1"> <input type="image" src="images/buttons/find.gif" name="submit" onclick="document.getElementById(\'navbar_search\').submit;" tabindex="100"/> </form>'; }