your-ip/index.php

<?php include '../config.php' ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Your public IP</title>

	<?php include DOCROOT.'header.php' ?>

	<link rel="stylesheet" href="index.css">

</head>
<body>
	<h1>Your public IP</h1>

	<div id="ip">
		<span>
			<?php echo $_SERVER['REMOTE_ADDR'] ?>
		</span>
	</div>


	<?php include DOCROOT.'footer.php'; ?>

</body>
</html>