') !== false) { // 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); } else { echo 'You are not allowed here !' . __FILE__; }