From: Silvio Rhatto Date: Fri, 9 Apr 2021 00:55:14 +0000 (-0300) Subject: Fix: try to fix bookmark import size limit X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=dd5335583618235ec9df212f0c3a80277955dc7d;p=semanticscuttle.git Fix: try to fix bookmark import size limit --- 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();