')) { //ignore the line $ignore = true; } if (!$ignore) { fwrite($fh, $line); } } if (!$found_version) { fwrite($fh, '$_configuration[\'dokeos_version\'] = \''.$new_version.'\';'."\r\n"); } if (!$found_stable) { fwrite($fh, '$_configuration[\'dokeos_stable\'] = '.($new_version_stable?'true':'false').';'."\r\n"); } fwrite($fh, '?>'); fclose($fh); $perm = api_get_permissions_for_new_directories(); //$old_umask = umask(0); // This function is not thread-safe. ////create a specific directory for global thumbails //home > default_platform_document > template_thumb if (!is_dir($pathForm.'home/default_platform_document/template_thumb')) { mkdir($pathForm.'home/default_platform_document/template_thumb', $perm); } } else { echo 'You are not allowed here !'; }