Differences From:
File
src/report.c
part of check-in
[cd965de682]
- Fix some compiler warnings.
by
drh on
2009-01-24 10:44:43.
[view]
To:
File
src/report.c
part of check-in
[7a2c37063a]
- merge trunk into creole branch
by
bob on
2009-09-22 07:49:39.
Also file
src/report.c
part of check-in
[5fe3aee839]
- Disable additional hyperlinks when "history" privilege is disabled
(by default when the user has not signed in as "anonymous" or other known
user.) Help prevent spiders for soaking up bandwidth.
by
drh on
2009-08-30 01:22:15.
[view]
@@ -46,8 +46,14 @@
@ <p>Enter a new ticket:</p>
@ <ol><li value="1"><a href="tktnew">New ticket</a></li></ol>
@
cnt++;
+ }else if( db_exists(
+ "SELECT 1 FROM user"
+ " WHERE login='anonymous' AND cap GLOB '*n*'")
+ ){
+ @ <p><a href="login?anon=1&g=tktnew">Login as "anonymous"</a>
+ @ to enter a new ticket.</p>
}
if( !g.okRdTkt ){
@ <p>You are not authorized to view existing tickets.</p>
}else{
@@ -778,9 +784,13 @@
blob_reset(&content);
}
}else if( azName[i][0]=='#' ){
zTid = zData;
- @ <td valign="top"><a href="tktview?name=%h(zData)">%h(zData)</a></td>
+ if( g.okHistory ){
+ @ <td valign="top"><a href="tktview?name=%h(zData)">%h(zData)</a></td>
+ }else{
+ @ <td valign="top">%h(zData)</td>
+ }
}else if( zData[0]==0 ){
@ <td valign="top"> </td>
}else{
@ <td valign="top">