mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
- Switch to using a combine.php library and index.php scripts within each directory for combining files. This works around the iOS webkit bug that prevents images from being displayed the next time the page is loaded.
18 lines
No EOL
342 B
PHP
18 lines
No EOL
342 B
PHP
<?php
|
|
|
|
if (!isset($type) || !isset($elements))
|
|
{
|
|
echo "\$type and \$elements must be specified!";
|
|
exit;
|
|
}
|
|
|
|
$contents = '';
|
|
reset($elements);
|
|
while (list(,$element) = each($elements)) {
|
|
$contents .= "\n\n" . file_get_contents($element);
|
|
}
|
|
|
|
header("Content-Type: " . $type);
|
|
header("Content-Length: " . strlen($contents));
|
|
echo $contents;
|
|
?>
|