Location: PHPKode > projects > JaxBlog > JaxBlog/resource/jsmin/jax-recombine.php
<?php

$base_path = "../../";

require_once($base_path . 'resource/jsmin/jsmin.php');
require_once($base_path . 'app/common/filesystem.php');
//$full = file_get_contents(FOLDER_RELATIVE_BASE . "module/common/jax-xmlhttprequest.js");

function convertScript($comment, $script_path) {
	$content = JSMin::minify(file_get_contents($script_path));
	return "\n\n" . $comment . "\n" . $content;
}

$content = "";
$content .= convertScript("// Begin XMLHttpRequest", $base_path . "module/common/jax-xmlhttprequest.js");
$content .= convertScript("// Begin Highlight", $base_path . "module/common/jax-highlight.js");
$content .= convertScript("// Begin Common", $base_path . "module/common/jax-common.js");
$content .= convertScript("// Begin Dialog", $base_path . "module/common/jax-dialog.js");
$content .= convertScript("// Begin Effect", $base_path . "module/common/jax-effect.js");

$content .= convertScript("// Begin Modal", $base_path . "module/JaxModal/jax-modal.js");
$content .= convertScript("// Begin Form", $base_path . "module/JaxForm/jax-form.js");
$content .= convertScript("// Begin Scoreboard", $base_path . "module/JaxScoreboard/jax-scoreboard.js");
$content .= convertScript("// Begin Calendar", $base_path . "module/JaxCalendar/jax-calendar.js");
$content .= convertScript("// Begin Slideshow", $base_path . "module/JaxSlideshow/jax-slideshow.js");
$content .= convertScript("// Begin Login", $base_path . "module/JaxLogin/jax-login.js");
$content .= convertScript("// Begin Editor", $base_path . "module/JaxEditor/jax-editor.js");
$content .= convertScript("// Begin Table", $base_path . "module/JaxTable/jax-table.js");
$content .= convertScript("// Begin Tree", $base_path . "module/JaxTree/jax-tree.js");

fileWrite($base_path . "module/common/jax-combined.js", $content);

echo "Success!\n\n";

?>
Return current item: JaxBlog