irc.cgi Source Code


SUBMITTED BY: pogue

DATE: Dec. 11, 2021, 1:29 a.m.

FORMAT: Perl

SIZE: 2.8 kB

HITS: 668

  1. <!-- This is part of CGI:IRC 0.5 (http://cgiirc.org/)
  2. == Copyright (C) 2000-2008 David Leadbeater <http://dgl.cx>
  3. == Released under the GNU GPLv2
  4. -->
  5. <html>
  6. <head>
  7. <link rel="SHORTCUT ICON" href="/images/favicon.ico">
  8. <script language="JavaScript"><!--
  9. function setjs() {
  10. if(navigator.product == 'Gecko') {
  11. document.loginform["interface"].value = 'mozilla';
  12. }else if(window.opera && document.childNodes) {
  13. document.loginform["interface"].value = 'opera7';
  14. }else if(navigator.appName == 'Microsoft Internet Explorer' &&
  15. navigator.userAgent.indexOf("Mac_PowerPC") > 0) {
  16. document.loginform["interface"].value = 'konqueror';
  17. }else if(navigator.appName == 'Microsoft Internet Explorer' &&
  18. document.getElementById && document.getElementById('ietest').innerHTML) {
  19. document.loginform["interface"].value = 'ie';
  20. }else if(navigator.appName == 'Konqueror') {
  21. document.loginform["interface"].value = 'konqueror';
  22. }else if(window.opera) {
  23. document.loginform["interface"].value = 'opera';
  24. }
  25. }
  26. function setcharset() {
  27. if(document.charset && document.loginform["Character set"]) {
  28. var opt = document.createElement("option")
  29. opt.value = document.charset
  30. document.loginform['Character set'].appendChild(opt)
  31. }
  32. }
  33. function selectOther(sel) {
  34. if(sel.value == '_Other...') {
  35. var opt=document.createElement('option')
  36. if(opt.value=prompt(sel.name.replace(/_/, ' '), '')) {
  37. opt.appendChild(document.createTextNode(opt.value))
  38. sel.insertBefore(opt, sel.lastChild)
  39. sel.selectedIndex=sel.length-2
  40. } else {
  41. sel.selectedIndex=0
  42. }
  43. }
  44. }
  45. //-->
  46. </script>
  47. <title>CGI:IRC Login</title>
  48. </head>
  49. <body bgcolor="#ffffff" text="#000000" onload="setcharset(); if(document.loginform.Nickname) document.loginform.Nickname.focus();">
  50. <form method="post" action="irc.cgi" name="loginform" onsubmit="setjs()">
  51. <input type="hidden" name="interface" value="nonjs">
  52. <table border="0" cellpadding="5" cellspacing="0">
  53. <tr><td colspan="2" align="center" bgcolor="#c0c0dd"><b>CGI:IRC
  54. Login</b></td></tr>
  55. <tr><td align="right" bgcolor="#f1f1f1">Nickname</td><td align="left"
  56. bgcolor="#f1f1f1"><input type="text" name="Nickname" value="FED335"></td></tr>
  57. <tr><td align="right" bgcolor="#f1f1f1">Channel</td><td align="left"
  58. bgcolor="#f1f1f1"><input type="text" name="Channel" value="#hiroshima"></td></tr>
  59. <tr><td align="left" bgcolor="#d9d9d9">
  60. <small><a href="irc.cgi?adv=1">Advanced..</a></small>
  61. </td><td align="right" bgcolor="#d9d9d9">
  62. <input type="submit" value="Login" style="background-color: #d9d9d9">
  63. </td></tr></table></form>
  64. <small id="ietest"><a href="http://cgiirc.org/">CGI:IRC</a> 0.5.12<br />
  65. </small>
  66. </body></html>

comments powered by Disqus