0
@@ -32,13 +32,16 @@ if (isset($_GET["mediatype"])) $mediatype = $_GET["mediatype"];
0
if (isset($_GET['name'])) $name = $_GET['name'];
0
+$stripbackground = false;
0
+if (isset($_GET["stripbackground"])) $stripbackground = true;
0
if ($templateid == '' && $name == '') return '';
0
require_once('config.php');
0
-if (
!isset($config['old_stylesheet']) || $config['old_stylesheet'] == false)
0
+if (
isset($config['old_stylesheet']) && $config['old_stylesheet'] == false)
0
require_once(dirname(__FILE__)."/include.php");
0
- $nostylesheet = false;
0
- $stripbackground = false;
0
- if (isset($_GET["templateid"])) $templateid = $_GET["templateid"];
0
- if (isset($_GET["mediatype"])) $mediatype = $_GET["mediatype"];
0
- if (isset($_GET['name'])) $name = $_GET['name'];
0
- if (isset($_GET["stripbackground"])) $stripbackground = true;
0
//TODO: Make stylesheet handling OOP
0
@@ -139,12 +131,6 @@ else
0
header("Content-Type: text/css; charset=" . (isset($result['encoding'])?$result['encoding']:'UTF-8'));
0
- #$css = preg_replace('/(\w*?background-color.*?\:\w*?).*?(;.*?)/', '', $css);
0
- $css = preg_replace('/(\w*?background-color.*?\:\w*?).*?(;.*?)/', '\\1transparent\\2', $css);
0
- $css = preg_replace('/(\w*?background-image.*?\:\w*?).*?(;.*?)/', '', $css);
0
@@ -152,6 +138,13 @@ else
0
#(and also breaks if gzip is on)
0
#header("Content-Length: ".strlen($css));
0
+ #$css = preg_replace('/(\w*?background-color.*?\:\w*?).*?(;.*?)/', '', $css);
0
+ $css = preg_replace('/(\w*?background-color.*?\:\w*?).*?(;.*?)/', '\\1transparent\\2', $css);
0
+ $css = preg_replace('/(\w*?background-image.*?\:\w*?).*?(;.*?)/', '', $css);
0
#Do cache-control stuff but only if we are running Apache
0
if(function_exists('getallheaders'))
Comments
No one has commented yet.