1
0

fixed statslog

This commit is contained in:
Mike Schwörer 2017-12-15 17:22:59 +01:00
parent 94ed85f681
commit 40af1b8d0b
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 4 additions and 3 deletions

View File

@ -138,6 +138,6 @@ foreach ($URL_RULES as $rule)
//TODO fast
//TODO gzip (?)
//TODO better gh widget
//TODO remove db table prefixes

View File

@ -9,13 +9,14 @@
$ver = $OPTIONS['Version'];
$prv = $OPTIONS['ProviderStr'];
$pid = $OPTIONS['ProviderID'];
$tnc = $OPTIONS['NoteCount'];
$tnc = $OPTIONS['NoteCount'];
$uip = $OPTIONS['NoteCount'];
if ($nam === 'AlephNote')
{
Database::connect();
Database::sql_exec_prep('REPLACE INTO ms4_an_statslog (ClientID, Version, ProviderStr, ProviderID, NoteCount) VALUES (:cid, :ver, :prv, :pid, :tnc)',
Database::sql_exec_prep('INSERT INTO ms4_an_statslog (ClientID, Version, ProviderStr, ProviderID, NoteCount) VALUES (:cid, :ver, :prv, :pid, :tnc) ON DUPLICATE KEY UPDATE Version=:v,ProviderStr=:pstr,ProviderID=:pid,NoteCount=:nc',
[
[':cid', $cid, PDO::PARAM_STR],
[':ver', $ver, PDO::PARAM_STR],