Programming

  • 0 {{ upvoteCount | shortNum }}

    Including AdSense On Select MediaWiki Pages...

    Michael Ten in Programming

    Alright here is my question.... PHP Code: <?php           if(!strstr($_SERVER['REQUEST_URI'], "Special:") &&                !strstr($_SERVER['REQUEST_URI'], "User:") &&                !strstr($_SERVER['REQUEST_URI'], "User_talk:") &&                !strstr($_SERVER['REQUEST_URI'], "Image:") &&                !strstr($_SERVER['REQUEST_URI'], "action=submit") &&                !strstr($_SERVER['REQUEST_URI'], "action=edit") &&                !strstr($_SERVER['REQUEST_URI'], "Secure:") &&                !strstr($_SERVER['REQUEST_URI'], "Template:")) {             include("adsense/adsense_unit1.php");           } Right now, I use this code on a wiki to display AdSense ... [read more]