[INFO] Found usr/ folder!

"; } else { echo "

[ERRO] usr/ folder not found

"; echo "

[INFO] Creating usr/ folder...

"; mkdir("usr"); } if (is_dir(__DIR__."/../../../usr/images")) { echo "

[INFO] Found usr/images/ folder!

"; } else { echo "

[ERRO] usr/images/ folder not found

"; echo "

[INFO] Creating usr/images/ folder...

"; mkdir("usr/images"); } if (!is_dir(__DIR__."/../../../usr/images/thumbnails")) { echo "

[ERRO] usr/images/thumbnails/ folder not found

"; echo "

[INFO] Creating usr/images/thumbnails/ folder...

"; mkdir("usr/images/thumbnails"); } if (!is_dir(__DIR__."/../../../usr/images/previews")) { echo "

[ERRO] usr/images/previews/ folder not found

"; echo "

[INFO] Creating usr/images/previews/ folder...

"; mkdir("usr/images/previews"); } if (!is_dir(__DIR__."/../../../usr/conf")) { echo "

[ERRO] usr/conf/ folder not found

"; echo "

[INFO] Creating usr/conf/ folder...

"; mkdir("usr/conf"); } if (is_file(__DIR__."/../../../usr/conf/conf.json")) { echo "

[INFO] Found usr/conf/conf.json file!

"; } else { echo "

[ERRO] usr/conf/conf.json file not found

"; echo "

[INFO] Creating usr/conf/conf.json file...

"; try { $conf = file_get_contents(__DIR__."/../../../usr/conf.default.json"); $conf_new = fopen(__DIR__."/../../../usr/conf/conf.json", "w"); if ($conf_new) { fwrite($conf_new, $conf); fclose($conf_new); echo "

[INFO] usr/conf/conf.json file created!

"; } else { echo "

[ERRO] Failed to create usr/conf/conf.json file

"; } } catch (Exception $e) { echo "

[ERRO] Could not read usr/conf.default.json file

"; } } }