]> jfr.im git - irc/kvirc/kvirc-www.git/commitdiff
Fixing the detection of kvirc.de mirror
authorJan Wagner <redacted>
Mon, 18 Jan 2016 11:26:17 +0000 (12:26 +0100)
committerJan Wagner <redacted>
Mon, 18 Jan 2016 11:26:17 +0000 (12:26 +0100)
conf/functions.php
index.php

index 2fb2b568245b21d176cd1d54174140ef4cbd5295..7cd20946f8f9ab1c84084c991afd7b5fa3dc0f5e 100644 (file)
@@ -86,7 +86,7 @@ function humanSize($size)
 function getHostKvircde()
 {
        // Detection of kvirc.de machines
-       return (stristr(gethostbyaddr(gethostbyname($_SERVER["SERVER_NAME"])),'kvirc.de')) ? 1 : 0;
+       return (stristr(($_SERVER["SERVER_NAME"]),'kvirc.de')),'kvirc.de')) ? 1 : 0;
 }
 
 // News
index 3ac2e150bc0d33272b4ddc961b5f4f0f155d4855..0d93ef1d704cba2743ed2d5bd3137861e8debc0b 100644 (file)
--- a/index.php
+++ b/index.php
@@ -322,7 +322,7 @@ search();
                        <p class="credits"><a href="javascript:opendoc('http://validator.w3.org/check/referer');" title="Validate XHTML code">XHTML 1.1</a> | <a href="javascript:opendoc('http://jigsaw.w3.org/css-validator/check/referer');" title="Validate CSS code">CSS 2.1</a> | credits</p>
                </div>
        </div>
-       <?php if(stristr(gethostbyaddr(gethostbyname($_SERVER['SERVER_NAME'])), 'kvirc.de')): ?>
+       <?php if(stristr(($_SERVER["SERVER_NAME"]),'kvirc.de')): ?>
                <div id="akct">
                        <a id="akpeel" href="javascript:opendoc('http://www.vorratsdatenspeicherung.de');" title="Stoppt die Vorratsdatenspeicherung! Jetzt klicken &amp; handeln!">
                                <img src="http://wiki.vorratsdatenspeicherung.de/images/Akvst.gif" alt="Stoppt die Vorratsdatenspeicherung! Jetzt klicken &amp; handeln!" />