// create the course content directory
$path = AT_CONTENT_DIR . $new_course_id . '/';
- @mkdir($path, 0700);
+ @mkdir($path, 2770);
@copy(AT_CONTENT_DIR . 'index.html', AT_CONTENT_DIR . $new_course_id . '/index.html');
// create the course backup directory
$path = AT_BACKUP_DIR . $new_course_id . '/';
- @mkdir($path, 0700);
+ @mkdir($path, 2770);
@copy(AT_CONTENT_DIR . 'index.html', AT_BACKUP_DIR . $new_course_id . '/index.html');
/* insert some default content: */
$path = AT_CONTENT_DIR.$owner_id."/custom_icons/";
if (!is_dir($path)) {
- @mkdir($path);
+ @mkdir($path, $mode = 2770);
}
// if we can upload custom course icon, it means GD is enabled, no need to check extension again.