| | @@ -99,41 +99,39 @@ |
| 99 | 99 | return; |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | style_submenu_element("Add", "Add User", "setup_uedit"); |
| 103 | 103 | style_header("User List"); |
| 104 | | - @ <table border="0" cellpadding="0" cellspacing="25"> |
| 105 | | - @ <tr><td valign="top"> |
| 106 | | - @ <b>Users:</b> |
| 107 | | - @ <table border="1" cellpadding="10"><tr><td> |
| 108 | | - @ <table cellspacing=0 cellpadding=0 border=0> |
| 104 | + @ <table class="usetupLayoutTable"> |
| 105 | + @ <tr><td class="usetupColumnLayout"> |
| 106 | + @ <span class="note">Users:</span> |
| 107 | + @ <table class="usetupUserList"> |
| 109 | 108 | @ <tr> |
| 110 | | - @ <th align="right">User ID</th><td width="20"> </td> |
| 111 | | - @ <th>Capabilities</th><td width="15"> </td> |
| 112 | | - @ <th>Contact Info</th> |
| 109 | + @ <th class="usetupListUser" style="text-align: right;padding-right: 20px;">User ID</th> |
| 110 | + @ <th class="usetupListCap" style="text-align: center;padding-right: 15px;">Capabilities</th> |
| 111 | + @ <th class="usetupListCon" style="text-align: left;">Contact Info</th> |
| 113 | 112 | @ </tr> |
| 114 | 113 | db_prepare(&s, "SELECT uid, login, cap, info FROM user ORDER BY login"); |
| 115 | 114 | while( db_step(&s)==SQLITE_ROW ){ |
| 116 | 115 | const char *zCap = db_column_text(&s, 2); |
| 117 | 116 | if( strstr(zCap, "s") ) zCap = "s"; |
| 118 | 117 | @ <tr> |
| 119 | | - @ <td align="right"> |
| 118 | + @ <td class="usetupListUser" style="text-align: right;padding-right: 20px;white-space:nowrap;"> |
| 120 | 119 | if( g.okAdmin && (zCap[0]!='s' || g.okSetup) ){ |
| 121 | 120 | @ <a href="setup_uedit?id=%d(db_column_int(&s,0))"> |
| 122 | 121 | } |
| 123 | | - @ <nobr>%h(db_column_text(&s,1))</nobr> |
| 122 | + @ %h(db_column_text(&s,1)) |
| 124 | 123 | if( g.okAdmin ){ |
| 125 | 124 | @ </a> |
| 126 | 125 | } |
| 127 | | - @ </td><td> </td> |
| 128 | | - @ <td align="center">%s(zCap)</td> |
| 129 | | - @ <td> </td> |
| 130 | | - @ <td align="left">%s(db_column_text(&s,3))</td> |
| 126 | + @ </td> |
| 127 | + @ <td class="usetupListCap" style="text-align: center;padding-right: 15px;">%s(zCap)</td> |
| 128 | + @ <td class="usetupListCon" style="text-align: left;">%s(db_column_text(&s,3))</td> |
| 131 | 129 | @ </tr> |
| 132 | 130 | } |
| 133 | | - @ </table></td></tr></table> |
| 134 | | - @ <td valign="top"> |
| 131 | + @ </table> |
| 132 | + @ </td><td class="usetupColumnLayout"> |
| 135 | 133 | @ <span class="note">Notes:</span> |
| 136 | 134 | @ <ol> |
| 137 | 135 | @ <li><p>The permission flags are as follows:</p> |
| 138 | 136 | @ <table> |
| 139 | 137 | @ <tr><td valign="top"><b>a</b></td> |
| | @@ -181,31 +179,33 @@ |
| 181 | 179 | @ user <tt>developer</tt></td></tr> |
| 182 | 180 | @ <tr><td valign="top"><b>w</b></td> |
| 183 | 181 | @ <td><i>Write-Tkt:</i> Edit tickets</td></tr> |
| 184 | 182 | @ <tr><td valign="top"><b>z</b></td> |
| 185 | 183 | @ <td><i>Zip download:</i> Download a baseline via the |
| 186 | | - @ <tt>/zip</tt> URL even without check<b>o</b>ut |
| 187 | | - @ and <b>h</b>istory permissions</td></tr> |
| 184 | + @ <tt>/zip</tt> URL even without check<span class="capability">o</span>ut |
| 185 | + @ and <span class="capability">h</span>istory permissions</td></tr> |
| 188 | 186 | @ </table> |
| 189 | 187 | @ </li> |
| 190 | 188 | @ |
| 191 | 189 | @ <li><p> |
| 192 | | - @ Every user, logged in or not, inherits the privileges of <b>nobody</b>. |
| 190 | + @ Every user, logged in or not, inherits the privileges of <span class="usertype">nobody</span>. |
| 193 | 191 | @ </p></li> |
| 194 | 192 | @ |
| 195 | 193 | @ <li><p> |
| 196 | | - @ Any human can login as <b>anonymous</b> since the password is |
| 197 | | - @ clearly displayed on the login page for them to type. The purpose |
| 194 | + @ Any human can login as <span class="usertype">anonymous</span> since the |
| 195 | + @ password is clearly displayed on the login page for them to type. The purpose |
| 198 | 196 | @ of requiring anonymous to log in is to prevent access by spiders. |
| 199 | 197 | @ Every logged-in user inherits the combined privileges of |
| 200 | | - @ <b>anonymous</b> and |
| 201 | | - @ <b>nobody</b>. |
| 198 | + @ <span class="usertype">anonymous</span> and |
| 199 | + @ <span class="usertype">nobody</span>. |
| 202 | 200 | @ </p></li> |
| 203 | 201 | @ |
| 204 | 202 | @ <li><p> |
| 205 | | - @ Users with privilege <b>v</b> inherit the combined privileges of |
| 206 | | - @ <b>developer</b>, <b>anonymous</b>, and <b>nobody</b>. |
| 203 | + @ Users with privilege <span class="capability">v</span> inherit the combined |
| 204 | + @ privileges of <span class="usertype">developer</span>, |
| 205 | + @ <span class="usertype">anonymous</span>, and |
| 206 | + @ <span class="usertype">nobody</span>. |
| 207 | 207 | @ </p></li> |
| 208 | 208 | @ |
| 209 | 209 | @ </ol> |
| 210 | 210 | @ </td></tr></table> |
| 211 | 211 | style_footer(); |
| | @@ -323,12 +323,12 @@ |
| 323 | 323 | } |
| 324 | 324 | if( uid>0 && |
| 325 | 325 | db_exists("SELECT 1 FROM user WHERE login=%Q AND uid!=%d", zLogin, uid) |
| 326 | 326 | ){ |
| 327 | 327 | style_header("User Creation Error"); |
| 328 | | - @ <font color="red">Login "%h(zLogin)" is already used by a different |
| 329 | | - @ user.</font> |
| 328 | + @ <span class="loginError">Login "%h(zLogin)" is already used by a different |
| 329 | + @ user.</span> |
| 330 | 330 | @ |
| 331 | 331 | @ <p><a href="setup_uedit?id=%d(uid)">[Bummer]</a></p> |
| 332 | 332 | style_footer(); |
| 333 | 333 | return; |
| 334 | 334 | } |
| | @@ -353,65 +353,65 @@ |
| 353 | 353 | if( uid ){ |
| 354 | 354 | zLogin = db_text("", "SELECT login FROM user WHERE uid=%d", uid); |
| 355 | 355 | zInfo = db_text("", "SELECT info FROM user WHERE uid=%d", uid); |
| 356 | 356 | zCap = db_text("", "SELECT cap FROM user WHERE uid=%d", uid); |
| 357 | 357 | zPw = db_text("", "SELECT pw FROM user WHERE uid=%d", uid); |
| 358 | | - if( strchr(zCap, 'a') ) oaa = " checked"; |
| 359 | | - if( strchr(zCap, 'b') ) oab = " checked"; |
| 360 | | - if( strchr(zCap, 'c') ) oac = " checked"; |
| 361 | | - if( strchr(zCap, 'd') ) oad = " checked"; |
| 362 | | - if( strchr(zCap, 'e') ) oae = " checked"; |
| 363 | | - if( strchr(zCap, 'f') ) oaf = " checked"; |
| 364 | | - if( strchr(zCap, 'g') ) oag = " checked"; |
| 365 | | - if( strchr(zCap, 'h') ) oah = " checked"; |
| 366 | | - if( strchr(zCap, 'i') ) oai = " checked"; |
| 367 | | - if( strchr(zCap, 'j') ) oaj = " checked"; |
| 368 | | - if( strchr(zCap, 'k') ) oak = " checked"; |
| 369 | | - if( strchr(zCap, 'm') ) oam = " checked"; |
| 370 | | - if( strchr(zCap, 'n') ) oan = " checked"; |
| 371 | | - if( strchr(zCap, 'o') ) oao = " checked"; |
| 372 | | - if( strchr(zCap, 'p') ) oap = " checked"; |
| 373 | | - if( strchr(zCap, 'r') ) oar = " checked"; |
| 374 | | - if( strchr(zCap, 's') ) oas = " checked"; |
| 375 | | - if( strchr(zCap, 't') ) oat = " checked"; |
| 376 | | - if( strchr(zCap, 'u') ) oau = " checked"; |
| 377 | | - if( strchr(zCap, 'v') ) oav = " checked"; |
| 378 | | - if( strchr(zCap, 'w') ) oaw = " checked"; |
| 379 | | - if( strchr(zCap, 'z') ) oaz = " checked"; |
| 358 | + if( strchr(zCap, 'a') ) oaa = " checked=\"checked\""; |
| 359 | + if( strchr(zCap, 'b') ) oab = " checked=\"checked\""; |
| 360 | + if( strchr(zCap, 'c') ) oac = " checked=\"checked\""; |
| 361 | + if( strchr(zCap, 'd') ) oad = " checked=\"checked\""; |
| 362 | + if( strchr(zCap, 'e') ) oae = " checked=\"checked\""; |
| 363 | + if( strchr(zCap, 'f') ) oaf = " checked=\"checked\""; |
| 364 | + if( strchr(zCap, 'g') ) oag = " checked=\"checked\""; |
| 365 | + if( strchr(zCap, 'h') ) oah = " checked=\"checked\""; |
| 366 | + if( strchr(zCap, 'i') ) oai = " checked=\"checked\""; |
| 367 | + if( strchr(zCap, 'j') ) oaj = " checked=\"checked\""; |
| 368 | + if( strchr(zCap, 'k') ) oak = " checked=\"checked\""; |
| 369 | + if( strchr(zCap, 'm') ) oam = " checked=\"checked\""; |
| 370 | + if( strchr(zCap, 'n') ) oan = " checked=\"checked\""; |
| 371 | + if( strchr(zCap, 'o') ) oao = " checked=\"checked\""; |
| 372 | + if( strchr(zCap, 'p') ) oap = " checked=\"checked\""; |
| 373 | + if( strchr(zCap, 'r') ) oar = " checked=\"checked\""; |
| 374 | + if( strchr(zCap, 's') ) oas = " checked=\"checked\""; |
| 375 | + if( strchr(zCap, 't') ) oat = " checked=\"checked\""; |
| 376 | + if( strchr(zCap, 'u') ) oau = " checked=\"checked\""; |
| 377 | + if( strchr(zCap, 'v') ) oav = " checked=\"checked\""; |
| 378 | + if( strchr(zCap, 'w') ) oaw = " checked=\"checked\""; |
| 379 | + if( strchr(zCap, 'z') ) oaz = " checked=\"checked\""; |
| 380 | 380 | } |
| 381 | 381 | |
| 382 | 382 | /* figure out inherited permissions */ |
| 383 | 383 | memset(inherit, 0, sizeof(inherit)); |
| 384 | 384 | if( strcmp(zLogin, "developer") ){ |
| 385 | 385 | char *z1, *z2; |
| 386 | 386 | z1 = z2 = db_text(0,"SELECT cap FROM user WHERE login='developer'"); |
| 387 | 387 | while( z1 && *z1 ){ |
| 388 | | - inherit[0x7f & *(z1++)] = "<font color=\"red\">•</font>"; |
| 388 | + inherit[0x7f & *(z1++)] = "<span class=\"ueditInheritDeveloper\">•</span>"; |
| 389 | 389 | } |
| 390 | 390 | free(z2); |
| 391 | 391 | } |
| 392 | 392 | if( strcmp(zLogin, "reader") ){ |
| 393 | 393 | char *z1, *z2; |
| 394 | 394 | z1 = z2 = db_text(0,"SELECT cap FROM user WHERE login='reader'"); |
| 395 | 395 | while( z1 && *z1 ){ |
| 396 | | - inherit[0x7f & *(z1++)] = "<font color=\"black\">•</font>"; |
| 396 | + inherit[0x7f & *(z1++)] = "<span class=\"ueditInheritReader\">•</span>"; |
| 397 | 397 | } |
| 398 | 398 | free(z2); |
| 399 | 399 | } |
| 400 | 400 | if( strcmp(zLogin, "anonymous") ){ |
| 401 | 401 | char *z1, *z2; |
| 402 | 402 | z1 = z2 = db_text(0,"SELECT cap FROM user WHERE login='anonymous'"); |
| 403 | 403 | while( z1 && *z1 ){ |
| 404 | | - inherit[0x7f & *(z1++)] = "<font color=\"blue\">•</font>"; |
| 404 | + inherit[0x7f & *(z1++)] = "<span class=\"ueditInheritAnonymous\">•</span>"; |
| 405 | 405 | } |
| 406 | 406 | free(z2); |
| 407 | 407 | } |
| 408 | 408 | if( strcmp(zLogin, "nobody") ){ |
| 409 | 409 | char *z1, *z2; |
| 410 | 410 | z1 = z2 = db_text(0,"SELECT cap FROM user WHERE login='nobody'"); |
| 411 | 411 | while( z1 && *z1 ){ |
| 412 | | - inherit[0x7f & *(z1++)] = "<font color=\"green\">•</font>"; |
| 412 | + inherit[0x7f & *(z1++)] = "<span class=\"ueditInheritNobody\">•</span>"; |
| 413 | 413 | } |
| 414 | 414 | free(z2); |
| 415 | 415 | } |
| 416 | 416 | |
| 417 | 417 | /* Begin generating the page |
| | @@ -420,77 +420,79 @@ |
| 420 | 420 | if( uid ){ |
| 421 | 421 | style_header(mprintf("Edit User %h", zLogin)); |
| 422 | 422 | }else{ |
| 423 | 423 | style_header("Add A New User"); |
| 424 | 424 | } |
| 425 | | - @ <table align="left" hspace="20" vspace="10"><tr><td> |
| 426 | | - @ <form action="%s(g.zPath)" method="POST"> |
| 425 | + @ <div class="ueditCapBox"> |
| 426 | + @ <form action="%s(g.zPath)" method="post"><div> |
| 427 | 427 | login_insert_csrf_secret(); |
| 428 | 428 | @ <table> |
| 429 | 429 | @ <tr> |
| 430 | | - @ <td align="right"><nobr>User ID:</nobr></td> |
| 431 | | - if( uid ){ |
| 432 | | - @ <td>%d(uid) <input type="hidden" name="id" value="%d(uid)"></td> |
| 433 | | - }else{ |
| 434 | | - @ <td>(new user)<input type="hidden" name="id" value=0></td> |
| 435 | | - } |
| 436 | | - @ </tr> |
| 437 | | - @ <tr> |
| 438 | | - @ <td align="right"><nobr>Login:</nobr></td> |
| 439 | | - @ <td><input type="text" name="login" value="%h(zLogin)"></td> |
| 440 | | - @ </tr> |
| 441 | | - @ <tr> |
| 442 | | - @ <td align="right"><nobr>Contact Info:</nobr></td> |
| 443 | | - @ <td><input type="text" name="info" size=40 value="%h(zInfo)"></td> |
| 444 | | - @ </tr> |
| 445 | | - @ <tr> |
| 446 | | - @ <td align="right" valign="top">Capabilities:</td> |
| 430 | + @ <td class="usetupEditLabel">User ID:</td> |
| 431 | + if( uid ){ |
| 432 | + @ <td>%d(uid) <input type="hidden" name="id" value="%d(uid)" /></td> |
| 433 | + }else{ |
| 434 | + @ <td>(new user)<input type="hidden" name="id" value="0" /></td> |
| 435 | + } |
| 436 | + @ </tr> |
| 437 | + @ <tr> |
| 438 | + @ <td class="usetupEditLabel">Login:</td> |
| 439 | + @ <td><input type="text" name="login" value="%h(zLogin)" /></td> |
| 440 | + @ </tr> |
| 441 | + @ <tr> |
| 442 | + @ <td class="usetupEditLabel">Contact Info:</td> |
| 443 | + @ <td><input type="text" name="info" size="40" value="%h(zInfo)" /></td> |
| 444 | + @ </tr> |
| 445 | + @ <tr> |
| 446 | + @ <td class="usetupEditLabel">Capabilities:</td> |
| 447 | 447 | @ <td> |
| 448 | 448 | #define B(x) inherit[x] |
| 449 | 449 | if( g.okSetup ){ |
| 450 | | - @ <input type="checkbox" name="as"%s(oas)/>%s(B('s'))Setup<br> |
| 451 | | - } |
| 452 | | - @ <input type="checkbox" name="aa"%s(oaa)/>%s(B('a'))Admin<br> |
| 453 | | - @ <input type="checkbox" name="ad"%s(oad)/>%s(B('d'))Delete<br> |
| 454 | | - @ <input type="checkbox" name="ae"%s(oae)/>%s(B('e'))Email<br> |
| 455 | | - @ <input type="checkbox" name="ap"%s(oap)/>%s(B('p'))Password<br> |
| 456 | | - @ <input type="checkbox" name="ai"%s(oai)/>%s(B('i'))Check-In<br> |
| 457 | | - @ <input type="checkbox" name="ao"%s(oao)/>%s(B('o'))Check-Out<br> |
| 458 | | - @ <input type="checkbox" name="ah"%s(oah)/>%s(B('h'))History<br> |
| 459 | | - @ <input type="checkbox" name="au"%s(oau)/>%s(B('u'))Reader<br> |
| 460 | | - @ <input type="checkbox" name="av"%s(oav)/>%s(B('v'))Developer<br> |
| 461 | | - @ <input type="checkbox" name="ag"%s(oag)/>%s(B('g'))Clone<br> |
| 462 | | - @ <input type="checkbox" name="aj"%s(oaj)/>%s(B('j'))Read Wiki<br> |
| 463 | | - @ <input type="checkbox" name="af"%s(oaf)/>%s(B('f'))New Wiki<br> |
| 464 | | - @ <input type="checkbox" name="am"%s(oam)/>%s(B('m'))Append Wiki<br> |
| 465 | | - @ <input type="checkbox" name="ak"%s(oak)/>%s(B('k'))Write Wiki<br> |
| 466 | | - @ <input type="checkbox" name="ab"%s(oab)/>%s(B('b'))Attachments<br> |
| 467 | | - @ <input type="checkbox" name="ar"%s(oar)/>%s(B('r'))Read Ticket<br> |
| 468 | | - @ <input type="checkbox" name="an"%s(oan)/>%s(B('n'))New Ticket<br> |
| 469 | | - @ <input type="checkbox" name="ac"%s(oac)/>%s(B('c'))Append Ticket<br> |
| 470 | | - @ <input type="checkbox" name="aw"%s(oaw)/>%s(B('w'))Write Ticket<br> |
| 471 | | - @ <input type="checkbox" name="at"%s(oat)/>%s(B('t'))Ticket Report<br> |
| 472 | | - @ <input type="checkbox" name="az"%s(oaz)/>%s(B('z'))Download Zip |
| 450 | + @ <input type="checkbox" name="as"%s(oas) />%s(B('s'))Setup<br /> |
| 451 | + } |
| 452 | + @ <input type="checkbox" name="aa"%s(oaa) />%s(B('a'))Admin<br /> |
| 453 | + @ <input type="checkbox" name="ad"%s(oad) />%s(B('d'))Delete<br /> |
| 454 | + @ <input type="checkbox" name="ae"%s(oae) />%s(B('e'))Email<br /> |
| 455 | + @ <input type="checkbox" name="ap"%s(oap) />%s(B('p'))Password<br /> |
| 456 | + @ <input type="checkbox" name="ai"%s(oai) />%s(B('i'))Check-In<br /> |
| 457 | + @ <input type="checkbox" name="ao"%s(oao) />%s(B('o'))Check-Out<br /> |
| 458 | + @ <input type="checkbox" name="ah"%s(oah) />%s(B('h'))History<br /> |
| 459 | + @ <input type="checkbox" name="au"%s(oau) />%s(B('u'))Reader<br /> |
| 460 | + @ <input type="checkbox" name="av"%s(oav) />%s(B('v'))Developer<br /> |
| 461 | + @ <input type="checkbox" name="ag"%s(oag) />%s(B('g'))Clone<br /> |
| 462 | + @ <input type="checkbox" name="aj"%s(oaj) />%s(B('j'))Read Wiki<br /> |
| 463 | + @ <input type="checkbox" name="af"%s(oaf) />%s(B('f'))New Wiki<br /> |
| 464 | + @ <input type="checkbox" name="am"%s(oam) />%s(B('m'))Append Wiki<br /> |
| 465 | + @ <input type="checkbox" name="ak"%s(oak) />%s(B('k'))Write Wiki<br /> |
| 466 | + @ <input type="checkbox" name="ab"%s(oab) />%s(B('b'))Attachments<br /> |
| 467 | + @ <input type="checkbox" name="ar"%s(oar) />%s(B('r'))Read Ticket<br /> |
| 468 | + @ <input type="checkbox" name="an"%s(oan) />%s(B('n'))New Ticket<br /> |
| 469 | + @ <input type="checkbox" name="ac"%s(oac) />%s(B('c'))Append Ticket<br /> |
| 470 | + @ <input type="checkbox" name="aw"%s(oaw) />%s(B('w'))Write Ticket<br /> |
| 471 | + @ <input type="checkbox" name="at"%s(oat) />%s(B('t'))Ticket Report<br /> |
| 472 | + @ <input type="checkbox" name="az"%s(oaz) />%s(B('z'))Download Zip |
| 473 | 473 | @ </td> |
| 474 | 474 | @ </tr> |
| 475 | 475 | @ <tr> |
| 476 | 476 | @ <td align="right">Password:</td> |
| 477 | 477 | if( zPw[0] ){ |
| 478 | 478 | /* Obscure the password for all users */ |
| 479 | | - @ <td><input type="password" name="pw" value="**********"></td> |
| 479 | + @ <td><input type="password" name="pw" value="**********" /></td> |
| 480 | 480 | }else{ |
| 481 | 481 | /* Show an empty password as an empty input field */ |
| 482 | | - @ <td><input type="password" name="pw" value=""></td> |
| 482 | + @ <td><input type="password" name="pw" value="" /></td> |
| 483 | 483 | } |
| 484 | 484 | @ </tr> |
| 485 | 485 | if( !higherUser ){ |
| 486 | 486 | @ <tr> |
| 487 | | - @ <td> </td> |
| 488 | | - @ <td><input type="submit" name="submit" value="Apply Changes"> |
| 487 | + @ <td> </td> |
| 488 | + @ <td><input type="submit" name="submit" value="Apply Changes" /></td> |
| 489 | 489 | @ </tr> |
| 490 | 490 | } |
| 491 | | - @ </table></td></tr></table> |
| 491 | + @ </table> |
| 492 | + @ </div></form> |
| 493 | + @ </div> |
| 492 | 494 | @ <h2>Privileges And Capabilities:</h2> |
| 493 | 495 | @ <ul> |
| 494 | 496 | if( higherUser ){ |
| 495 | 497 | @ <li><p><font color="blue"><b> |
| 496 | 498 | @ User %h(zLogin) has Setup privileges and you only have Admin privileges |
| | @@ -497,95 +499,97 @@ |
| 497 | 499 | @ so you are not permitted to make changes to %h(zLogin). |
| 498 | 500 | @ </b></font></p></li> |
| 499 | 501 | @ |
| 500 | 502 | } |
| 501 | 503 | @ <li><p> |
| 502 | | - @ The <b>Setup</b> user can make arbitrary configuration changes. |
| 503 | | - @ An <b>Admin</b> user can add other users and change user privileges |
| 504 | + @ The <span class="capability">Setup</span> user can make arbitrary configuration changes. |
| 505 | + @ An <span class="usertype">Admin</span> user can add other users and change user privileges |
| 504 | 506 | @ and reset user passwords. Both automatically get all other privileges |
| 505 | 507 | @ listed below. Use these two settings with discretion. |
| 506 | 508 | @ </p></li> |
| 507 | 509 | @ |
| 508 | 510 | @ <li><p> |
| 509 | | - @ The "<font color="green"><big>•</big></font>" mark indicates |
| 510 | | - @ the privileges of "nobody" that are available to all users |
| 511 | + @ The "<span class="ueditInheritNobody"><big>•</big></span>" mark indicates |
| 512 | + @ the privileges of <span class="usertype">nobody</span> that are available to all users |
| 511 | 513 | @ regardless of whether or not they are logged in. |
| 512 | 514 | @ </p></li> |
| 513 | 515 | @ |
| 514 | 516 | @ <li><p> |
| 515 | | - @ The "<font color="blue"><big>•</big></font>" mark indicates |
| 516 | | - @ the privileges of "anonymous" that are inherited by all logged-in users. |
| 517 | + @ The "<span class="ueditInheritAnonymous"><big>•</big></span>" mark indicates |
| 518 | + @ the privileges of <span class="usertype">anonymous</span> that are inherited by all logged-in users. |
| 519 | + @ </p></li> |
| 520 | + @ |
| 521 | + @ <li><p> |
| 522 | + @ The "<span class="ueditInheritDeveloper"><big>•</big></span>" mark indicates |
| 523 | + @ the privileges of <span class="usertype">developer</span> that are inherited by all users with |
| 524 | + @ the <span class="capability">Developer</span> privilege. |
| 517 | 525 | @ </p></li> |
| 518 | 526 | @ |
| 519 | 527 | @ <li><p> |
| 520 | | - @ The "<font color="red"><big>•</big></font>" mark indicates |
| 521 | | - @ the privileges of "developer" that are inherited by all users with |
| 522 | | - @ the <b>Developer</b> privilege. |
| 528 | + @ The "<span class="ueditInheritReader"><big>•</big></span>" mark indicates |
| 529 | + @ the privileges of <span class="usertype">reader</span> that are inherited by all users with |
| 530 | + @ the <span class="capability">Reader</span> privilege. |
| 523 | 531 | @ </p></li> |
| 524 | 532 | @ |
| 525 | 533 | @ <li><p> |
| 526 | | - @ The "<font color="black"><big>•</big></font>" mark indicates |
| 527 | | - @ the privileges of "reader" that are inherited by all users with |
| 528 | | - @ the <b>Reader</b> privilege. |
| 529 | | - @ </p></li> |
| 530 | | - @ |
| 531 | | - @ <li><p> |
| 532 | | - @ The <b>Delete</b> privilege give the user the ability to erase |
| 534 | + @ The <span class="capability">Delete</span> privilege give the user the ability to erase |
| 533 | 535 | @ wiki, tickets, and attachments that have been added by anonymous |
| 534 | 536 | @ users. This capability is intended for deletion of spam. The |
| 535 | 537 | @ delete capability is only in effect for 24 hours after the item |
| 536 | | - @ is first posted. The Setup user can delete anything at any time. |
| 538 | + @ is first posted. The <span class="usertype">Setup</span> user can delete anything at any time. |
| 537 | 539 | @ </p></li> |
| 538 | 540 | @ |
| 539 | 541 | @ <li><p> |
| 540 | | - @ The <b>History</b> privilege allows a user to see most hyperlinks. |
| 542 | + @ The <span class="capability">History</span> privilege allows a user to see most hyperlinks. |
| 541 | 543 | @ This is recommended ON for most logged-in users but OFF for |
| 542 | 544 | @ user "nobody" to avoid problems with spiders trying to walk every |
| 543 | 545 | @ historical version of every baseline and file. |
| 544 | 546 | @ </p></li> |
| 545 | 547 | @ |
| 546 | 548 | @ <li><p> |
| 547 | | - @ The <b>Zip</b> privilege allows a user to see the "download as ZIP" |
| 549 | + @ The <span class="capability">Zip</span> privilege allows a user to see the "download as ZIP" |
| 548 | 550 | @ hyperlink and permits access to the <tt>/zip</tt> page. This allows |
| 549 | 551 | @ users to download ZIP archives without granting other rights like |
| 550 | | - @ <b>Read</b> or <b>History</b>. This privilege is recommended for |
| 551 | | - @ user <b>nobody</b> so that automatic package downloaders can obtain |
| 552 | + @ <span class="capability">Read</span> or <span class="capability">History</span>. This privilege is recommended for |
| 553 | + @ user <span class="usertype">nobody</span> so that automatic package downloaders can obtain |
| 552 | 554 | @ the sources without going through the login procedure. |
| 553 | 555 | @ </p></li> |
| 554 | 556 | @ |
| 555 | 557 | @ <li><p> |
| 556 | | - @ The <b>Check-in</b> privilege allows remote users to "push". |
| 557 | | - @ The <b>Check-out</b> privilege allows remote users to "pull". |
| 558 | | - @ The <b>Clone</b> privilege allows remote users to "clone". |
| 559 | | - @ </li><p> |
| 558 | + @ The <span class="capability">Check-in</span> privilege allows remote users to "push". |
| 559 | + @ The <span class="capability">Check-out</span> privilege allows remote users to "pull". |
| 560 | + @ The <span class="capability">Clone</span> privilege allows remote users to "clone". |
| 561 | + @ </p></li> |
| 560 | 562 | @ |
| 561 | 563 | @ <li><p> |
| 562 | | - @ The <b>Read Wiki</b>, <b>New Wiki</b>, <b>Append Wiki</b>, and |
| 564 | + @ The <span class="capability">Read Wiki</span>, <span class="capability">New Wiki</span>, <span class="capability">Append Wiki</span>, and |
| 563 | 565 | @ <b>Write Wiki</b> privileges control access to wiki pages. The |
| 564 | | - @ <b>Read Ticket</b>, <b>New Ticket</b>, <b>Append Ticket</b>, and |
| 565 | | - @ <b>Write Ticket</b> privileges control access to trouble tickets. |
| 566 | | - @ The <b>Ticket Report</b> privilege allows the user to create or edit |
| 566 | + @ <span class="capability">Read Ticket</span>, <span class="capability">New Ticket</span>, <span class="capability">Append Ticket</span>, and |
| 567 | + @ <span class="capability">Write Ticket</span> privileges control access to trouble tickets. |
| 568 | + @ The <span class="capability">Ticket Report</span> privilege allows the user to create or edit |
| 567 | 569 | @ ticket report formats. |
| 568 | 570 | @ </p></li> |
| 569 | 571 | @ |
| 570 | 572 | @ <li><p> |
| 571 | | - @ Users with the <b>Password</b> privilege are allowed to change their |
| 572 | | - @ own password. Recommended ON for most users but OFF for special |
| 573 | | - @ users "developer", "anonymous", and "nobody". |
| 573 | + @ Users with the <span class="capability">Password</span> privilege are allowed |
| 574 | + @ to change their own password. Recommended ON for most users but OFF for special |
| 575 | + @ users <span class="usertype">developer</span>, <span class="usertype">anonymous</span>, |
| 576 | + @ and <span class="usertype">nobody</span>. |
| 574 | 577 | @ </p></li> |
| 575 | 578 | @ |
| 576 | 579 | @ <li><p> |
| 577 | | - @ The <b>EMail</b> privilege allows the display of sensitive information |
| 578 | | - @ such as the email address of users and contact information on tickets. |
| 579 | | - @ Recommended OFF for "anonymous" and for "nobody" but ON for |
| 580 | | - @ "developer". |
| 580 | + @ The <span class="capability">EMail</span> privilege allows the display of |
| 581 | + @ sensitive information such as the email address of users and contact information |
| 582 | + @ on tickets. Recommended OFF for <span class="usertype">anonymousy</span> and for |
| 583 | + @ <span class="usertype">nobody</span> but ON for <span class="usertype">developer</span>. |
| 581 | 584 | @ </p></li> |
| 582 | 585 | @ |
| 583 | 586 | @ <li><p> |
| 584 | | - @ The <b>Attachment</b> privilege is needed in order to add attachments |
| 585 | | - @ to tickets or wiki. Write privilege on the ticket or wiki is also |
| 586 | | - @ required.</p></li> |
| 587 | + @ The <span class="capability">Attachment</span> privilege is needed in order to |
| 588 | + @ add attachments to tickets or wiki. Write privilege on the ticket or wiki is |
| 589 | + @ also required. |
| 590 | + @ </p></li> |
| 587 | 591 | @ |
| 588 | 592 | @ <li><p> |
| 589 | 593 | @ Login is prohibited if the password is an empty string. |
| 590 | 594 | @ </p></li> |
| 591 | 595 | @ </ul> |
| | @@ -592,42 +596,42 @@ |
| 592 | 596 | @ |
| 593 | 597 | @ <h2>Special Logins</h2> |
| 594 | 598 | @ |
| 595 | 599 | @ <ul> |
| 596 | 600 | @ <li><p> |
| 597 | | - @ No login is required for user "<b>nobody</b>". The capabilities |
| 598 | | - @ of the <b>nobody</b> user are inherited by all users, regardless of |
| 599 | | - @ whether or not they are logged in. To disable universal access |
| 600 | | - @ to the repository, make sure no user named "<b>nobody</b>" exists or |
| 601 | | - @ that the <b>nobody</b> user has no capabilities enabled. |
| 602 | | - @ The password for <b>nobody</b> is ignore. To avoid problems with |
| 603 | | - @ spiders overloading the server, it is recommended |
| 604 | | - @ that the 'h' (History) capability be turned off for the <b>nobody</b> |
| 605 | | - @ user. |
| 606 | | - @ </p></li> |
| 607 | | - @ |
| 608 | | - @ <li><p> |
| 609 | | - @ Login is required for user "<b>anonymous</b>" but the password |
| 610 | | - @ is displayed on the login screen beside the password entry box |
| 611 | | - @ so anybody who can read should be able to login as anonymous. |
| 612 | | - @ On the other hand, spiders and web-crawlers will typically not |
| 613 | | - @ be able to login. Set the capabilities of the anonymous user |
| 614 | | - @ to things that you want any human to be able to do, but not any |
| 615 | | - @ spider. Every other logged-in user inherits the privileges of |
| 616 | | - @ <b>anonymous</b>. |
| 617 | | - @ </p></li> |
| 618 | | - @ |
| 619 | | - @ <li><p> |
| 620 | | - @ The "<b>developer</b>" user is intended as a template for trusted users |
| 621 | | - @ with check-in privileges. When adding new trusted users, simply |
| 622 | | - @ select the <b>Developer</b> privilege to cause the new user to inherit |
| 623 | | - @ all privileges of the "developer" user. Similarly, the "<b>reader</b>" |
| 624 | | - @ user is a template for users who are allowed more access than anonymous, |
| 625 | | - @ but less than a developer. |
| 626 | | - @ </p></li> |
| 627 | | - @ </ul> |
| 628 | | - @ </form> |
| 601 | + @ No login is required for user <span class="usertype">nobody</span>. The |
| 602 | + @ capabilities of the <span class="usertype">nobody</span> user are inherited by |
| 603 | + @ all users, regardless of whether or not they are logged in. To disable universal |
| 604 | + @ access to the repository, make sure no user named <span class="usertype">nobody</span> |
| 605 | + @ exists or that the <span class="usertype">nobody</span> user has no capabilities |
| 606 | + @ enabled. The password for <span class="usertype">nobody</span> is ignore. To |
| 607 | + @ avoid problems with spiders overloading the server, it is recommended |
| 608 | + @ that the <span class="capability">h</span> (History) capability be turned off |
| 609 | + @ for the <span class="usertype">nobody</span> user. |
| 610 | + @ </p></li> |
| 611 | + @ |
| 612 | + @ <li><p> |
| 613 | + @ Login is required for user <span class="usertype">anonymous</span> but the |
| 614 | + @ password is displayed on the login screen beside the password entry box |
| 615 | + @ so anybody who can read should be able to login as anonymous. |
| 616 | + @ On the other hand, spiders and web-crawlers will typically not |
| 617 | + @ be able to login. Set the capabilities of the <span class="usertype">anonymous</span> |
| 618 | + @ user to things that you want any human to be able to do, but not any |
| 619 | + @ spider. Every other logged-in user inherits the privileges of |
| 620 | + @ <span class="usertype">anonymous</span>. |
| 621 | + @ </p></li> |
| 622 | + @ |
| 623 | + @ <li><p> |
| 624 | + @ The <span class="usertype">developer</span> user is intended as a template |
| 625 | + @ for trusted users with check-in privileges. When adding new trusted users, |
| 626 | + @ simply select the <span class="capability">developer</span> privilege to cause |
| 627 | + @ the new user to inherit all privileges of the <span class="usertype">developer</span> |
| 628 | + @ user. Similarly, the <span class="usertype">reader</span> user is a template |
| 629 | + @ for users who are allowed more access than <span class="usertype">anonymous</span>, |
| 630 | + @ but less than a <span class="usertype">developer</span>. |
| 631 | + @ </p></li> |
| 632 | + @ </ul> |
| 629 | 633 | style_footer(); |
| 630 | 634 | } |
| 631 | 635 | |
| 632 | 636 | |
| 633 | 637 | /* |
| | @@ -651,13 +655,13 @@ |
| 651 | 655 | db_set(zVar, iQ ? "1" : "0", 0); |
| 652 | 656 | iVal = iQ; |
| 653 | 657 | } |
| 654 | 658 | } |
| 655 | 659 | if( iVal ){ |
| 656 | | - @ <input type="checkbox" name="%s(zQParm)" checked><b>%s(zLabel)</b></input> |
| 660 | + @ <input type="checkbox" name="%s(zQParm)" checked="checked" /><b>%s(zLabel)</b> |
| 657 | 661 | }else{ |
| 658 | | - @ <input type="checkbox" name="%s(zQParm)"><b>%s(zLabel)</b></input> |
| 662 | + @ <input type="checkbox" name="%s(zQParm)" /><b>%s(zLabel)</b> |
| 659 | 663 | } |
| 660 | 664 | } |
| 661 | 665 | |
| 662 | 666 | /* |
| 663 | 667 | ** Generate an entry box for an attribute. |
| | @@ -674,11 +678,11 @@ |
| 674 | 678 | if( zQ && strcmp(zQ,zVal)!=0 ){ |
| 675 | 679 | login_verify_csrf_secret(); |
| 676 | 680 | db_set(zVar, zQ, 0); |
| 677 | 681 | zVal = zQ; |
| 678 | 682 | } |
| 679 | | - @ <input type="text" name="%s(zQParm)" value="%h(zVal)" size="%d(width)"> |
| 683 | + @ <input type="text" name="%s(zQParm)" value="%h(zVal)" size="%d(width)" /> |
| 680 | 684 | @ <b>%s(zLabel)</b> |
| 681 | 685 | } |
| 682 | 686 | |
| 683 | 687 | /* |
| 684 | 688 | ** Generate a text box for an attribute. |
| | @@ -715,57 +719,57 @@ |
| 715 | 719 | login_needed(); |
| 716 | 720 | } |
| 717 | 721 | |
| 718 | 722 | style_header("Access Control Settings"); |
| 719 | 723 | db_begin_transaction(); |
| 720 | | - @ <form action="%s(g.zBaseURL)/setup_access" method="POST"> |
| 724 | + @ <form action="%s(g.zBaseURL)/setup_access" method="post"><div> |
| 721 | 725 | login_insert_csrf_secret(); |
| 722 | | - @ <hr> |
| 726 | + @ <hr /> |
| 723 | 727 | onoff_attribute("Require password for local access", |
| 724 | 728 | "localauth", "localauth", 0); |
| 725 | 729 | @ <p>When enabled, the password sign-in is required for |
| 726 | 730 | @ web access coming from 127.0.0.1. When disabled, web access |
| 727 | 731 | @ from 127.0.0.1 is allows without any login - the user id is selected |
| 728 | 732 | @ from the ~/.fossil database. Password login is always required |
| 729 | 733 | @ for incoming web connections on internet addresses other than |
| 730 | | - @ 127.0.0.1.</p></li> |
| 734 | + @ 127.0.0.1.</p> |
| 731 | 735 | |
| 732 | | - @ <hr> |
| 736 | + @ <hr /> |
| 733 | 737 | onoff_attribute("Allow REMOTE_USER authentication", |
| 734 | 738 | "remote_user_ok", "remote_user_ok", 0); |
| 735 | 739 | @ <p>When enabled, if the REMOTE_USER environment variable is set to the |
| 736 | 740 | @ login name of a valid user and no other login credentials are available, |
| 737 | 741 | @ then the REMOTE_USER is accepted as an authenticated user. |
| 738 | | - @ </p></li> |
| 742 | + @ </p> |
| 739 | 743 | |
| 740 | | - @ <hr> |
| 744 | + @ <hr /> |
| 741 | 745 | entry_attribute("Login expiration time", 6, "cookie-expire", "cex", "8766"); |
| 742 | 746 | @ <p>The number of hours for which a login is valid. This must be a |
| 743 | 747 | @ positive number. The default is 8760 hours which is approximately equal |
| 744 | 748 | @ to a year.</p> |
| 745 | 749 | |
| 746 | | - @ <hr> |
| 750 | + @ <hr /> |
| 747 | 751 | entry_attribute("Download packet limit", 10, "max-download", "mxdwn", |
| 748 | 752 | "5000000"); |
| 749 | 753 | @ <p>Fossil tries to limit out-bound sync, clone, and pull packets |
| 750 | 754 | @ to this many bytes, uncompressed. If the client requires more data |
| 751 | 755 | @ than this, then the client will issue multiple HTTP requests. |
| 752 | 756 | @ Values below 1 million are not recommended. 5 million is a |
| 753 | 757 | @ reasonable number.</p> |
| 754 | 758 | |
| 755 | | - @ <hr> |
| 759 | + @ <hr /> |
| 756 | 760 | onoff_attribute("Show javascript button to fill in CAPTCHA", |
| 757 | 761 | "auto-captcha", "autocaptcha", 0); |
| 758 | 762 | @ <p>When enabled, a button appears on the login screen for user |
| 759 | 763 | @ "anonymous" that will automatically fill in the CAPTCHA password. |
| 760 | 764 | @ This is less secure that forcing the user to do it manually, but is |
| 761 | 765 | @ probably secure enough and it is certainly more convenient for |
| 762 | 766 | @ anonymous users.</p> |
| 763 | 767 | |
| 764 | | - @ <hr> |
| 765 | | - @ <p><input type="submit" name="submit" value="Apply Changes"></p> |
| 766 | | - @ </form> |
| 768 | + @ <hr /> |
| 769 | + @ <p><input type="submit" name="submit" value="Apply Changes" /></p> |
| 770 | + @ </div></form> |
| 767 | 771 | db_end_transaction(0); |
| 768 | 772 | style_footer(); |
| 769 | 773 | } |
| 770 | 774 | |
| 771 | 775 | /* |
| | @@ -777,42 +781,42 @@ |
| 777 | 781 | login_needed(); |
| 778 | 782 | } |
| 779 | 783 | |
| 780 | 784 | style_header("Timeline Display Preferences"); |
| 781 | 785 | db_begin_transaction(); |
| 782 | | - @ <form action="%s(g.zBaseURL)/setup_timeline" method="POST"> |
| 786 | + @ <form action="%s(g.zBaseURL)/setup_timeline" method="post"><div> |
| 783 | 787 | login_insert_csrf_secret(); |
| 784 | 788 | |
| 785 | | - @ <hr> |
| 789 | + @ <hr /> |
| 786 | 790 | onoff_attribute("Allow block-markup in timeline", |
| 787 | 791 | "timeline-block-markup", "tbm", 0); |
| 788 | 792 | @ <p>In timeline displays, check-in comments can be displayed with or |
| 789 | 793 | @ without block markup (paragraphs, tables, etc.)</p> |
| 790 | 794 | |
| 791 | | - @ <hr> |
| 795 | + @ <hr /> |
| 792 | 796 | onoff_attribute("Use Universal Coordinated Time (UTC)", |
| 793 | 797 | "timeline-utc", "utc", 1); |
| 794 | 798 | @ <p>Show times as UTC (also sometimes called Greenwich Mean Time (GMT) or |
| 795 | 799 | @ Zulu) instead of in local time.</p> |
| 796 | 800 | |
| 797 | | - @ <hr> |
| 801 | + @ <hr /> |
| 798 | 802 | onoff_attribute("Show version differences by default", |
| 799 | 803 | "show-version-diffs", "vdiff", 0); |
| 800 | 804 | @ <p>On the version-information pages linked from the timeline can either |
| 801 | 805 | @ show complete diffs of all file changes, or can just list the names of |
| 802 | 806 | @ the files that have changed. Users can get to either page by |
| 803 | 807 | @ clicking. This setting selects the default.</p> |
| 804 | 808 | |
| 805 | | - @ <hr> |
| 809 | + @ <hr /> |
| 806 | 810 | entry_attribute("Max timeline comment length", 6, |
| 807 | 811 | "timeline-max-comment", "tmc", "0"); |
| 808 | 812 | @ <p>The maximum length of a comment to be displayed in a timeline. |
| 809 | 813 | @ "0" there is no length limit.</p> |
| 810 | 814 | |
| 811 | | - @ <hr> |
| 812 | | - @ <p><input type="submit" name="submit" value="Apply Changes"></p> |
| 813 | | - @ </form> |
| 815 | + @ <hr /> |
| 816 | + @ <p><input type="submit" name="submit" value="Apply Changes" /></p> |
| 817 | + @ </div></form> |
| 814 | 818 | db_end_transaction(0); |
| 815 | 819 | style_footer(); |
| 816 | 820 | } |
| 817 | 821 | |
| 818 | 822 | /* |
| | @@ -824,11 +828,11 @@ |
| 824 | 828 | login_needed(); |
| 825 | 829 | } |
| 826 | 830 | |
| 827 | 831 | style_header("WWW Configuration"); |
| 828 | 832 | db_begin_transaction(); |
| 829 | | - @ <form action="%s(g.zBaseURL)/setup_config" method="POST"> |
| 833 | + @ <form action="%s(g.zBaseURL)/setup_config" method="post"><div> |
| 830 | 834 | login_insert_csrf_secret(); |
| 831 | 835 | @ <hr /> |
| 832 | 836 | entry_attribute("Project Name", 60, "project-name", "pn", ""); |
| 833 | 837 | @ <p>Give your project a name so visitors know what this site is about. |
| 834 | 838 | @ The project name will also be used as the RSS feed title.</p> |
| | @@ -841,16 +845,16 @@ |
| 841 | 845 | entry_attribute("Index Page", 60, "index-page", "idxpg", "/home"); |
| 842 | 846 | @ <p>Enter the pathname of the page to display when the "Home" menu |
| 843 | 847 | @ option is selected and when no pathname is |
| 844 | 848 | @ specified in the URL. For example, if you visit the url:</p> |
| 845 | 849 | @ |
| 846 | | - @ <blockquote>%h(g.zBaseURL)</blockquote> |
| 850 | + @ <blockquote><p>%h(g.zBaseURL)</p></blockquote> |
| 847 | 851 | @ |
| 848 | 852 | @ <p>And you have specified an index page of "/home" the above will |
| 849 | 853 | @ automatically redirect to:</p> |
| 850 | 854 | @ |
| 851 | | - @ <blockquote>%h(g.zBaseURL)/home</blockquote> |
| 855 | + @ <blockquote><p>%h(g.zBaseURL)/home</p></blockquote> |
| 852 | 856 | @ |
| 853 | 857 | @ <p>The default "/home" page displays a Wiki page with the same name |
| 854 | 858 | @ as the Project Name specified above. Some sites prefer to redirect |
| 855 | 859 | @ to a documentation page (ex: "/doc/tip/index.wiki") or to "/timeline".</p> |
| 856 | 860 | @ <hr /> |
| | @@ -865,12 +869,12 @@ |
| 865 | 869 | @ users to inject dangerous HTML, CSS and JavaScript code into your wiki.</p> |
| 866 | 870 | @ <p>This should <strong>only</strong> be enabled when wiki editing is limited |
| 867 | 871 | @ to trusted users. It should <strong>not</strong> be used on a publically |
| 868 | 872 | @ editable wiki.</p> |
| 869 | 873 | @ <hr /> |
| 870 | | - @ <p><input type="submit" name="submit" value="Apply Changes"></p> |
| 871 | | - @ </form> |
| 874 | + @ <p><input type="submit" name="submit" value="Apply Changes" /></p> |
| 875 | + @ </div></form> |
| 872 | 876 | db_end_transaction(0); |
| 873 | 877 | style_footer(); |
| 874 | 878 | } |
| 875 | 879 | |
| 876 | 880 | /* |
| | @@ -931,21 +935,21 @@ |
| 931 | 935 | cgi_replace_parameter("header", zDefaultHeader); |
| 932 | 936 | }else{ |
| 933 | 937 | textarea_attribute(0, 0, 0, "header", "header", zDefaultHeader); |
| 934 | 938 | } |
| 935 | 939 | style_header("Edit Page Header"); |
| 936 | | - @ <form action="%s(g.zBaseURL)/setup_header" method="POST"> |
| 940 | + @ <form action="%s(g.zBaseURL)/setup_header" method="post"><div> |
| 937 | 941 | login_insert_csrf_secret(); |
| 938 | 942 | @ <p>Edit HTML text with embedded TH1 (a TCL dialect) that will be used to |
| 939 | 943 | @ generate the beginning of every page through start of the main |
| 940 | 944 | @ menu.</p> |
| 941 | 945 | textarea_attribute("", 40, 80, "header", "header", zDefaultHeader); |
| 942 | 946 | @ <br /> |
| 943 | | - @ <input type="submit" name="submit" value="Apply Changes"> |
| 944 | | - @ <input type="submit" name="clear" value="Revert To Default"> |
| 945 | | - @ </form> |
| 946 | | - @ <hr> |
| 947 | + @ <input type="submit" name="submit" value="Apply Changes" /> |
| 948 | + @ <input type="submit" name="clear" value="Revert To Default" /> |
| 949 | + @ </div></form> |
| 950 | + @ <hr /> |
| 947 | 951 | @ The default header is shown below for reference. Other examples |
| 948 | 952 | @ of headers can be seen on the <a href="setup_skin">skins page</a>. |
| 949 | 953 | @ See also the <a href="setup_editcss">CSS</a> and |
| 950 | 954 | @ <a href="setup_footer">footer</a> editing screeens. |
| 951 | 955 | @ <blockquote><pre> |
| | @@ -969,20 +973,20 @@ |
| 969 | 973 | cgi_replace_parameter("footer", zDefaultFooter); |
| 970 | 974 | }else{ |
| 971 | 975 | textarea_attribute(0, 0, 0, "footer", "footer", zDefaultFooter); |
| 972 | 976 | } |
| 973 | 977 | style_header("Edit Page Footer"); |
| 974 | | - @ <form action="%s(g.zBaseURL)/setup_footer" method="POST"> |
| 978 | + @ <form action="%s(g.zBaseURL)/setup_footer" method="post"><div> |
| 975 | 979 | login_insert_csrf_secret(); |
| 976 | 980 | @ <p>Edit HTML text with embedded TH1 (a TCL dialect) that will be used to |
| 977 | 981 | @ generate the end of every page.</p> |
| 978 | 982 | textarea_attribute("", 20, 80, "footer", "footer", zDefaultFooter); |
| 979 | 983 | @ <br /> |
| 980 | | - @ <input type="submit" name="submit" value="Apply Changes"> |
| 981 | | - @ <input type="submit" name="clear" value="Revert To Default"> |
| 982 | | - @ </form> |
| 983 | | - @ <hr> |
| 984 | + @ <input type="submit" name="submit" value="Apply Changes" /> |
| 985 | + @ <input type="submit" name="clear" value="Revert To Default" /> |
| 986 | + @ </div></form> |
| 987 | + @ <hr /> |
| 984 | 988 | @ The default footer is shown below for reference. Other examples |
| 985 | 989 | @ of footers can be seen on the <a href="setup_skin">skins page</a>. |
| 986 | 990 | @ See also the <a href="setup_editcss">CSS</a> and |
| 987 | 991 | @ <a href="setup_header">header</a> editing screens. |
| 988 | 992 | @ <blockquote><pre> |
| | @@ -1032,31 +1036,31 @@ |
| 1032 | 1036 | cgi_redirect("setup_logo"); |
| 1033 | 1037 | } |
| 1034 | 1038 | style_header("Edit Project Logo"); |
| 1035 | 1039 | @ <p>The current project logo has a MIME-Type of <b>%h(zMime)</b> and looks |
| 1036 | 1040 | @ like this:</p> |
| 1037 | | - @ <blockquote><img src="%s(g.zTop)/logo" alt="logo"></blockquote> |
| 1041 | + @ <blockquote><p><img src="%s(g.zTop)/logo" alt="logo" /></p></blockquote> |
| 1038 | 1042 | @ |
| 1039 | 1043 | @ <p>The logo is accessible to all users at this URL: |
| 1040 | 1044 | @ <a href="%s(g.zBaseURL)/logo">%s(g.zBaseURL)/logo</a>. |
| 1041 | 1045 | @ The logo may or may not appear on each |
| 1042 | 1046 | @ page depending on the <a href="setup_editcss">CSS</a> and |
| 1043 | 1047 | @ <a href="setup_header">header setup</a>.</p> |
| 1044 | 1048 | @ |
| 1045 | | - @ <form action="%s(g.zBaseURL)/setup_logo" method="POST" |
| 1046 | | - @ enctype="multipart/form-data"> |
| 1049 | + @ <form action="%s(g.zBaseURL)/setup_logo" method="post" |
| 1050 | + @ enctype="multipart/form-data"><div> |
| 1047 | 1051 | @ <p>To set a new logo image, select a file to use as the logo using |
| 1048 | 1052 | @ the entry box below and then press the "Change Logo" button.</p> |
| 1049 | 1053 | login_insert_csrf_secret(); |
| 1050 | 1054 | @ Logo Image file: |
| 1051 | | - @ <input type="file" name="im" size="60" accepts="image/*"><br> |
| 1052 | | - @ <input type="submit" name="set" value="Change Logo"> |
| 1053 | | - @ <input type="submit" name="clr" value="Revert To Default"> |
| 1054 | | - @ </form> |
| 1055 | + @ <input type="file" name="im" size="60" accept="image/*" /><br /> |
| 1056 | + @ <input type="submit" name="set" value="Change Logo" /> |
| 1057 | + @ <input type="submit" name="clr" value="Revert To Default" /> |
| 1058 | + @ </div></form> |
| 1055 | 1059 | @ |
| 1056 | 1060 | @ <p><span class="note">Note:</span> Your browser has probably cached the logo image, so |
| 1057 | 1061 | @ you will probably need to press the Reload button on your browser after |
| 1058 | 1062 | @ changing the logo to provoke your browser to reload the new logo image. |
| 1059 | 1063 | @ </p> |
| 1060 | 1064 | style_footer(); |
| 1061 | 1065 | db_end_transaction(0); |
| 1062 | 1066 | } |
| 1063 | 1067 | |