fix get user data; fix qrcode library

This commit is contained in:
Marc Wäckerlin
2017-03-01 09:08:27 +00:00
parent 3a20a4b277
commit 4e8b759612
3 changed files with 13 additions and 11 deletions

View File

@@ -158,12 +158,6 @@
}
if (!isset($_REQUEST['secret'])) {
if ($username=="") error_die('not authorized', '403 Forbidden');
?>
<h1>Your Login Data</h2>
<pre>
<?php print_r($data) ?>
</pre>
<?php
if (isset($_REQUEST['path'])) checkPath($_REQUEST['path']);
if (isset($_REQUEST['folder']) && !preg_match('/\//', $_REQUEST['folder'])) {
$file = $thumbpath.'/folders/'.$subpath.'/'.$_REQUEST['folder'].'.png';
@@ -210,7 +204,7 @@
foreach ($secret['elements'] as $f) {
checkFile($f);
$size += 512 + ceil(filesize($file)/512)*512;
$files[] = $file;
$files[] = $file;
}
header('Content-Description: File Transfer');
header('Content-Type: application/x-tar');