chiark / gitweb /
Default "overlapping" to relevant ones when you view a record or pick a network.
[bcp5-registry.git] / template.html
1 @@@comment: Web page template.  Edit this if you feel like it,
2 @@@comment: but take care or the results may be strange.
3 @@@comment: 
4 @@@comment: Written by Ian Jackson <ijackson@chiark.greenend.org.uk>, 1999.
5 @@@comment: I hereby place this file in the public domain.
6 @@@comment: NB: do not add more copyright restrictions to this file,
7 @@@comment: or running the scripts will cause copyright violation !
8
9 <html><head>
10
11 <title>@@@whose@@@ G-RIN -
12
13 @@@if:intro@@@
14 BCP5 (RFC1918) Registry
15 @@@endif:@@@
16
17 @@@if:picked@@@
18 @@@net@@@ picked
19 @@@endif:@@@
20
21 @@@if:passwordsent@@@
22 password sent for @@@name@@@
23 @@@endif:@@@
24
25 @@@if:details|fulldetails@@@
26 details of @@@name@@@
27 @@@endif:@@@
28
29 @@@if:justcreated@@@
30 registered @@@name@@@
31 @@@endif:@@@
32
33 @@@if:justupdated@@@
34 updated @@@name@@@
35 @@@endif:@@@
36
37 @@@if:deleted@@@
38 deleted @@@name@@@
39 @@@endif:@@@
40
41 @@@if:listingall@@@
42 entire database
43 @@@endif:@@@
44
45 @@@ifnot:picked@@@
46 @@@if:listingarea@@@
47 subset for @@@listarea@@@
48 @@@endif:@@@
49 @@@endif:@@@
50
51 @@@if:listingoverlap@@@
52 overlapping with @@@listoverlap@@@
53 @@@endif:@@@
54
55 @@@if:error@@@
56 @@@if:error_notfound@@@
57 entry not found
58 @@@endif:@@@
59 @@@ifnot:error_notfound@@@
60 error
61 @@@endif:@@@
62 @@@endif:@@@
63
64 </title>
65
66 <link rev="made" href="mailto:@@@adminemail@@@">
67 </head>
68 <body>
69
70 <h1>@@@whose@@@ G-RIN
71 @@@if:intro@@@
72 (Geeks' Registry of Internet Numbers)
73 <br>
74 BCP5 (RFC1918) network numbers registry
75 @@@endif:@@@
76
77 @@@ifnot:intro@@@
78 <br>
79 @@@endif:@@@
80
81 @@@if:picked@@@
82 Random network picked: @@@net@@@
83 @@@endif:@@@
84
85 @@@if:details|fulldetails@@@
86 Database entry details: @@@name@@@
87 @@@endif:@@@
88
89 @@@if:justcreated@@@
90 @@@name@@@ registered in database
91 @@@endif:@@@
92
93 @@@if:justupdated@@@
94 Database entry updated: @@@name@@@
95 @@@endif:@@@
96
97 @@@if:passwordsent@@@
98 Password sent
99 @@@endif:@@@
100
101 @@@if:deleted@@@
102 Database entry deleted
103 @@@endif:@@@
104
105 @@@if:listingall@@@
106 Entire database listing
107 @@@endif:@@@
108
109 @@@ifnot:picked@@@
110 @@@if:listingarea@@@
111 Database subset listing for @@@listarea@@@
112 @@@endif:@@@
113 @@@endif:@@@
114
115 @@@if:listingoverlap@@@
116 Database search, entries overlapping with @@@listoverlap@@@
117 @@@endif:@@@
118
119 @@@if:error@@@
120 @@@if:error_notfound@@@
121 Database entry not found
122 @@@endif:@@@
123 @@@ifnot:error_notfound@@@
124 An error has occurred
125 @@@endif:@@@
126 @@@endif:@@@
127
128 </h1>
129
130
131 @@@if:intro@@@
132
133 <h2>Introduction</h2>
134
135 <a href="http://src.doc.ic.ac.uk/rfc/bcp/bcp5.txt">BCP5</a> (currently
136 <a href="http://src.doc.ic.ac.uk/rfc/rfc1918.txt">RFC1918</a>,
137 `Address Allocation for Private Internets') describes circumstances
138 where it can be useful to have non-globally-unique IP addresses, and
139 specifies three IPv4 address ranges which may be used for this
140 purpose.  RFC1918 recommends that, to minimise the risk of clashes
141 when private internets need to be merged, address ranges should be
142 chosen at random.
143
144 <p>
145
146 This web page and database exist to help people choose ranges at
147 random, and to help them choose ranges which are not currently in use
148 by anyone else.
149
150 @@@endif:@@@
151
152
153 @@@if:error@@@
154
155 @@@if:error_badnet@@@
156 You entered a syntactically invalid CIDR-format network number.
157 <p>
158 IPv4 network numbers should be expressed as a dotted quad followed by
159 a prefix length.  Each of the numbers in the dotted quad must be
160 between 0 and 255.  The prefix length is separated from the dotted
161 quad by a slash, and must be between 0 and 32.  None of the bits in
162 the dotted quad beyond the prefix length must be set.
163 @@@endif:@@@
164
165 @@@if:error_badsize@@@
166 You entered an invalid size for your prefix or subnet.
167 You must enter a number between 0 and 32.
168 @@@endif:@@@
169
170 @@@if:error_wrongsize@@@
171 The subnet size you requested (@@@specsize@@@-bit prefix) is larger
172 (contains more addresses) than the size of the private-use range you
173 selected (@@@net@@@).
174 @@@endif:@@@
175
176 @@@if:error_wrongnet@@@
177 The network number you specified does not lie wholly within the
178 BCP5-allocated private-use address ranges.
179 @@@endif:@@@
180
181 @@@if:error_notfound@@@
182 Sorry, the database entry cannot be found.  Perhaps the entry has been
183 deleted or expired.
184 <p>
185 If you believe that this has happened to you in error, contact the
186 registry administrator, @@@adminemail@@@, quoting identifier @@@id@@@.
187 @@@endif:@@@
188
189 @@@if:error_noemail@@@
190 You must provide an email address.
191 @@@endif:@@@
192
193 @@@if:error_nocontact@@@
194 You must provide a contact name.
195 @@@endif:@@@
196
197 @@@if:error_nopassword@@@
198 You must supply the password.
199 @@@endif:@@@
200
201 @@@if:error_badpassword@@@
202 The password you supplied was not correct.  Please supply the correct
203 password.  If you do not know the password, ask to have it mailed to
204 you.
205 <p>
206 The passwords expire after a while; if you were not relying on a fresh
207 notification of your password, you should request a current password.
208 @@@endif:@@@
209
210 @@@if:error_nonet@@@
211 You must provide a network number !
212 @@@endif:@@@
213
214 @@@if:error_noname@@@
215 You must provide a network name for the database.
216 @@@endif:@@@
217
218 @@@if:error_badchar@@@
219 The name, contact or email address you specified contains illegal character(s).
220 @@@endif:@@@
221
222 @@@endif:@@@
223
224
225 @@@if:pick@@@
226
227 @@@ifnot:picked@@@
228 <h2>Pick a random subnet</h2>
229 @@@endif:@@@
230 @@@if:picked@@@
231 <h2>Pick another random subnet</h2>
232 @@@endif:@@@
233
234 <form method="GET" action="@@@cgi@@@">
235
236 Choose network size:
237 <br>
238 <input type=radio name="specsize" value="28" @@@pick28check@@@>
239  28 bit prefix (4 bit subnet, up to 14 hosts)
240 <br>
241 <input type=radio name="specsize" value="24" @@@pick24check@@@>
242  24 bit prefix (8 bit subnet, up to 254 hosts)
243 <br>
244 <input type=radio name="specsize" value="prefix" @@@pickvarprefixcheck@@@>
245  <input type=text name="pickvarprefix" value="@@@pickvarprefix@@@" size="5">
246  bit prefix.
247 <br>
248 <input type=radio name="specsize" value="subnet" @@@pickvarsubnetcheck@@@>
249  <input type=text name="pickvarsubnet" value="@@@pickvarsubnet@@@" size="5">
250  bit subnet.
251 <p>
252
253 From which private-use range ?
254
255 @@@foreach:area@@@
256
257 <br>
258 <input type=radio name="from" value="@@@area_i@@@" @@@area_pickchecked@@@>
259 @@@area@@@
260 @@@if:area_recommended@@@
261  - <em>recommended</em>
262 @@@endif:@@@
263
264 @@@endforeach:@@@
265 <p>
266
267 @@@ifnot:picked@@@
268 <input type=submit name="pick" value="Pick network.">
269 @@@endif:@@@
270 @@@if:picked@@@
271 <input type=submit name="pick" value="Pick another network.">
272 @@@endif:@@@
273
274 </form>
275
276 @@@endif:@@@
277
278
279 @@@if:registernew@@@
280 <h2>Register a network range you are using</h2>
281 You may register an existing network range you are using in our
282 database.
283 @@@endif:@@@
284
285 @@@if:picked@@@
286 <h2>Random network range chosen - register it ?</h2>
287 I have picked the random network numbering range
288 <strong>@@@net@@@</strong> for you.  You can see its relationship
289 to other entries in the database of networks people are using -
290 it is shown <A href="#picked">below</A>, in amongst the
291 registered database entries.
292 <p>
293 If you are happy with it, you are of course free to use it straight
294 away without telling anyone.  However, it may be to your advantage to
295 register it in our database.
296 @@@endif:@@@
297
298 @@@if:registernew|picked@@@
299 <p>
300 You must enter an email address to `own' the database entry.  This
301 email address will be mailed a reminder asking you to confirm/renew
302 your entry periodically, and will also be used to authorise changes to
303 the entry.  It will be published on these pages unless you select to
304 hide it; apart from that we will only use it to contact you about your
305 database entry.
306 @@@endif:@@@
307
308 @@@if:deleted@@@
309 <h2>Deleted entry</h2>
310 The following entry has been deleted.  If this was a mistake, you may
311 re-register it now.
312 @@@endif:@@@
313
314 @@@if:details|fulldetails@@@
315 <h2>Entry details</h2>
316 @@@endif:@@@
317
318 @@@if:passwordsent@@@
319 The password for this database entry has been mailed to the recorded
320 contact email address.
321
322 <h2>Entry details</h2>
323 @@@endif:@@@
324
325 @@@if:justcreated@@@
326 <h2>Entry created</h2>
327
328 The database entry has been created, but will only persist for a short
329 time unless you confirm it.  You have beeen sent an email with your
330 password, requesting confirmation.  When you have received the email
331 you may use `confirm/update', below, to confirm your database entry.
332 If you do not confirm it it will expire in a few days.
333 @@@endif:@@@
334
335 @@@if:justupdated@@@
336 <h2>Entry updated/confirmed</h2>
337 The database entry below has been updated/confirmed/renewed.
338 @@@endif:@@@
339
340 @@@if:registernew|details|fulldetails|justcreated|justupdated|picked|passwordsent|deleted@@@
341
342 <p>
343 <form method="POST" action="@@@cgi@@@">
344
345 <input type=hidden name="id" value="@@@id@@@">
346
347 Network range:
348 <input type=text name="net" value="@@@net@@@" size="20">
349 <br>
350
351 Network name:
352 <input type=text name="name" size="@@@nameboxlen@@@" value="@@@name@@@"><br>
353
354 Contact name:
355 <input type=text name="contact" size="@@@contactboxlen@@@" value="@@@contact@@@"><br>
356
357 @@@if:displayemail@@@
358 Email address:
359 @@@endif:@@@
360 @@@ifnot:displayemail@@@
361 Email address hidden.
362 New address:
363 @@@endif:@@@
364 <input type=text name="email" size="@@@emailboxlen@@@" value="@@@email@@@">
365 <br>
366
367 <input type=checkbox name="hiddenemail" value="yes" @@@emailhidechecked@@@>
368 Hide email address from public database.
369 <br>
370
371 @@@if:registernew|picked@@@
372 <input type=submit name="register" value="Register.">
373 @@@endif:@@@
374
375 @@@if:deleted@@@
376 <input type=submit name="register" value="Re-register.">
377 @@@endif:@@@
378
379 @@@if:details|fulldetails|justcreated|justupdated|passwordsent@@@
380 <p>
381
382 Entry created: @@@datecreated@@@<br>
383 @@@if:changed@@@
384 Last update/confirm: @@@datechanged@@@<br>
385 @@@endif:@@@
386 @@@ifnot:changed@@@
387 Not yet confirmed.
388 @@@endif:@@@
389 @@@endif:@@@
390
391 @@@if:details@@@
392 <h3>Password request</h3>
393
394 Use this to obtain your password, if you do not have it or it doesn't
395 seem to work.  The passwords expire after a while; if you do not have
396 a recent notification of your password, you should request a current
397 password:
398 <p>
399
400 <input type=submit name="mailpasswd" value="Mail password."><br>
401 (The password will be sent to the registered email address for the
402 entry.)
403
404 @@@endif:@@@
405
406 @@@if:details|fulldetails|justcreated|justupdated|passwordsent@@@
407 <h3>Modify or manage this entry</h3>
408 @@@endif:@@@
409
410 @@@if:details|justcreated|passwordsent@@@
411 Using your password, you can update the details above (if you have
412 changed them) and confirm or renew your entry (to stop it expiring).
413 @@@ifnot:displayemail@@@
414 You can also view the full details, including the hidden email address.
415 @@@endif:@@@
416 <p>
417 @@@endif:@@@
418
419 @@@if:details|justcreated|passwordsent@@@
420 Password: <input type=text name="pw" size="30">
421 <br>
422 @@@endif:@@@
423
424 @@@ifnot:displayemail@@@
425 <input type=submit name="view" value="View full details.">
426 @@@endif:@@@
427
428 @@@if:details|fulldetails|justcreated|justupdated|passwordsent@@@
429 <input type=submit name="update" value="Update/confirm/renew.">
430 <input type=submit name="delete" value="Delete.">
431 @@@endif:@@@
432
433 @@@if:fulldetails|justupdated@@@
434 <br>
435 <input type=hidden name="pw" value="@@@password@@@">
436 Password: supplied.
437 @@@endif:@@@
438
439 </form>
440
441 @@@endif:@@@
442
443
444 @@@if:list@@@
445
446 <h2>View database</h2>
447
448 <ul>
449
450 <li>
451 @@@ifnot:listingall@@@
452 <a href="@@@cgi@@@?list=all">Entire database</A>
453 @@@endif:@@@
454 @@@if:listingall@@@
455 Entire database
456 @@@endif:@@@
457
458 <li>Entries allocated from:
459
460 <ul>
461 @@@foreach:area@@@
462
463 <li>
464 @@@ifnot:area_listing@@@
465 <a href="@@@cgi@@@?list=area&listareai=@@@area_i@@@">@@@area@@@</A>
466 @@@endif:@@@
467 @@@if:area_listing@@@
468 @@@area@@@
469 @@@endif:@@@
470
471 @@@endforeach:@@@
472 </ul>
473
474 <li>Entries overlapping with
475
476 <form method="GET" action="@@@cgi@@@">
477 <input type=hidden name="list" value="overlap">
478 <input type=text name="with" value="@@@listoverlap@@@" size="30">
479 <input type=submit name="listoverlap" value="Search.">
480 </form>
481
482 </ul>
483
484 @@@endif:@@@
485
486 @@@if:listingall|listingarea|listingoverlap@@@
487
488 <h2>Database</h2>
489
490 <h3>
491 @@@if:listingall@@@
492 Entire database
493 @@@endif:@@@
494 @@@if:listingoverlap@@@
495 Entries which overlap with @@@listoverlap@@@
496 @@@endif:@@@
497 @@@if:listingarea@@@
498 Database for entries allocated from @@@listarea@@@
499 @@@endif:@@@
500 </h3>
501
502 @@@if:picked@@@
503 The range picked for you has been <strong>emphasized</strong> below.
504 @@@endif:@@@
505 <p>
506
507 @@@ifnot:listingnonefound@@@
508
509 You can get details about an existing entry by clicking on its address
510 range; this can also be used to modify it.
511
512 <table>
513 <tr><td>Range <td>Name <td>Contact <td>Email
514 </tr>
515 @@@foreach:db@@@
516 <p>
517
518 @@@if:db_picked@@@
519 <tr><td><a name="picked"><strong>@@@db_net@@@</strong></a>
520 <td colspan=3><strong>network randomly picked as requested</strong>
521 @@@endif:@@@
522
523 @@@ifnot:db_picked@@@
524
525 <tr><td><A href="@@@cgi@@@?id=@@@db_id@@@">@@@db_net@@@</A>
526 <td>@@@db_name@@@
527 <td>@@@db_contact@@@
528
529 @@@ifnot:db_hiddenemail@@@
530
531 <td>@@@db_email@@@
532 @@@ifnot:db_confirmed@@@
533 <em>(unconfirmed)</em>
534 @@@endif:@@@
535
536 @@@endif:@@@
537
538 @@@if:db_hiddenemail@@@
539
540 @@@if:db_confirmed@@@
541 <td><em>hidden</em>
542 @@@endif:@@@
543
544 @@@ifnot:db_confirmed@@@
545 <td><em>hidden, unconfirmed</em>
546 @@@endif:@@@
547
548 @@@endif:@@@
549
550 @@@endif:@@@
551
552 </tr>
553 @@@endforeach:@@@
554 </table>
555
556 @@@endif:@@@
557
558 @@@if:listingnonefound@@@
559 There are no matching entries in the database.
560 @@@endif:@@@
561
562 @@@endif:@@@
563
564 <hr><address>
565 <a href="@@@home@@@">@@@whose@@@ G-RIN</a><br>
566 Queries or problems ?  Contact the administrator,
567 <a href="mailto:@@@adminemail@@@">@@@adminname@@@</a>.
568 </address>
569 </body>
570 </html>
571 @@@eof:@@@