This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2020-04-24 12:13:59 INFO (SyncWorker_13) [homeassistant.loader] Loaded input_number from homeassistant.components.input_number, | |
2020-04-24 12:13:59 INFO (SyncWorker_8) [homeassistant.loader] Loaded input_select from homeassistant.components.input_select, | |
2020-04-24 12:13:59 INFO (MainThread) [homeassistant.bootstrap] Setting up {'system_log'}, | |
2020-04-24 12:13:59 INFO (MainThread) [homeassistant.setup] Setting up http, | |
2020-04-24 12:13:59 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds., | |
2020-04-24 12:13:59 INFO (MainThread) [homeassistant.setup] Setting up system_log, | |
2020-04-24 12:13:59 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds., | |
2020-04-24 12:14:02 INFO (MainThread) [homeassistant.setup] Setting up recorder, | |
2020-04-24 12:14:02 INFO (MainThread) [homeassistant.setup] Setting up webhook, | |
2020-04-24 12:14:02 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds., |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* == PAGECOUNTER == */ | |
/* == Pitää lukua päivittäisistä vierailijamääristä == */ | |
$pagecounter_cache_key = 'pagecounter_' . $user_id . '_' . date('Y-m-d'); | |
$pagecounter = $cache->get($pagecounter_cache_key); | |
if (!is_array($pagecounter)) | |
{ | |
$pagecounter = array(); | |
$res = $db->query("SELECT date, count from pagecounter WHERE WEEK(date) = WEEK(CURDATE()) AND user_id = ?", array($user_id)); | |
if ($res->numRows() > 0) | |
{ |