diff --git a/php/config.php b/php/config.php index b2fcf45..d7097c2 100644 --- a/php/config.php +++ b/php/config.php @@ -10,7 +10,7 @@ function createDirectory($dir) { if (!is_dir("../".$dir)) { - mkdir("../".$dir.'/', 0777); + mkdir("../".$dir, 0777); } } @@ -20,16 +20,16 @@ function createDirectory($dir) } $DIR_data = 'data' . $systemStep; -$DIR_projectsData = $DIR_data . 'projectsData' . $systemStep . $_SESSION['user'] . $systemStep; +$DIR_Projects = $DIR_data . 'projectsData' . $systemStep; +$DIR_projectsData = $DIR_Projects . $_SESSION['user'] . $systemStep; $DIR_RenderStat = $DIR_data. 'renderStats'.$systemStep; -$DIR_Sample = '../samples'; // if you want to change the samples place. +$DIR_Sample = $DIR_data . 'samples' . $systemStep; // if you want to change the samples place. // We create directory if they not exist. -createDirectory($DIR_projectsData); createDirectory($DIR_data); +createDirectory($DIR_Projects); +createDirectory($DIR_projectsData); createDirectory($DIR_RenderStat); $fileSufix = uniqid(); - -