Fix user-agent logging

$_SERVER instead of $_ENV
Fix SQL error on email verification

Bug verified on labs:live and labs:fl4-dev:

Verifying an email address causes the following error to appear at the
bottom of the screen:

(db toolserver)Query failed: SELECT * FROM acc_emails WHERE mail_id =
'23'; ERROR: Table 'acc_notif.acc_emails' doesn't exist

This patch should fix that.
tweak for the new checkbox
Merge pull request #4 from enwikipedia-acc/temppw-checkbox

tweak for the new checkbox - merge after deployment of xff-fix
fix IP count issue
fixes
fix
Merge branch 'master' of github.com:enwikipedia-acc/waca
trusted-xff fix
fix
fix
increase memlimit
unique the array a bit more to try and cut down on mem usage
fix
Fix script
Merge branch 'trustedxff-fix'
Merge remote-tracking branch 'origin/master'
Fix "Other requets from IP" bug on requests w/ XFF

Appears to have been introduced with the new XFF system.  This
particular bug affects any request with XFF headers that are trusted
further than one level down.

Another bug exists when all IPs in the XFF headers as well as the
origin are trusted proxies.  Not fixed in this commit.
Fixes bugs when all IP in a rq are trusted proxies

Fixes bugs when all IPs in a request and its XFF chain are listed as
trusted proxies; specifically, IP links not showing for origins that are
themselves trusted proxies, and the origin not being listed as the
originating IP when the origin is a trusted proxy itself.  This is an
edge case of sorts, but at least it will be handled gracefully.
Disable Betacommand's check (SIL)

(This change is a root action.)