Skip to content
Permalink
Browse files
Czyszczenie jest w klasie User. Usuwam.
  • Loading branch information
Inscure committed May 23, 2013
1 parent 32fb759 commit c52e551
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
@@ -15,9 +15,3 @@
| written permission from the original author(s).
|
**********************************************************/
if ($_sett->get('cronjob_hour') < (time()-60*60*2))
{
// Usuwanie niepotrzebnych wpisów z tabeli użytkowników online.
$_pdo->exec('DELETE FROM [users_online] WHERE `last_activity` < '.(time()-60*60*2));
$_sett->update(array('cronjob_hour' => time()));
}
@@ -371,9 +371,6 @@ public function saveNewAvatar($id, $file, $check_exists = FALSE, $delete_file =

protected function getAvatarErrorStatus()
{



return array(
'type_error' => __('The avatar seems not to be an image.'),
'filesize_error' => __('The avatar has got too large file size.'),
@@ -1687,7 +1684,7 @@ public function cleanPerms()
}
}

/** Kontrola logowania **/
/** Kontrola logowania **/ //- //TODO: potrzebne?
/**
* Ustawia nie udaną próbę logowania
@@ -1727,7 +1724,6 @@ protected function cacheOnline()
{
foreach ($this->_pdo->getData('SELECT o.*, u.username FROM [users_online] o LEFT JOIN [users] u ON o.user_id = u.id ORDER BY o.last_activity DESC') as $user)
{
//if (in_array($))
$this->_online[] = $user;
}

@@ -1771,7 +1767,6 @@ public function getOnline()
}

$this->_get_users_online = $data;
//$this->cleanOnlineDuplicates();
}

return $this->_get_users_online;
@@ -1922,7 +1917,7 @@ public function bannedByEmail($email, $validation = FALSE)
return TRUE;
}

// Źródło?
// From php.net
private function IPv6($ip, $limit)
{
if (strpos($ip, "::") !== FALSE)

0 comments on commit c52e551

Please sign in to comment.