All, except security block, include()/require() rewritten to own LOAD_INC()/LOAD_INC_...
[mailer.git] / css.php
diff --git a/css.php b/css.php
index cdc3461e4fd719079005868909cbd8593ce76193..1496f788b10b41e00fd157a750704000b80dd5f1 100644 (file)
--- a/css.php
+++ b/css.php
@@ -6,9 +6,9 @@
  * -------------------------------------------------------------------- *
  * File              : css.php                                          *
  * -------------------------------------------------------------------- *
- * Short description : Image code for multi-purposes                    *
+ * Short description : Cascading Style Sheets output                    *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Code-Bild fuer verschiedene Zwecke               *
+ * Kurzbeschreibung  : Ausgabe der Cascading-Style-Sheets (CSS)         *
  * -------------------------------------------------------------------- *
  *                                                                      *
  * -------------------------------------------------------------------- *
@@ -38,28 +38,33 @@ define('_OB_CACHING', "old");
 require_once("inc/libs/security_functions.php");
 
 // Init "action" and "what"
-global $what, $action;
-$GLOBALS['what'] = ""; $GLOBALS['action'] = "";
-if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']);
-if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']);
+global $what, $action, $footer;
 
-// This is a CSS file loader!
-$CSS = "1"; $GLOBALS['module'] = "css";
+// Footer is disabled in CSS mode
+$footer = "-1";
 
-// Load the required file(s)
-require ("inc/config.php");
+// Init variables
+$GLOBALS['what'] = "";
+$GLOBALS['action'] = "";
+
+// This is a CSS file loader!
+$CSS = "1";
+$GLOBALS['module'] = "css";
 
 // Set header
-@header("Content-type: text/css");
+header("Content-type: text/css");
+
+// Load the required file(s)
+require_once("inc/config.php");
 
 // Load header
-require_once(PATH."inc/header.php");
+LOAD_INC_ONCE("inc/header.php");
 
 // Load CSS code
-require_once(PATH."inc/stylesheet.php");
+LOAD_INC_ONCE("inc/stylesheet.php");
 
 // Load footer
-require_once(PATH."inc/footer.php");
+LOAD_INC_ONCE("inc/footer.php");
 
 //
 ?>