mcramer
2013-08-26 e43a5e563f66e80263494570cff430beafdbacb8
- Improved patch script

1 files modified
9 ■■■■■ changed files
server/scripts/ispconfig_patch.php 9 ●●●●● patch | view | raw | blame | history
server/scripts/ispconfig_patch.php
@@ -105,6 +105,15 @@
    die();
}
$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');
    if($ok != 'y') {
        swriteln("Patch terminated by user.\n");
        die();
    }
}
$temp_file = tempnam(sys_get_temp_dir(), 'ispc');
file_put_contents($temp_file, $patch_data);