= 0) deleteServer($index); } ?> Server Status Port

Monitoring Serv.

Monitoring image
0%
CPU

Cpu

0%
Memory

Memory

					
0%
Disk

Disk

Validity SSL echosystem.fr
                	 SSL.txt
	                  	$file='SSL.txt';
						$contenu=file_get_contents($file); 
						echo "$contenu"; 
						?>
					
					


Server Status Port

Name Domain IP Port Status Delete


Name service
Host / Domain
Port


addChild('server'); $server->addAttribute('id', (string) $i); if(strlen($name) == 0) $name = $host; $server->addChild('name', (string)$name); $server->addChild('host', (string)$host); $server->addChild('port', (string)$port); $servers->asXML($filename); } function parser() { //TODO : Fix errors when no valid XML content inside file. $file = "servers.xml"; if(file_exists($file)) { $servers = file_get_contents("servers.xml"); if (trim($servers) == '') //File exists but empty { $content = ""; file_put_contents($file, $content, FILE_APPEND | LOCK_EX); } else { $servers = simplexml_load_file("servers.xml"); foreach ($servers as $server) { echo ""; echo "".$server->name.""; if(filter_var($server->host, FILTER_VALIDATE_IP)) { echo "N/A".$server->host.""; } else { echo "".$server->host."".gethostbyname($server->host).""; } echo "".$server->port.""; if (getStatus((string)$server->host, (string)$server->port)) { echo "Online"; } else { echo "Offline"; } echo "attributes()."\" style=\"text-decoration:none\">X"; echo ""; } } } else { // TODO : detect creation errors (ex : permissions) $content = ""; file_put_contents($file, $content, FILE_APPEND | LOCK_EX); } } function deleteServer($index) { $file = "servers.xml"; $serverFile = new DOMDocument; $serverFile->formatOutput = true; $serverFile->load($file); $servers = $serverFile->documentElement; $list = $servers->getElementsByTagName('server'); $nodeToRemove = null; foreach ($list as $server) { $attrValue = $server->getAttribute('id'); if ((int)$attrValue == $index) $nodeToRemove = $server; } if ($nodeToRemove != null) $servers->removeChild($nodeToRemove); $serverFile->save($file); header('Location: index.php'); }