HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/awaldron/www/archive/demo/search/config/config.php
<?

//////////////////////////////////////////////////////////// 
// Program: 	Google API Local Site Search
// Technology: 	PHP 4.1+, Web Services, SOAP, and PHP
// 
// Author: 		David Wilson, October 26th, 2006 
// Website: 	http://www.intriguedesign.ca/software/site-search-google.php
//
// Version:		v1.1.1


error_reporting(0);  // substitue 0 for E_ALL to show errors

// Your google API
// Apply here: https://www.google.com/accounts/NewAccount?continue=http://api.google.com/createkey&followup=http://api.google.com/createkey
$apikey 		= "YOUR_API_GOES_HERE";

// limit the search to a local domain
// leave empty if you wish your local site search to search the entire WWW
// do not include wwww.
// do not include http://
$search_site	= "yourdomain.com";


// Google search API (this is the URL as of October 2006)
$apiurl 		= "http://api.google.com/search/beta2";


// search form field size (default=30)
$search_size	= 30;

// maximum length of URL to show (default=75)
$search_url_length_max = 75;

// setup google safe search
$search_safe	= false;

// separator for pages
$page_separator = "&nbsp;|&nbsp;";

// turn on messages (reports failed searches) 
// default = true
$showmessages	= true;

// turn on error reporting
// default = false
$showerrors		= false;


// toggle whether search results are numbered
// example: 1. First Search Result...
// example: 2. Second Search Result...
$shownumbers	= true;


/*
Search by Google language:

	Arabic  		lang_ar  
	Chinese (S)  	lang_zh-CN  
	Chinese (T)  	lang_zh-TW  
	Czech  			lang_cs  
	Danish  		lang_da  
	Dutch  			lang_nl  
	English  		lang_en  
	Estonian  		lang_et  
	Finnish  		lang_fi  
	French  		lang_fr  
	German  		lang_de  
	Greek  			lang_el  
	Hebrew  		lang_iw  
	Hungarian  		lang_hu  
	Icelandic  		lang_is  
	Italian  		lang_it  
	Japanese  		lang_ja  
	Korean  		lang_ko  
	Latvian  		lang_lv  
	Lithuanian  	lang_lt  
	Norwegian  		lang_no  
	Portuguese  	lang_pt  
	Polish  		lang_pl  
	Romanian  		lang_ro  
	Russian  		lang_ru  
	Spanish  		lang_es  
	Swedish  		lang_sv  
	Turkish  		lang_tr  
*/
$search_lang	 = "lang_en";

// system language must correspond to one of the language files available in /lang/**.php
$sys_lang		 = "en"; // default is en for English

// number of times to retry search before failing
$search_attempts = 4;

// default search optins for soap client
$GoogleOptions = "urn:GoogleSearch"

?>