From bd1e50dd488831baa5e48c4fab7b439c41445f19 Mon Sep 17 00:00:00 2001
From: Calvo <luis.calvo@artica.es>
Date: Wed, 15 Sep 2021 12:20:40 +0200
Subject: [PATCH] Removed automatic assignation of PHP configuration variables

---
 pandora_console/index.php | 29 -----------------------------
 1 file changed, 29 deletions(-)

diff --git a/pandora_console/index.php b/pandora_console/index.php
index 3d4b3f3946..548991159e 100755
--- a/pandora_console/index.php
+++ b/pandora_console/index.php
@@ -616,36 +616,7 @@ if (! isset($config['id_user'])) {
                 config_prepare_session();
             }
 
-            if (is_user_admin($config['id_user'])) {
-                // PHP configuration values.
-                $PHPupload_max_filesize = config_return_in_bytes(
-                    ini_get('upload_max_filesize')
-                );
-                $PHPmemory_limit = config_return_in_bytes(
-                    ini_get('memory_limit')
-                );
-                $PHPmax_execution_time = ini_get('max_execution_time');
 
-                if ($PHPmax_execution_time !== '0') {
-                    set_time_limit(0);
-                }
-
-                $PHPupload_max_filesize_min = config_return_in_bytes('800M');
-
-                if ($PHPupload_max_filesize < $PHPupload_max_filesize_min) {
-                    ini_set('upload_max_filesize', config_return_in_bytes('800M'));
-                }
-
-                $PHPmemory_limit_min = config_return_in_bytes('500M');
-
-                if ($PHPmemory_limit < $PHPmemory_limit_min && $PHPmemory_limit !== '-1') {
-                    ini_set('memory_limit', config_return_in_bytes('500M'));
-                }
-
-                set_time_limit((int) $PHPmax_execution_time);
-                ini_set('upload_max_filesize', $PHPupload_max_filesize);
-                ini_set('memory_limit', $PHPmemory_limit);
-            }
 
             // ==========================================================
             // -------- SET THE CUSTOM CONFIGS OF USER ------------------