') !== false) { $ignore = true; } if (!$ignore) { fwrite($fh, $line); } } if (!$found_version) { fwrite($fh, '$_configuration[\'system_version\'] = \''.$safe($new_version).'\';'."\r\n"); } if (!$found_stable) { fwrite($fh, '$_configuration[\'system_stable\'] = '.($new_version_stable ? 'true' : 'false').';'."\r\n"); } if (!$found_software_name) { fwrite($fh, '$_configuration[\'software_name\'] = \''.$safe($software_name).'\';'."\r\n"); } if (!$found_software_url) { fwrite($fh, '$_configuration[\'software_url\'] = \''.$safe($software_url).'\';'."\r\n"); } fclose($fh); error_log("configuration.php file updated."); } else { echo 'You are not allowed here !'.__FILE__; }