]> git.pld-linux.org Git - packages/mythplugins.git/blame - mythweb-config.patch
- merged 0.19 from DEVEL
[packages/mythplugins.git] / mythweb-config.patch
CommitLineData
d721c386
ER
1diff -ur ./mythweb/canned_searches.php /tmp/mythweb/canned_searches.php
2--- ./mythweb/canned_searches.php 2005-03-01 09:10:23.000000000 +0200
3+++ /tmp/mythweb/canned_searches.php 2005-10-26 00:17:02.000000000 +0300
4@@ -13,7 +13,7 @@
5 require_once "includes/init.php";
6
7 // Load the canned searches
8- require_once "config/canned_searches.php";
9+ require_once "/etc/mythweb/canned_searches.php";
10
11 // Load the class for this page
12 require_once theme_dir.'canned_searches.php';
13diff -ur ./mythweb/includes/init.php /tmp/mythweb/includes/init.php
14--- ./mythweb/includes/init.php 2005-02-28 00:52:48.000000000 +0200
15+++ /tmp/mythweb/includes/init.php 2005-10-26 00:11:25.000000000 +0300
16@@ -14,7 +14,7 @@
17 require_once 'includes/errordisplay.php';
18
19 // Load the user-defined configuration settings
20- require_once 'config/conf.php';
21+ require_once '/etc/mythweb/conf.php';
22
23 // Clean up some variables
24 if (!ereg('/$', $_SERVER['DOCUMENT_ROOT']))
25@@ -127,15 +127,15 @@
26 define('theme_dir', 'themes/'.Theme.'/');
27
28 // Load the theme config
29- require_once 'config/theme_'.Theme.'.php';
30+ require_once '/etc/mythweb/theme_'.Theme.'.php';
31
32 // Load the overall page theme class
33 require_once theme_dir."theme.php";
34
35 // Make sure the image cache path exists
36 $path = '';
37- foreach (split('/+', image_cache) as $dir) {
38- $path .= $path ? '/' . $dir : $dir;
39+ foreach (split("/+", image_cache) as $dir) {
40+ $path .= $path ? ('/' . $dir) : ($dir ? $dir : "/$dir");
41 if(!is_dir($path) && !mkdir($path, 0755))
42 trigger_error('Error creating path for '.$path.': Please check permissions.', FATAL);
43 }
44diff -ur ./mythweb/search.php /tmp/mythweb/search.php
45--- ./mythweb/search.php 2005-03-01 09:10:23.000000000 +0200
46+++ /tmp/mythweb/search.php 2005-10-26 00:17:12.000000000 +0300
47@@ -64,7 +64,7 @@
48 if (preg_match('/^\s*canned:\s*(.+)\s*$/', $_SESSION['search']['searchstr'], $search_name)) {
49 $search_name = $search_name[1];
50 // Load the canned searches
51- require_once 'config/canned_searches.php';
52+ require_once '/etc/mythweb/canned_searches.php';
53 // Find the query
54 if ($Canned_Searches[$search_name]) {
55 $query = array($Canned_Searches[$search_name]);
56diff -ur ./mythweb/weather.php /tmp/mythweb/weather.php
57--- ./mythweb/weather.php 2005-03-09 08:41:54.000000000 +0200
58+++ /tmp/mythweb/weather.php 2005-10-26 00:17:22.000000000 +0300
59@@ -253,7 +253,7 @@
60 }
61
62 function getImageAndDescFromId($myid) {
63- $data = file("config/weathertypes.dat");
64+ $data = file("/etc/mythweb/weathertypes.dat");
65 foreach($data as $line) {
66 list($id, $name, $img) = explode(",", $line);
67 if($id != $myid) continue;
68@@ -263,7 +263,7 @@
69 }
70
71 function getImageFromName($myname) {
72- $data = file("config/weathertypes.dat");
73+ $data = file("/etc/mythweb/weathertypes.dat");
74 foreach($data as $line) {
75 list($id, $name, $img) = explode(",", $line);
76 if($name != $myname) continue;
098fc9f2
ER
77diff -u ./mythweb/config/conf.php /tmp/conf/conf.php
78--- ./mythweb/config/conf.php 2005-01-31 07:42:41.000000000 +0200
79+++ /tmp/conf/conf.php 2005-10-26 00:15:19.000000000 +0300
80@@ -41,7 +41,7 @@
81 define('fs_encoding', 'ISO-8859-1');
82
83 // Path to the image cache directory
84- define('image_cache', 'image_cache');
85+ define('image_cache', '/var/cache/mythweb/image_cache');
86
87 // Local (web-friendly) path to the mythtv video dir (use a symlink to the real one - one will be auto-created if it can be)
88 define('video_dir', 'video_dir');
33ecf15c
ER
89--- ./mythweb/config/conf.php~ 2005-01-31 07:42:41.000000000 +0200
90+++ ./mythweb/config/conf.php 2005-10-26 02:17:13.000000000 +0300
91@@ -26,7 +26,7 @@
92 define('server_domain', $_SERVER['SERVER_NAME'] ? $_SERVER['SERVER_NAME'] : $_SERVER['HTTP_HOST']);
93
94 // Email address to which php and database errors are mailed to
95- define('Error_Email', 'php_errors@'.preg_replace('/.*?\b([\w\-]+\.[\w\-]+)$/', '$1', server_domain));
96+ define('Error_Email', 'root@'.preg_replace('/.*?\b([\w\-]+\.[\w\-]+)$/', '$1', server_domain));
97
98 // For the "movies" search -- set this to the word your listings provider uses to
99 // describe movies/films/peliculas/etc.
This page took 0.112535 seconds and 4 git commands to generate.