WinWorldPC / adventure

WinWorld's open library management system
GNU Affero General Public License v3.0
238 stars 33 forks source link

Mirror status text seems to be wrong #48

Open Mechtecs opened 6 years ago

Mechtecs commented 6 years ago

I found no other place to report, so i will just do it here.

http://julian.winworldpc.com/download-test.php and http://bubbles.winworldpc.com/download-test.php look fine, but http://ricky.winworldpc.com/download-test.php states "From julian.winworldpc.com, your IP address appears to be: X.X.X.X" instead of "From ricky.winworldpc.com, your IP address appears to be: X.X.X.X"

ghost commented 6 years ago

It looks as if the /download-test.php scripts on the mirrors have been hand-edited to include the mirror name, rather than determining it through PHP. Hence, this mistake.

@NattyNarwhal Here's a better version of the /download-test.php script, with automatic URL insertion into the page:

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
        <meta charset="utf-8" />
        <title>Mirror IP Check: <?php echo $_SERVER['HTTP_HOST']; ?></title>
</head>

<body>
        <h1>Mirror IP Check: <?php echo $_SERVER['HTTP_HOST']; ?></h1>
        <p>From <?php echo $_SERVER['HTTP_HOST']; ?>, your IP address appears to be: <b><?php echo $_SERVER['REMOTE_ADDR']; ?></b></p>
        <p><a href="https://winworldpc.com/">Click to return to WinWorld...</a></p>
</body>
</html>

And a screenshot (albeit slightly different from the code here):

capture