0) || (@$_REQUEST["debug"] == "y"); // js print_r("\ncompress js\n".str_repeat("-",80)."\n"); $stat = array( "stat_js" => $fname.".js", "stat_depr" => $fname."_deprecated.js" ); foreach ($stat as $st=>$output) { $content = ""; // list of files $files = array_values(array_map("trim", array_diff(explode("\n", file_get_contents("conf/".$st)), array("")))); for ($q=0; $q 0) { $name = "../../codebase/".$output; file_put_contents("temp.js", $content); exec($compiler.' --type js temp.js -o "'.$name.'"'); unlink("temp.js"); // copyright file_put_contents($name, $copyright.file_get_contents($name)); // print_r(sprintf("%10s bytes", number_format(filesize("../../codebase/".$output))).str_repeat(" ",4)."../../codebase/".$output."\n"); } // debug if ($debug == true && $st == "stat_js") { $output_d = "../../codebase/".$fname."_debug.js"; file_put_contents($output_d, $content); print_r(sprintf("%10s bytes", number_format(filesize($output_d))).str_repeat(" ",4).$output_d."\n"); } } // js copy only $files = array_values(array_map("trim", array_diff(explode("\n", file_get_contents("conf/stat_copy")), array("")))); if (count($files) > 0) { print_r("\njs copy only\n".str_repeat("-",80)."\n"); } for ($q=0; $qfile if (file_exists("../".$d[0].$d[1]) && !is_dir("../".$d[0].$d[1])) { // create dirs if any $k = "../../codebase"; $p = pathinfo($d[1]); if ($p["dirname"] != ".") { $f = explode("/", $p["dirname"]); for ($w=0; $w 0) { print_r("\ncompress css\n".str_repeat("-",80)."\n"); } // compress for ($q=0; $q