| 1 |
<?php |
<?php |
| 2 |
// $Id: user_stats.module,v 1.2.2.16.2.18 2009/02/14 05:21:38 liammcdermott Exp $ |
// $Id: user_stats.module,v 1.2.2.16.2.19 2009/02/14 21:50:09 liammcdermott Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 90 |
|
|
| 91 |
// IP address is really a bit of feature creep. |
// IP address is really a bit of feature creep. |
| 92 |
// At some point in the future, this could be split off into its own module. |
// At some point in the future, this could be split off into its own module. |
| 93 |
if ($type == 'ip_address' && user_access('View IP addresses')) { |
if ($type == 'ip_address') { |
| 94 |
|
if (!user_access('View IP addresses')) { |
| 95 |
|
return FALSE; |
| 96 |
|
} |
| 97 |
// Check cache. |
// Check cache. |
| 98 |
if (user_stats_cache_get($type, $uid) === FALSE) { |
if (user_stats_cache_get($type, $uid) === FALSE) { |
| 99 |
$query = db_query("SELECT MAX(ip_address) |
$query = db_query("SELECT MAX(ip_address) |