496 |
+ if (($cacti{'status'} || 'disabled') eq 'enabled'){ |
+ if (($cacti{'status'} || 'disabled') eq 'enabled'){ |
497 |
+ my $max_upload_size = ($cacti{MaxUploadSize} || '4096'); |
+ my $max_upload_size = ($cacti{MaxUploadSize} || '4096'); |
498 |
+ $max_upload_size .= 'M' if ($max_upload_size =~ m/^\d+$/); |
+ $max_upload_size .= 'M' if ($max_upload_size =~ m/^\d+$/); |
499 |
+ my $memory_limit = ($cacti{MemoryLimit} || '5555500M'); |
+ my $memory_limit = ($cacti{MemoryLimit} || '500M'); |
500 |
+ $memory_limit .= 'M' if ($memory_limit =~ m/^\d+$/); |
+ $memory_limit .= 'M' if ($memory_limit =~ m/^\d+$/); |
501 |
+ my $open_basedir= $cacti{PHPBaseDir} || ''; |
+ my $open_basedir= $cacti{PHPBaseDir} || ''; |
502 |
+ $open_basedir = "/tmp/:/share/:/var/log/cacti:/etc/cacti/db.php:/usr/share/cacti:/var/lib/cacti:/var/log/cacti.log:/var/lib/php/cacti:/home/e-smith/files/cacti:/dev/urandom:/proc/meminfo:$open_basedir"; |
+ $open_basedir = "/tmp/:/share/:/var/log/cacti:/etc/cacti/db.php:/usr/share/cacti:/var/lib/cacti:/var/log/cacti.log:/var/lib/php/cacti:/home/e-smith/files/cacti:/dev/urandom:/proc/meminfo:$open_basedir"; |