Fossil

Check-in [5476e50d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Use double-quotes instead of single-quotes in skin template to avoid having to escape the single quotes for SQL.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:5476e50d659dd8525bc4f5f7d849a0fd1ba394d2
User & Date: drh 2010-03-05 13:55:48
References
2010-03-08
13:18
Get skins working again. They were busted by check-in [5476e50d659] (which was backed out using the new --backout option to merge.) Also add an unused query parameter to the style.css to force a reload of the CSS when the skin changes. check-in: b22e5a9e user: drh tags: trunk
Context
2010-03-05
13:56
Update to a version of SQLite that builds on Mac with SQLITE_ENABLE_LOCKING_STYLE disabled. check-in: e1f21628 user: drh tags: trunk
13:55
Use double-quotes instead of single-quotes in skin template to avoid having to escape the single quotes for SQL. check-in: 5476e50d user: drh tags: trunk
01:00
Prompt for the password whenever a URL is supplied that contains a username but no password. check-in: 99a98377 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/skins.c.

180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
...
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
...
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
@        puts "Logged in as $login"
@      } else {
@        puts "Not logged in"
@      }
@   </th1></nobr></div>
@ </div>
@ <div class="mainmenu"><th1>
@ html "<a href=''$baseurl$index_page''>Home</a> "
@ if {[anycap jor]} {
@   html "<a href=''$baseurl/timeline''>Timeline</a> "
@ }
@ if {[hascap oh]} {
@   html "<a href=''$baseurl/dir''>Files</a> "
@ }
@ if {[hascap o]} {
@   html "<a href=''$baseurl/leaves''>Leaves</a> "
@   html "<a href=''$baseurl/brlist''>Branches</a> "
@   html "<a href=''$baseurl/taglist''>Tags</a> "
@ }
@ if {[hascap r]} {
@   html "<a href=''$baseurl/reportlist''>Tickets</a> "
@ }
@ if {[hascap j]} {
@   html "<a href=''$baseurl/wiki''>Wiki</a> "
@ }
@ if {[hascap s]} {
@   html "<a href=''$baseurl/setup''>Admin</a> "
@ } elseif {[hascap a]} {
@   html "<a href=''$baseurl/setup_ulist''>Users</a> "
@ }
@ if {[info exists login]} {
@   html "<a href=''$baseurl/login''>Logout</a> "
@ } else {
@   html "<a href=''$baseurl/login''>Login</a> "
@ }
@ </th1></div>
@ ');
@ REPLACE INTO config VALUES('footer','<div class="footer">
@ Fossil version $manifest_version $manifest_date 
@ </div>
@ </body></html>
................................................................................
@        puts "Logged in as $login"
@      } else {
@        puts "Not logged in"
@      }
@   </th1></nobr></div>
@ </div>
@ <div class="mainmenu"><th1>
@ html "<a href=''$baseurl$index_page''>Home</a> "
@ if {[anycap jor]} {
@   html "<a href=''$baseurl/timeline''>Timeline</a> "
@ }
@ if {[hascap oh]} {
@   html "<a href=''$baseurl/dir''>Files</a> "
@ }
@ if {[hascap o]} {
@   html "<a href=''$baseurl/leaves''>Leaves</a> "
@   html "<a href=''$baseurl/brlist''>Branches</a> "
@   html "<a href=''$baseurl/taglist''>Tags</a> "
@ }
@ if {[hascap r]} {
@   html "<a href=''$baseurl/reportlist''>Tickets</a> "
@ }
@ if {[hascap j]} {
@   html "<a href=''$baseurl/wiki''>Wiki</a> "
@ }
@ if {[hascap s]} {
@   html "<a href=''$baseurl/setup''>Admin</a> "
@ } elseif {[hascap a]} {
@   html "<a href=''$baseurl/setup_ulist''>Users</a> "
@ }
@ if {[info exists login]} {
@   html "<a href=''$baseurl/login''>Logout</a> "
@ } else {
@   html "<a href=''$baseurl/login''>Login</a> "
@ }
@ </th1></div>
@ ');
@ REPLACE INTO config VALUES('footer','<div class="footer">
@ Fossil version $manifest_version $manifest_date
@ </div>
@ </body></html>
................................................................................
@   text-decoration: none;
@ }
@ div.mainmenu a:hover {
@   color: #eee;
@   background-color: #333;
@ }
@ 
@ /* Container for the sub-menu and content so they don''t spread
@ ** out underneath the main menu */
@ #container {
@   padding-left: 9em;
@ }
@ 
@ /* The submenu bar that *sometimes* appears below the main menu */
@ div.submenu {
................................................................................
@        puts "Logged in as $login"
@      } else {
@        puts "Not logged in"
@      }
@   </th1></nobr></div>
@ </div>
@ <div class="mainmenu"><ul><th1>
@ html "<li><a href=''$baseurl$index_page''>Home</a></li>"
@ if {[anycap jor]} {
@   html "<li><a href=''$baseurl/timeline''>Timeline</a></li>"
@ }
@ if {[hascap oh]} {
@   html "<li><a href=''$baseurl/dir''>Files</a></li>"
@ }
@ if {[hascap o]} {
@   html "<li><a href=''$baseurl/leaves''>Leaves</a></li>"
@   html "<li><a href=''$baseurl/brlist''>Branches</a></li>"
@   html "<li><a href=''$baseurl/taglist''>Tags</a></li>"
@ }
@ if {[hascap r]} {
@   html "<li><a href=''$baseurl/reportlist''>Tickets</a></li>"
@ }
@ if {[hascap j]} {
@   html "<li><a href=''$baseurl/wiki''>Wiki</a></li>"
@ }
@ if {[hascap s]} {
@   html "<li><a href=''$baseurl/setup''>Admin</a></li>"
@ } elseif {[hascap a]} {
@   html "<li><a href=''$baseurl/setup_ulist''>Users</a></li>"
@ }
@ if {[info exists login]} {
@   html "<li><a href=''$baseurl/login''>Logout</a></li>"
@ } else {
@   html "<li><a href=''$baseurl/login''>Login</a></li>"
@ }
@ </th1></ul></div>
@ <div id="container">
@ ');
@ REPLACE INTO config VALUES('footer','</div>
@ <div class="footer">
@ Fossil version $manifest_version $manifest_date







|

|


|


|
|
|


|


|


|

|


|

|







 







|

|


|


|
|
|


|


|


|

|


|

|







 







|







 







|

|


|


|
|
|


|


|


|

|


|

|







180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
...
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
...
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
@        puts "Logged in as $login"
@      } else {
@        puts "Not logged in"
@      }
@   </th1></nobr></div>
@ </div>
@ <div class="mainmenu"><th1>
@ html "<a href="$baseurl$index_page">Home</a> "
@ if {[anycap jor]} {
@   html "<a href="$baseurl/timeline">Timeline</a> "
@ }
@ if {[hascap oh]} {
@   html "<a href="$baseurl/dir">Files</a> "
@ }
@ if {[hascap o]} {
@   html "<a href="$baseurl/leaves">Leaves</a> "
@   html "<a href="$baseurl/brlist">Branches</a> "
@   html "<a href="$baseurl/taglist">Tags</a> "
@ }
@ if {[hascap r]} {
@   html "<a href="$baseurl/reportlist">Tickets</a> "
@ }
@ if {[hascap j]} {
@   html "<a href="$baseurl/wiki">Wiki</a> "
@ }
@ if {[hascap s]} {
@   html "<a href="$baseurl/setup">Admin</a> "
@ } elseif {[hascap a]} {
@   html "<a href="$baseurl/setup_ulist">Users</a> "
@ }
@ if {[info exists login]} {
@   html "<a href="$baseurl/login">Logout</a> "
@ } else {
@   html "<a href="$baseurl/login">Login</a> "
@ }
@ </th1></div>
@ ');
@ REPLACE INTO config VALUES('footer','<div class="footer">
@ Fossil version $manifest_version $manifest_date 
@ </div>
@ </body></html>
................................................................................
@        puts "Logged in as $login"
@      } else {
@        puts "Not logged in"
@      }
@   </th1></nobr></div>
@ </div>
@ <div class="mainmenu"><th1>
@ html "<a href="$baseurl$index_page">Home</a> "
@ if {[anycap jor]} {
@   html "<a href="$baseurl/timeline">Timeline</a> "
@ }
@ if {[hascap oh]} {
@   html "<a href="$baseurl/dir">Files</a> "
@ }
@ if {[hascap o]} {
@   html "<a href="$baseurl/leaves">Leaves</a> "
@   html "<a href="$baseurl/brlist">Branches</a> "
@   html "<a href="$baseurl/taglist">Tags</a> "
@ }
@ if {[hascap r]} {
@   html "<a href="$baseurl/reportlist">Tickets</a> "
@ }
@ if {[hascap j]} {
@   html "<a href="$baseurl/wiki">Wiki</a> "
@ }
@ if {[hascap s]} {
@   html "<a href="$baseurl/setup">Admin</a> "
@ } elseif {[hascap a]} {
@   html "<a href="$baseurl/setup_ulist">Users</a> "
@ }
@ if {[info exists login]} {
@   html "<a href="$baseurl/login">Logout</a> "
@ } else {
@   html "<a href="$baseurl/login">Login</a> "
@ }
@ </th1></div>
@ ');
@ REPLACE INTO config VALUES('footer','<div class="footer">
@ Fossil version $manifest_version $manifest_date
@ </div>
@ </body></html>
................................................................................
@   text-decoration: none;
@ }
@ div.mainmenu a:hover {
@   color: #eee;
@   background-color: #333;
@ }
@ 
@ /* Container for the sub-menu and content so they don"t spread
@ ** out underneath the main menu */
@ #container {
@   padding-left: 9em;
@ }
@ 
@ /* The submenu bar that *sometimes* appears below the main menu */
@ div.submenu {
................................................................................
@        puts "Logged in as $login"
@      } else {
@        puts "Not logged in"
@      }
@   </th1></nobr></div>
@ </div>
@ <div class="mainmenu"><ul><th1>
@ html "<li><a href="$baseurl$index_page">Home</a></li>"
@ if {[anycap jor]} {
@   html "<li><a href="$baseurl/timeline">Timeline</a></li>"
@ }
@ if {[hascap oh]} {
@   html "<li><a href="$baseurl/dir">Files</a></li>"
@ }
@ if {[hascap o]} {
@   html "<li><a href="$baseurl/leaves">Leaves</a></li>"
@   html "<li><a href="$baseurl/brlist">Branches</a></li>"
@   html "<li><a href="$baseurl/taglist">Tags</a></li>"
@ }
@ if {[hascap r]} {
@   html "<li><a href="$baseurl/reportlist">Tickets</a></li>"
@ }
@ if {[hascap j]} {
@   html "<li><a href="$baseurl/wiki">Wiki</a></li>"
@ }
@ if {[hascap s]} {
@   html "<li><a href="$baseurl/setup">Admin</a></li>"
@ } elseif {[hascap a]} {
@   html "<li><a href="$baseurl/setup_ulist">Users</a></li>"
@ }
@ if {[info exists login]} {
@   html "<li><a href="$baseurl/login">Logout</a></li>"
@ } else {
@   html "<li><a href="$baseurl/login">Login</a></li>"
@ }
@ </th1></ul></div>
@ <div id="container">
@ ');
@ REPLACE INTO config VALUES('footer','</div>
@ <div class="footer">
@ Fossil version $manifest_version $manifest_date