fixed PHP environment variables

This commit is contained in:
Palma Solutions LTD 2017-05-11 19:18:19 +02:00
parent 5802f0adf2
commit ac886f3c79
2 changed files with 8 additions and 10 deletions

View File

@ -0,0 +1,6 @@
memory_limit = 512M
max_execution_time = 0
set_time_limit = 0
display_errors = 0
max_input_time = 50000
default_socket_timeout = 50000

12
sc.php
View File

@ -1,8 +1,8 @@
<?php
/* Moved to the README.md*/
$version = "v4.0.2";
$released = "November/16";
$version = "v4.0.3";
$released = "May/17";
$author = "Malin Cenusa";
$mail = "malin.cenusa@lunarpages.com";
$ip = "84.124.94.176";
@ -150,14 +150,6 @@ body{
<?php
/* setting the PHP environment variables */
ini_set('memory_limit', '512M');
ini_set('max_execution_time', '0'); // supress problems with timeouts
ini_set('set_time_limit', '0'); // supress problems with timeouts
ini_set('display_errors', '0'); // show/hide errors
ini_set("max_input_time", '50000');
ini_set('default_socket_timeout', '50000');
/* let's define the paths first */
$GLOBALS["userdir"] = system('whoami');
$GLOBALS["public_html"] = '/home/'.$GLOBALS["userdir"].'/public_html';