<?php
/**
- * Generic cached assset server...
+ * Generic cached assset server... -- No security om this.. should only return compressed CSS/JS
+ *
+ * Does a few tricks with headers to improve caching...
*
*
* Also includes code to generate assets...
*
* then
* we deliver the file from
- * SESSION-DIR/{$www-user}-{$ff->project}-$ff->version}-{js|css}-compile/{filename}';
+ * SESSION-DIR/{$www-user}-{$ff->project}-$ff->version}-{js|css}-compile/{filename}/PATH';
*
*
*/
require_once 'Pman.php';
class Pman_Core_Asset extends Pman {
-
-
+
var $types = array(
'css' => 'text/css',
'js' => 'text/javascript',
);
+ function getAuth()
+ {
+ return true;
+ }
+
- function get($s='')
+ function get($s='', $opts = Array())
{
-
+
+ $this->sessionState(0);
+
$bits = explode('/', $s);
if (empty($bits[0]) || empty($bits[1]) || !isset($this->types[$bits[0]])) {