mirror of
https://github.com/kennethreitz-archive/wp-krtheme.git
synced 2026-06-05 23:40:16 +00:00
15 lines
489 B
PHP
15 lines
489 B
PHP
<?php
|
|
$options = 'libs,jquery.browser.addEnvClass,jquery.color,jquery.initInput,jquery.addFileInfo,jquery.incrementalFilter,init';
|
|
ob_start('ob_gzhandler');
|
|
header('Content-Type: text/javascript');
|
|
$files = $options? split(',',$options): split(",",$_GET['files']);
|
|
foreach($files as $key=>$val){
|
|
if(file_exists($val.'.js')){
|
|
echo "\n\n/*** File \"$val.js\" starts here. ***/\n\n";
|
|
include_once($val.'.js');
|
|
}else{
|
|
echo "\n\n/*** File \"$val.js\" does not exist. ***/\n\n";
|
|
}
|
|
}
|
|
?>
|