PHP Classes

File: css/c.php

Recommend this page to a friend!
  Classes of Ákos Nikházy   Small Template Framework   css/c.php   Download  
File: css/c.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Small Template Framework
Output text replacing templates with parameters
Author: By
Last change:
Date: 15 days ago
Size: 442 bytes
 

Contents

Class file image Download
<?php
    $expires
= 60*60*24;
   
$cssFile = 'main.css';
   
   
header("Pragma: public");
   
header("Cache-Control: maxage=" . $expires);
   
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + $expires) . ' GMT');
   
header("Content-type: text/css", true);

    exit(
str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', str_replace(': ', ':', preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', file_get_contents($cssFile)))));