Index: modules/tv/init.php =================================================================== --- modules/tv/init.php (revision 14972) +++ modules/tv/init.php (working copy) @@ -32,6 +32,7 @@ 'schedules/manual' => t('Schedule Manually'), 'schedules/custom' => t('Custom Schedule'), 'recorded' => t('Recorded Programs'), + 'opensearch' => t('Firefox Search Plugin'), ), ); Index: modules/tv/opensearch.php =================================================================== --- modules/tv/opensearch.php (revision 0) +++ modules/tv/opensearch.php (revision 0) @@ -0,0 +1,67 @@ +\n"; +?> + + MythTV + Search MythTV + tv/opensearch?type=suggest&search={searchTerms}"> + + tv/search?type=q&search=Search&s={searchTerms}"> + + http://img/favicon.ico + +prepare('SELECT DISTINCT title FROM program WHERE title LIKE ? LIMIT 10'); +$sh->execute($search."%"); + +$middle=0; +while ($data = $sh->fetch_row()){ + if ($middle) echo ","; + $middle=1; + $title = $data[0]; + $title = addslashes($title); + echo "\"".$title."\""; + } +echo "]]"; +exit; +} + +// Exit + exit; + Index: modules/_shared/tmpl/default/header.php =================================================================== --- modules/_shared/tmpl/default/header.php (revision 14972) +++ modules/_shared/tmpl/default/header.php (working copy) @@ -124,6 +124,7 @@ +