Location: PHPKode > projects > WebDesktop > webDesktop/wsk/info.wsk/info.php
<?php 

echo('<table border="0">');
echo('<tbody>');

get_info();

function get_info() {
	//Server Name
	echo('<tr>');
	echo('<td valign="top">');
	echo('<img src="info.wsk/bilder/server_name.png">');
	echo('</td>');
	echo('<td valign="top">');
	echo('<b>server_name:</b>');
	echo('</td>');
	echo('<td valign="top">');
	if(isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] != ''){
		echo($_SERVER['SERVER_NAME']);
	} else {
		echo('unknown');
	}
	echo('</td>');
	echo('</tr>');

	//Server Software
	echo('<tr>');
	echo('<td valign="top">');
	echo('<img src="info.wsk/bilder/server_software.png">');
	echo('</td>');
	echo('<td valign="top">');
	echo('<b>server_software:</b>');
	echo('</td>');
	echo('<td valign="top">');
	if(isset($_SERVER['SERVER_SOFTWARE']) && $_SERVER['SERVER_SOFTWARE'] != ''){
		echo($_SERVER['SERVER_SOFTWARE']);
	} else {
		echo('unknown');
	}
	echo('</td>');
	echo('</tr>');

	//Http User Agent
	echo('<tr>');
	echo('<td valign="top">');
	echo('<img src="info.wsk/bilder/http_user_agent.png">');
	echo('</td>');
	echo('<td valign="top">');
	echo('<b>http_user_agent:</b>');
	echo('</td>');
	echo('<td valign="top">');
	if(isset($_SERVER['HTTP_USER_AGENT']) && $_SERVER['HTTP_USER_AGENT'] != ''){
		echo($_SERVER['HTTP_USER_AGENT']);
	} else {
		echo('unknown');
	}
	echo('</td>');
	echo('</tr>');

	//Remote Adresse
	echo('<tr>');
	echo('<td valign="top">');
	echo('<img src="info.wsk/bilder/remote_addr.png">');
	echo('</td>');
	echo('<td valign="top">');
	echo('<b>remote_addresse:</b>');
	echo('</td>');
	echo('<td valign="top">');
	if(isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] != ''){
		echo($_SERVER['REMOTE_ADDR']);
	} else {
		echo('unknown');
	}
	echo('</td>');
	echo('</tr>');

	//Remote Hostname
	echo('<tr>');
	echo('<td valign="top">');
	echo('<img src="info.wsk/bilder/remote_host.png">');
	echo('</td>');
	echo('<td valign="top">');
	echo('<b>remote_hostname:</b>');
	echo('</td>');
	echo('<td valign="top">');
	if(isset($_SERVER['REMOTE_HOST']) && $_SERVER['REMOTE_HOST'] != ''){
		echo($_SERVER['REMOTE_HOST']);
	} else {
		echo('unknown');
	}
	echo('</td>');
	echo('</tr>');
}

echo('</tbody>');
echo('</table>');
?>
Return current item: WebDesktop