web/event_process.php
changeset 1007 35d9258aad76
parent 1006 bb98a0de3bfd
child 1040 764461c218c2
equal deleted inserted replaced
1006:bb98a0de3bfd 1007:35d9258aad76
    11 function create_zip($zip_path,$zip_folder, $config_values, $files) {
    11 function create_zip($zip_path,$zip_folder, $config_values, $files) {
    12     $zip = new ZipArchive;
    12     $zip = new ZipArchive;
    13     if($zip->open($zip_path, ZipArchive::CREATE) === FALSE) {
    13     if($zip->open($zip_path, ZipArchive::CREATE) === FALSE) {
    14     	return FALSE;
    14     	return FALSE;
    15     }
    15     }
    16     $config_content = "<?php\n\$config = array(\n";
    16     $config_content = "<?php\n\$config = array(\n    'rep' => basename(__DIR__),\n";
    17     foreach ($config_values as $key => $value) {
    17     foreach ($config_values as $key => $value) {
    18     	if($value === "__TRUE__") {
    18     	if($value === "__TRUE__") {
    19     		$config_content .= "    '$key' => true,\n";
    19     		$config_content .= "    '$key' => true,\n";
    20     	}
    20     	}
    21     	elseif ($value === "__FALSE__") {
    21     	elseif ($value === "__FALSE__") {