Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (13 sloc) 0.309 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?php

if ( ! isset($type) || ! isset($elements) )
{
echo '$type and $elements must be specified!';
exit;
}

$contents = '';

foreach ( $elements as $file ) {
$contents .= file_get_contents($file). "\n\n";
}

header('Content-Type: ' . $type);
header('Content-Length: ' . strlen($contents));
echo $contents;
Something went wrong with that request. Please try again.