I think I fixed some problems. I found the path.
Now my searchresults.php file seems like this:
Quote:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'searchresults');
chdir('/www/buforo.com/htdocs/gsearch/');
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// pre-cache templates used by all actions
$globaltemplates = array(
'google_navadsearch',
'google_siteadsearch',
'google_searchresults'
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ######################## START MAIN SCRIPT ############################
$navbits = array();
$navbits[$parent] = 'Search Results';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('google_searchresults') . '");');
|
but, the error now is the following:
Quote:
Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /www/buforo.com/htdocs/gsearch/searchresults.php on line 19
Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='./:/usr/local/php5/lib/php') in /www/buforo.com/htdocs/gsearch/searchresults.php on line 19
|