- if (!is_dir (UPLOADDIR)) {
- if (file_exists (UPLOADDIR)) {
- wiz_error (UPLOADDIR . ": " . trans ('exist but is not a directory'));
- }
- if (!mkdir (UPLOADDIR)) {
- wiz_error (UPLOADDIR . ": " . trans ('could not create directory'));
- } else {
- wiz_success (UPLOADDIR . ": " . trans ('directory created'));
- }
- }
- if (!is_writeable (UPLOADDIR) || !is_executable (UPLOADDIR)) {
- wiz_error (UPLOADDIR . ": " . trans ('could not write in directory'));
+
+ safe_create_writable_dir (UPLOADDIR);
+ safe_create_writable_dir (getthumbsdir ());
+
+ if (!function_exists ("gd_info")) {
+ par_warn (trans ('It looks like GD extension is not installed.'));