diff --git a/app.php b/app.php index 6e1e15a..9952fe4 100644 --- a/app.php +++ b/app.php @@ -40,16 +40,14 @@ function convertPHPSizeToBytes($sSize) $f3->route('GET /', function($f3) { - $f3->set('key', hash('md5', uniqid().rand())); $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); echo View::instance()->render('index.html.php'); } ); -$f3->route('GET /@key', +$f3->route('GET /sign', function($f3) { - $f3->set('key', $f3->get('PARAMS.key')); $f3->set('maxPage', ini_get('max_file_uploads') - 1); echo View::instance()->render('pdf.html.php'); diff --git a/templates/index.html.php b/templates/index.html.php index c0267fb..39757ed 100644 --- a/templates/index.html.php +++ b/templates/index.html.php @@ -28,26 +28,19 @@