SITE_NAME", "short_name": "$ENV->SITE_NAME", "description": "$ENV->DESCRIPTION", "start_url": "index.php", "display": "standalone", "background_color": "#ffffff", "theme_color": "#0288d1", "icons": [{ "src": "$ENV->STATIC_SERVER/common/icon.png", "sizes": "120x120", "type": "image/png" }] } JSON; # Print header and $manifest for remote addresses # Return JSON for localhost (API manifest endpoint): # ajax.php?action=manifest if ($_SERVER['REMOTE_ADDR'] !== "127.0.0.1") { header('Content-type: application/json; charset=utf-8'); echo $manifest; return; } else { return json_decode($manifest); } }