mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-29 09:44:28 +01:00
h
This commit is contained in:
parent
1f5a75d56c
commit
8d16716c2d
2
mod.php
2
mod.php
@ -354,7 +354,7 @@
|
|||||||
$zip->close();
|
$zip->close();
|
||||||
|
|
||||||
// For some reason, reading the ZIP entries in PHP doesn't seem to work very well.
|
// For some reason, reading the ZIP entries in PHP doesn't seem to work very well.
|
||||||
// Use bash instead.
|
// Use shell instead.
|
||||||
shell_exec('TEMP_DIR=$(mktemp -d); unzip -q "' . $temp . '" -d $TEMP_DIR -x "' . $dir . 'inc/instance-config.php"; mv -v $TEMP_DIR/' . $dir . '* "' . getcwd() . '"; rm -rf $TEMP_DIR');
|
shell_exec('TEMP_DIR=$(mktemp -d); unzip -q "' . $temp . '" -d $TEMP_DIR -x "' . $dir . 'inc/instance-config.php"; mv -v $TEMP_DIR/' . $dir . '* "' . getcwd() . '"; rm -rf $TEMP_DIR');
|
||||||
|
|
||||||
unlink($temp);
|
unlink($temp);
|
||||||
|
Loading…
Reference in New Issue
Block a user