Skip to content

Commit

Permalink
Merge pull request #2 from gs291/is1-fix-saving-project
Browse files Browse the repository at this point in the history
Fix saving projects
  • Loading branch information
gs291 authored Mar 19, 2019
2 parents 732c716 + 60f5790 commit 61aea0c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions php/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function createDirectory($dir)
{
if (!is_dir("../".$dir))
{
mkdir("../".$dir.'/', 0777);
mkdir("../".$dir, 0777);
}
}

Expand All @@ -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();


0 comments on commit 61aea0c

Please sign in to comment.