?> " /></p> <p><input class="btn" type="submit" value="Check Host" /></p> <input name="cmd" type="hidden" value="hm" /> </form> </p> <?php if ($cmd == "hm") { ?> <hr/> <h3>Discovery Results:</h3> <?php $disc = new OExchangeDiscoverer(); $targetXrdUrls = $disc->getTargetXrdUrlsOnHost($hostname); if (sizeof($targetXrdUrls) == 0) { ?> <p> No target XRD URLs were found. Are you sure there is a resource at <a href="http://<?php echo $hostname; ?> /.well-known/host-meta">http://<?php echo $hostname; ?> /.well-known/host-meta</a> with at least one <code>resident-target</code> relation? </p> <p> If you need help generating one, try <a href="/tools/discoverygen">this tool</a>. </p> <?php