+
- ";
-
- // Set splash/landing page based off presence of $landPage
- $renderPage = is_file(getcwd()."/$landPage") ? include $landPage : "$splashPage";
-
- // Unset variables so as to not be included in $landPage
- unset($serverName, $svPasswd, $svEmail, $authorizedHosts, $validExtTypes, $currentUrlExt, $viewPort);
-
- // Render splash/landing page when directly browsing via IP or authorized hostname
- exit($renderPage);
+EOT;
+ exit($splashPage);
} elseif ($currentUrlExt === "js") {
- // Serve Pi-hole Javascript for blocked domains requesting JS
+ // Serve Pi-hole JavaScript for blocked domains requesting JS
exit(setHeader("js").'var x = "Pi-hole: A black hole for Internet advertisements."');
} elseif (strpos($_SERVER["REQUEST_URI"], "?") !== FALSE && isset($_SERVER["HTTP_REFERER"])) {
// Serve blank image upon receiving REQUEST_URI w/ query string & HTTP_REFERRER
// e.g: An iframe of a blocked domain
- exit(setHeader().'
-
-