From 721f6213cc1343e4ab613a89be55d37dd0780244 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Mon, 17 Sep 2007 22:23:40 +0000 Subject: - Moved images from compiled in image dir to data dir 'img'. - Fixed MapUrl entries to the new image location - Adapted some pages for the new image locations. - Added a preload functionalty to fill file cache at plugin startup. --- tntconfig.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tntconfig.cpp') diff --git a/tntconfig.cpp b/tntconfig.cpp index 41c55a2..704ae6f 100644 --- a/tntconfig.cpp +++ b/tntconfig.cpp @@ -71,11 +71,11 @@ void TntConfig::WriteConfig() // rule where a image is found, terminates the search. // 1. /themes//img/. // 2. /img/. - // 3. . (builtin images) + // deprecated: 3. . (builtin images) // inserted by 'tadi' -- verified with above, but not counterchecked yet! file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) content@ " << configDir << "/themes/$1/img/$2.$3 image/$3" << endl; file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) content@ " << configDir << "/img/$2.$3 image/$3" << endl; - file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) $2@" << endl; + // deprecated: file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) $2@" << endl; // Epg images string const epgImgPath(LiveSetup().GetEpgImageDir()); @@ -93,11 +93,17 @@ void TntConfig::WriteConfig() // inserted by 'tadi' -- verified with above, but not counterchecked yet! file << "MapUrl ^/js(/[^.]*)([^/]*\\.js) content@ " << configDir << "/js$1$2 text/javascript" << endl; - // these map to 'css/basename(uri)' + // map to 'css/basename(uri)' // inserted by 'tadi' -- verified with above, but not counterchecked yet! file << "MapUrl ^/css.*/(.+) content@ " << configDir << "/css/$1 text/css" << endl; + + // map to 'img/basename(uri)' + // inserted by 'tadi' -- verified with above, but not counterchecked yet! file << "MapUrl ^/img.*/(.+)\\.([^.]+) content@ " << configDir << "/img/$1.$2 image/$2" << endl; + // Map favicon.ico into img directory + file << "MapUrl ^/favicon.ico$ content@ " << configDir << "/img/favicon.ico image/x-icon" << endl; + // insecure by default: DO NOT UNKOMMENT!!! // file << "MapUrl /([^/]+/.+) content@ $1" << endl; -- cgit v1.2.3