diff --git a/composer.json b/composer.json index 1ce70ed3c..d81930825 100644 --- a/composer.json +++ b/composer.json @@ -29,6 +29,7 @@ "ircmaxell/password-compat": "^1.0", "maximebf/debugbar": "^1.13", "monolog/monolog": "^1.22", + "mpdf/mpdf": "^6.1", "paragonie/random_compat": "^2.0", "phpmailer/phpmailer": "^5.2", "spipu/html2pdf": "^4.6", diff --git a/controller.php b/controller.php index 26fb52eb1..a6322bc79 100644 --- a/controller.php +++ b/controller.php @@ -79,7 +79,9 @@ foreach ($plugins as $plugin) { echo ' - '; + '; + +redirectOperation(); /** * Widget laterali. diff --git a/core.php b/core.php index ce7e5df99..e359adf38 100644 --- a/core.php +++ b/core.php @@ -2,17 +2,7 @@ // Impostazioni per la corretta interpretazione di UTF-8 header('Content-Type: text/html; charset=UTF-8'); - -$handler = null; -if (extension_loaded('mbstring')) { - mb_internal_encoding('UTF-8'); - mb_http_output('UTF-8'); - mb_http_input('UTF-8'); - mb_language('uni'); - mb_regex_encoding('UTF-8'); - $handler = 'mb_output_handler'; -} -ob_start($handler); +ob_start(); // Impostazioni di configurazione PHP date_default_timezone_set('Europe/Rome'); diff --git a/editor.php b/editor.php index da65cf1c9..2523983a4 100755 --- a/editor.php +++ b/editor.php @@ -118,19 +118,7 @@ if (file_exists($docroot.'/modules/'.$module_dir.'/add.php') && $module['permess '; } -$backto = filter('backto'); -// Scelta del redirect dopo un submit -if (!empty($backto)) { - $hash = filter('hash'); - $hash = !starts_with($hash, '#') ? '#'.$hash : $hash; - if ($backto == 'record-edit') { - redirect(ROOTDIR.'/editor.php?id_module='.$id_module.'&id_record='.$id_record.$hash); - exit(); - } elseif ($backto == 'record-list') { - redirect(ROOTDIR.'/controller.php?id_module='.$id_module.$hash); - exit(); - } -} +redirectOperation(); echo '