<?php

function checkVersion() {
	$current = explode("-", file_get_contents("version"));
	$latest = explode("-", file_get_contents("https://raw.github.com/VeoPVM/LinMon/master/slave/version"));
	
	if ($current[0] != $latest[0]) {
		$current = $current[1];
		$latest = $latest[1];
		return "A new version of the slave is available! \n Your version: ".$current." \n Latest version: ".$latest." \n";
	}
}

?>
<?php

function checkVersion() {
	$current = explode("-", file_get_contents("version"));
	$latest = explode("-", file_get_contents("https://raw.github.com/VeoPVM/LinMon/master/slave/version"));
	
	if ($current[0] != $latest[0]) {
		$current = $current[1];
		$latest = $latest[1];
		return "A new version of the slave is available!
		Your version: ".$current."
		Latest version: ".$latest." \n";
	}
}

?>
--- 
+++ 
@@ -7,9 +7,7 @@
 	if ($current[0] != $latest[0]) {
 		$current = $current[1];
 		$latest = $latest[1];
-		return "A new version of the slave is available!
-		Your version: ".$current."
-		Latest version: ".$latest." \n";
+		return "A new version of the slave is available! \n Your version: ".$current." \n Latest version: ".$latest." \n";
 	}
 }
 
Correct line spacing in update checker
