From dd5335583618235ec9df212f0c3a80277955dc7d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 8 Apr 2021 21:55:14 -0300 Subject: Fix: try to fix bookmark import size limit --- data/templates/default/importNetscape.tpl.php | 4 ++-- puppet/config/node/links.example.org.yaml | 14 ++++++++++++++ www/importNetscape.php | 4 ++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/data/templates/default/importNetscape.tpl.php b/data/templates/default/importNetscape.tpl.php index 627a5af..7ed4bb1 100644 --- a/data/templates/default/importNetscape.tpl.php +++ b/data/templates/default/importNetscape.tpl.php @@ -8,7 +8,7 @@ $this->includeTemplate($GLOBALS['top_include']); - + @@ -47,4 +47,4 @@ $this->includeTemplate($GLOBALS['top_include']); includeTemplate($GLOBALS['bottom_include']); -?> \ No newline at end of file +?> diff --git a/puppet/config/node/links.example.org.yaml b/puppet/config/node/links.example.org.yaml index 449feff..9041cbf 100644 --- a/puppet/config/node/links.example.org.yaml +++ b/puppet/config/node/links.example.org.yaml @@ -10,6 +10,20 @@ nodo::role: 'web' classes: - 'php' +# +# PHP +# +php::config: + #post_max_size: + # series: '7' + # value: '100M' + #upload_max_filesize: + # series: '7' + # value: '100M' + memory_limit: + series: '7' + value: '128M' + # # MySQL # diff --git a/www/importNetscape.php b/www/importNetscape.php index 9a52407..909305d 100644 --- a/www/importNetscape.php +++ b/www/importNetscape.php @@ -33,6 +33,10 @@ isset($_POST['status']) ? define('POST_STATUS', $_POST['status']): define('POST_ $countImportedBookmarks = 0; $tplVars['msg'] = ''; +if ($userservice->isLoggedOn() && sizeof($_FILES)) { +print_r($_FILES['userfile']); +} + if ($userservice->isLoggedOn() && sizeof($_FILES) > 0 && $_FILES['userfile']['size'] > 0) { $userinfo = $userservice->getCurrentObjectUser(); -- cgit v1.2.3