Skip to content

Commit

Permalink
Disable UserTrack and TrackFile by default; add warning to traffic re…
Browse files Browse the repository at this point in the history
…port
  • Loading branch information
jonjensen committed May 25, 2010
1 parent f8edabe commit 0494eb5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions dist/lib/UI/pages/admin/reports/traffic/ByAffiliate.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

@_UI_STD_HEAD_@

[if config TrackFile]
[traffic-report]
[else]
<p><em>This report cannot be run until the TrackFile directive is configured in catalog.cfg.</em></p>
[/else]
[/if]

@_UI_STD_FOOTER_@
7 changes: 7 additions & 0 deletions dist/lib/UI/pages/admin/trafficstats.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
[set help_name]stats.traffic[/set]
@_UI_STD_HEAD_@

[if config TrackFile]

<table border=0 __UI_T_PROPERTIES__ width="60%">
<tr class=rborder height=1><td colspan=2></td></tr>
<tr>
Expand Down Expand Up @@ -102,4 +104,9 @@
</tr>
</table>

[else]
<p><em>This report cannot be run until the TrackFile directive is configured in catalog.cfg.</em></p>
[/else]
[/if]

@_UI_STD_FOOTER_@
7 changes: 5 additions & 2 deletions dist/standard/catalog.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ ParseVariables Yes
ifdef LOGDIR
ErrorFile __LOGDIR__/error.log
AsciiTrack __LOGDIR__/tracking.asc
TrackFile __LOGDIR__/usertrack
#TrackFile __LOGDIR__/usertrack
endif

ifndef LOGDIR
AsciiTrack logs/tracking.asc
TrackFile logs/usertrack
#TrackFile logs/usertrack
endif

ifdef CACHEDIR
Expand Down Expand Up @@ -182,6 +182,9 @@ SpecialPage receipt ../etc/receipt
ReadPermission group
WritePermission group

# Don't send X-Track HTTP response header
UserTrack no

# If a specific user session accesses this catalog more than this many
# times with no pauses of 30 seconds or more, the LockoutCommand (if set)
# is executed. Set this to 0 if you're getting links to 127.0.0.1
Expand Down

0 comments on commit 0494eb5

Please sign in to comment.