| 1 | Index: searches.php
|
|---|
| 2 | ===================================================================
|
|---|
| 3 | --- searches.php (revision 21070)
|
|---|
| 4 | +++ searches.php (working copy)
|
|---|
| 5 | @@ -15,6 +15,8 @@
|
|---|
| 6 |
|
|---|
| 7 | // Load the canned searches
|
|---|
| 8 | require_once 'modules/tv/canned_searches.conf.php';
|
|---|
| 9 | +// Load the local canned searches (if it exists)
|
|---|
| 10 | + include 'modules/tv/canned_searches_local.conf.php';
|
|---|
| 11 |
|
|---|
| 12 | // Load the class for this page
|
|---|
| 13 | require_once tmpl_dir.'searches.php';
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 | Index: search.php
|
|---|
| 18 | ===================================================================
|
|---|
| 19 | --- search.php (revision 21070)
|
|---|
| 20 | +++ search.php (working copy)
|
|---|
| 21 | @@ -260,6 +260,8 @@
|
|---|
| 22 | $search_name = $search_name[1];
|
|---|
| 23 | // Load the canned searches
|
|---|
| 24 | require_once 'modules/tv/canned_searches.conf.php';
|
|---|
| 25 | + // Load the local canned searches (if it exists)
|
|---|
| 26 | + include 'modules/tv/canned_searches_local.conf.php';
|
|---|
| 27 | // Find the query
|
|---|
| 28 | if (empty($Canned_Searches[$search_name]))
|
|---|
| 29 | add_warning("Unknown canned query: $search_name");
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | Index: canned_searches_local.conf.php.default
|
|---|
| 33 | ===================================================================
|
|---|
| 34 | --- canned_searches_local.conf.php.default (revision 0)
|
|---|
| 35 | +++ canned_searches_local.conf.php.default (revision 0)
|
|---|
| 36 | @@ -0,0 +1,25 @@
|
|---|
| 37 | +<?php
|
|---|
| 38 | +/**
|
|---|
| 39 | + * This file is used to create canned searches for your local setup. They are
|
|---|
| 40 | + * defined in this separate file so that are not overwritten when you next
|
|---|
| 41 | + * upgrade mythweb. Just use the php square bracket syntax to append to the
|
|---|
| 42 | + * Canned_Searches array. See the examples included in this file. The
|
|---|
| 43 | + * canned search names (array keys) are not subject to translate as it's
|
|---|
| 44 | + * intented for local use and not global distribution.
|
|---|
| 45 | + * Remove the .default extension to activate
|
|---|
| 46 | + *
|
|---|
| 47 | + * @url $URL: http://svn.mythtv.org/svn/branches/release-0-21-fixes/mythplugins/mythweb/modules/tv/canned_searches.conf.php $
|
|---|
| 48 | + * @date $Date: 2007-12-31 21:38:38 +0100 (Mo, 31. Dez 2007) $
|
|---|
| 49 | + * @version $Revision: 15274 $
|
|---|
| 50 | + * @author $Author: xris $
|
|---|
| 51 | + * @license GPL
|
|---|
| 52 | + *
|
|---|
| 53 | + * @package MythWeb
|
|---|
| 54 | + *
|
|---|
| 55 | +/**/
|
|---|
| 56 | +
|
|---|
| 57 | +$Canned_Searches['Movies on Aussie TV (non HD)'] = '( program.category_type like "%movie%" OR program.title like "%movie%" ) AND timediff(program.endtime, program.starttime) > "01:10:00" and callsign not like "%HD%"';
|
|---|
| 58 | +
|
|---|
| 59 | +$Canned_Searches['Movies on Aussie TV (HD)'] = '( program.category_type like "%movie%" OR program.title like "%movie%" ) AND timediff(program.endtime, program.starttime) > "01:10:00" and callsign like "%HD%';
|
|---|
| 60 | +
|
|---|
| 61 | +?>
|
|---|
| 62 |
|
|---|