From 60f5790b02abd2835ae35ba474d3e9495f8a59d4 Mon Sep 17 00:00:00 2001 From: gs291 Date: Mon, 18 Mar 2019 20:03:01 -0700 Subject: [PATCH] Fix saving projects --- php/config.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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(); - -