mcramer
2013-08-26 ee4c5aca91c07a9a417c6ce810008b75211db38d
- Minor fixes in new patch script

1 files modified
4 ■■■ changed files
server/scripts/ispconfig_patch.php 4 ●●● patch | view | raw | blame | history
server/scripts/ispconfig_patch.php
@@ -107,7 +107,7 @@
$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();
@@ -121,6 +121,8 @@
passthru('patch -p0 < ' . escapeshellarg($temp_file));
unlink($temp_file);
exit;
?>