fixed statslog
This commit is contained in:
parent
94ed85f681
commit
40af1b8d0b
@ -138,6 +138,6 @@ foreach ($URL_RULES as $rule)
|
|||||||
//TODO fast
|
//TODO fast
|
||||||
//TODO gzip (?)
|
//TODO gzip (?)
|
||||||
//TODO better gh widget
|
//TODO better gh widget
|
||||||
|
//TODO remove db table prefixes
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,13 +9,14 @@
|
|||||||
$ver = $OPTIONS['Version'];
|
$ver = $OPTIONS['Version'];
|
||||||
$prv = $OPTIONS['ProviderStr'];
|
$prv = $OPTIONS['ProviderStr'];
|
||||||
$pid = $OPTIONS['ProviderID'];
|
$pid = $OPTIONS['ProviderID'];
|
||||||
$tnc = $OPTIONS['NoteCount'];
|
$tnc = $OPTIONS['NoteCount'];
|
||||||
|
$uip = $OPTIONS['NoteCount'];
|
||||||
|
|
||||||
if ($nam === 'AlephNote')
|
if ($nam === 'AlephNote')
|
||||||
{
|
{
|
||||||
Database::connect();
|
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],
|
[':cid', $cid, PDO::PARAM_STR],
|
||||||
[':ver', $ver, PDO::PARAM_STR],
|
[':ver', $ver, PDO::PARAM_STR],
|
||||||
|
Loading…
Reference in New Issue
Block a user