~sit-developers/sit/master

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
// opensearch.php - A open search plugin for SiT
//
// SiT (Support Incident Tracker) - Support call tracking system
// Copyright (C) 2010-2014 The Support Incident Tracker Project
// Copyright (C) 2000-2009 Salford Software Ltd. and Contributors
//
// This software may be used and distributed according to the terms
// of the GNU General Public License, incorporated herein by reference.
//
// Author: Paul Heaney <paul[at]sitracker.org>

// Supports both Firefox2 and IE7

require ('core.php');
// no permission required as this is simply the  page the browser includes for search, actual search is done by search.php which does have a permission,
// We can't really put a permission on here as this is included as an internal process in the bowser and as such the login page is never shown 
$permission = PERM_NOT_REQUIRED;

echo "<?xml version=\"1.0\"?>";
echo "<OpenSearchDescription xmlns=\"http://a9.com/-/spec/opensearch/1.1/\">";
echo "<ShortName>{$CONFIG['application_shortname']}</ShortName>";
echo "<Description>Search for {$CONFIG['application_shortname']}</Description>";
echo "<Image height=\"16\" width=\"16\" type=\"image/png\">{$CONFIG['application_uriprefix']}{$CONFIG['application_webpath']}images/sit_favicon.png</Image>";
echo "<Url type=\"text/html\" method=\"GET\"  template=\"{$CONFIG['application_uriprefix']}{$CONFIG['application_webpath']}search.php?search_domain=all&amp;search_string={searchTerms}&amp;submit=Search\"/>";
echo "<InputEncoding>UTF-8</InputEncoding>";

echo "<AdultContent>false</AdultContent>";
echo "</OpenSearchDescription>";

?>