Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ipint = $_SERVER['SERVER_ADDR'];
- $ipext = file_get_contents('http://phihag.de/ip/');
- $ipclient = explode(".", $_SERVER['REMOTE_ADDR']);
- if ($ipclient[0] == 192) {
- $piip = $ipint;
- }
- else {
- $piip = $ipext;
- };
- ?>
- <html>
- <head>
- <title>Pi</title>
- <meta charset="UTF-8">
- </head>
- <body>
- <h1 align="center">Pi</h1>
- <h5 align="center">
- IP interno: <a href="<?php echo $ipint ?>"><?php echo $ipint ?></a>
- |
- IP esterno:
- </h5>
- <hr />
- <h4>Service:</h4>
- <ul>
- <li><a href="<?php echo $ipint ?>:9091/">Transmission</a></li>
- <li><a href="">Downloads folder</a></li>
- <li><a href="">Dashboard</a></li>
- </ul>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment