root/trunk/includes/actions/googlesearch.php

Revision 1, 1.8 KB (checked in by anonymous, 7 years ago)

initial import

Line 
1<?php
2/****************************************************** Open .node ***
3 * Description:   
4 * Status:        Stable.
5 * Author:        Alexandre Dath <alexandre@dotnode.com>
6 * $Id$
7 *
8 * Copyright (C) 2005 Alexandre Dath <alexandre@dotnode.com>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 ******************** http://opensource.ikse.net/projects/dotnode ***/
24
25global $_site;
26
27print <<<__FIN__
28<!-- SiteSearch Google -->
29<form method='get' action='http://www.google.com/search'>
30<table style='background: white; border: 1px silver solid;'><tr><td>
31<a href='http://www.google.com'>
32<img src='http://www.google.com/logos/Logo_40wht.gif' style='border: none' alt='Google' /></a>
33</td>
34<td>
35<input type='text' name='q' size='24' maxlength='255' />
36<input type='submit' name='btnG' value='Google Search' style='border: 1px gray outset'/>
37<span style='font-size:-1'>
38<input type='hidden' name='domains' value='$_site' /><br>
39<input type='radio' name='sitesearch' /> WWW <input type='radio' name='sitesearch' value='$_site' checked /> $_site <br>
40</span>
41</td></tr></table>
42</form>
43<!-- SiteSearch Google -->
44__FIN__;
45?>
Note: See TracBrowser for help on using the browser.