Skip to content
Snippets Groups Projects
Commit 91f054d5 authored by Brett Bieber's avatar Brett Bieber
Browse files

Path fixes.

parent c5c66ac8
No related branches found
No related tags found
No related merge requests found
<?php
ini_set('display_errors',true);
error_reporting(E_ALL);
set_include_path(dirname(__FILE__).'/src:'.dirname(__FILE__).'/lib/php:'.get_include_path());
require_once 'UNL/Autoload.php';
\ No newline at end of file
<?php
ini_set('display_errors',true);
error_reporting(E_ALL);
require_once 'UNL/Autoload.php';
require_once dirname(__FILE__).'/../config.sample.php';
UNL_Templates::$options['version'] = 3;
......@@ -15,7 +13,6 @@ $page->head .= '
<link rel="stylesheet" type="text/css" href="searchCSS.css" />
';
$page->addScript('searchFunc.js');
$options = array('allowed_schemes' => array('http','https'));
if (isset($_GET['u'])
&& preg_match('/^https?/', $_GET['u'])
......
......@@ -4,8 +4,7 @@ if (!isset($_GET['u'])) {
exit();
}
chdir(dirname(dirname(__FILE__)));
require_once 'UNL/Autoload.php';
require_once dirname(__FILE__).'/../../config.sample.php';
header('Content-type:application/xml');
echo UNL_Search_CSEGenerator::generateCSE($_GET['u']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment