diff --git a/app.php b/app.php index f55f9da..04eee04 100644 --- a/app.php +++ b/app.php @@ -57,9 +57,6 @@ $f3->route('GET /signature', $f3->route('GET /signature/@hash', function($f3, $param) { $f3->set('hash', $param['hash']); - $port = $f3->get('PORT'); - $f3->set('shareLink', $f3->set('urlbase', $f3->get('SCHEME').'://'.$_SERVER['SERVER_NAME'].(!in_array($port,[80,443])?(':'.$port):'').$f3->get('BASE')).$f3->get('URI')); - $f3->set('maxSize', min(array(convertPHPSizeToBytes(ini_get('post_max_size')), convertPHPSizeToBytes(ini_get('upload_max_filesize'))))); $f3->set('maxPage', ini_get('max_file_uploads') - 1); diff --git a/templates/signature.html.php b/templates/signature.html.php index af7407d..b7483f4 100644 --- a/templates/signature.html.php +++ b/templates/signature.html.php @@ -155,7 +155,7 @@ - +