This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eddie Monge
authored and
Eddie Monge
committed
Jun 9, 2011
1 parent
f8957ba
commit 3688e8f
Showing
2 changed files
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
<?php | ||
|
||
if (!isset($type) || !isset($elements)) | ||
if ( ! isset($type) || ! isset($elements) ) | ||
{ | ||
echo "\$type and \$elements must be specified!"; | ||
echo '$type and $elements must be specified!'; | ||
exit; | ||
} | ||
|
||
$contents = ''; | ||
reset($elements); | ||
while (list(,$element) = each($elements)) { | ||
$contents .= "\n\n" . file_get_contents($element); | ||
|
||
foreach ( $elements as $file ) { | ||
$contents .= file_get_contents($file). "\n\n"; | ||
} | ||
|
||
header("Content-Type: " . $type); | ||
header("Content-Length: " . strlen($contents)); | ||
echo $contents; | ||
?> | ||
header('Content-Type: ' . $type); | ||
header('Content-Length: ' . strlen($contents)); | ||
echo $contents; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,5 +30,4 @@ | |
'jquery.mobile.init.js' | ||
); | ||
|
||
include('../combine.php'); | ||
?> | ||
include('../combine.php'); |