Skip to content

Commit

Permalink
fixes xml zip #911
Browse files Browse the repository at this point in the history
  • Loading branch information
mirsch committed May 26, 2016
1 parent ad0de3f commit 2588517
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/lib/settings-dev.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
$sql_replacements['tmpdb'] = $tmpdbname;

// safemode_zip-binary
$safemode_zip = '/var/www/bin/phpzip.php';
$safemode_zip = '/var/www/html/local/prodsys/phpzip.php';
$zip_basedir = $dev_basepath . ($dev_codepath == '*' ? '' : $dev_codepath . 'htdocs/') . 'download/zip/';
$zip_wwwdir = 'download/zip/';

Expand Down
4 changes: 3 additions & 1 deletion local/prodsys/phpzip.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
* Wrapper for unix-utilities zip, gzip and bz2
***************************************************************************/

$basedir = '/path/to/htdocs/download/zip/';
require_once __DIR__ . '/../../htdocs/lib/settings.inc.php';

$basedir = $zip_basedir;

$zipper['zip'] = 'nice --adjustment=19 zip -j -q -1 {dst} {src}';
$zipper['gzip'] = 'nice --adjustment=19 gzip -1 -c {src} > {dst}';
Expand Down

0 comments on commit 2588517

Please sign in to comment.