Mercurial Hosting > nabble
comparison src/nabble/view/web/template/ServletNamespace.java @ 24:e0c501fb5229
remove trk
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 14 Jun 2020 17:56:59 -0600 |
parents | 18cf4872fd7f |
children |
comparison
equal
deleted
inserted
replaced
23:e424dc827823 | 24:e0c501fb5229 |
---|---|
451 | 451 |
452 @Command public void visitor_ip_address(IPrintWriter out,Interpreter interp) { | 452 @Command public void visitor_ip_address(IPrintWriter out,Interpreter interp) { |
453 out.print(Jtp.getClientIpAddr(request)); | 453 out.print(Jtp.getClientIpAddr(request)); |
454 } | 454 } |
455 | 455 |
456 /** hack for now */ | |
457 | |
458 private static final Set<String> testHosts = new HashSet<String>(); | |
459 static { | |
460 testHosts.add("r.789695.n4.nabble.com"); | |
461 testHosts.add("imagej.1557.x6.nabble.com"); | |
462 testHosts.add("f.27.me.nabble.com:8081"); | |
463 } | |
464 | |
465 @Command public void link_test(IPrintWriter out,Interpreter interp) { | |
466 Site site = site(); | |
467 String domain = site.getCustomDomain(); | |
468 String host = request.getHeader("host"); | |
469 if( (domain != null || testHosts.contains(host)) && !site.isEmbarrassing() && request.getServletPath().equals("/") ) { | |
470 // if( domain != null && !site.isEmbarrassing() && request.getServletPath().equals("/") || testHosts.contains(host) ) { | |
471 out.print(" - <a clck href='https://www.super-resume.com/'>Free Resume Builder</a>"); | |
472 } | |
473 } | |
474 | |
475 } | 456 } |