'); } } else { $start = strpos($yuiFile, "/build/"); if($start === FALSE) die(''); $start += strlen("/build/"); $end = strpos($yuiFile, ".js"); if($end === FALSE) die(''); $yuiComponents[] = substr($yuiFile, $start, $end - $start); } } $library = myfile_get_contents(getabspath("include/yui/yui.lib"), "r"); } else { // css foreach($yuiFiles as $yuiFile) { $start = strpos($yuiFile, "/build/"); if($start === FALSE) die(''); $start += strlen("/build/"); $yuiComponents[] = substr($yuiFile, $start); } $library = myfile_get_contents(getabspath("include/yui/yuicss.lib"), "r"); } header("Cache-Control: max-age=315360000"); header("Expires: Thu, 29 Oct 2020 20:00:00 GMT"); header("Content-Type: " . $contentType); foreach($yuiComponents as $y) { $start = strpos($library, "begincombofile ".$y); if($start === FALSE) { die("Unknown file ".$y); } $start += strlen("begincombofile ".$y); $end = strpos($library, "endcombofile", $start); if($end === FALSE) { die("Unknown file ".$y); } echo substr($library, $start, $end - $start); } ?>