From 31b75fc29d5cc075fd4000aa8e0f8dac469d1d29 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 19 Dec 2006 23:24:28 +0000 Subject: [PATCH] We can now only link to this stylesheet and not include it --- printer.css.php | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/printer.css.php b/printer.css.php index 3624f59..91106ec 100755 --- a/printer.css.php +++ b/printer.css.php @@ -19,22 +19,10 @@ || ################################################################### \*=====================================================================*/ -error_reporting(E_ALL & ~E_NOTICE); +$path = dirname(isset($_SERVER['SCRIPT_URL']) ? $_SERVER['SCRIPT_URL'] : $_SERVER['REQUEST_URI']); -$included = true; - -if (!isset($GLOBALS['isso:callback'])) -{ - if (!method_exists($GLOBALS['isso:callback'], 'load')) - { - $included = false; - $path = (isset($_SERVER['SCRIPT_URL']) ? $_SERVER['SCRIPT_URL'] : $_SERVER['REQUEST_URI']); - $GLOBALS['isso:callback']->webpath = dirname($path) . '/'; - - // Gecko browsers need this to display right - header("Content-Type: text/css"); - } -} +// Gecko browsers need this to display right +header("Content-Type: text/css"); $css = <<webpath}images/tabs.gif); + background-image: url($path/images/tabs.gif); background-repeat: no-repeat; background-position: 0% -35px; } @@ -312,7 +300,7 @@ input, textarea, select, option padding: 8px 15px 8px 15px; - background-image: url({$GLOBALS['isso:callback']->webpath}images/tabs-ends.gif); + background-image: url($path/images/tabs-ends.gif); background-repeat: no-repeat; background-position: 100% -35px; } -- 2.43.5