Skip to content

Commit

Permalink
Now checks for user data app/registry folders and creates if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
kitkatzecat committed Dec 24, 2018
1 parent 48dec22 commit 1e09792
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ function str_lreplace($search, $replace, $subject)
FlyLoadTheme('all');
audio_sound_init($config_user);

// CHECK USER FOLDERS
if (!is_dir($_FLY['USER']['DATA_PATH'])) {
mkdir($_FLY['USER']['DATA_PATH']);
}
if (!is_dir($_FLY['USER']['DATA_PATH'].'apps')) {
mkdir($_FLY['USER']['DATA_PATH'].'apps');
}
if (!is_dir($_FLY['USER']['DATA_PATH'].'registry')) {
mkdir($_FLY['USER']['DATA_PATH'].'registry');
}

?>
<script>
function onload() {
Expand Down

0 comments on commit 1e09792

Please sign in to comment.