- Minor fixes in new patch script
| | |
| | | |
| | | $patch_text = @file_get_contents('http://ispconfig.org/downloads/patches/' . $patch_id . '.txt'); |
| | | if($patch_text) { |
| | | $ok = simple_query("Patch description:\n".$patch_text."\n".str_repeat("-", 80)."Do you really want to apply this patch now?", array('y','n'), 'y'); |
| | | $ok = simple_query("Patch description:\n".str_repeat("-", 80)."\n".$patch_text."\n".str_repeat("-", 80)."\nDo you really want to apply this patch now?", array('y','n'), 'y'); |
| | | if($ok != 'y') { |
| | | swriteln("Patch terminated by user.\n"); |
| | | die(); |
| | |
| | | |
| | | passthru('patch -p0 < ' . escapeshellarg($temp_file)); |
| | | |
| | | unlink($temp_file); |
| | | |
| | | exit; |
| | | |
| | | ?> |