aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_main.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-07-01 19:11:52 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-07-01 19:11:52 +0000
commit6df6eb0e601d459544b0cbcee063cf19c01bb37d (patch)
treec99b89abfafe03c69d5e0852abda5f4c0b98f155 /phpBB/includes/acp/acp_main.php
parent7ad5db1856f18edb5fb8e2cd784b1eb22d3dcbc1 (diff)
downloadforums-6df6eb0e601d459544b0cbcee063cf19c01bb37d.tar
forums-6df6eb0e601d459544b0cbcee063cf19c01bb37d.tar.gz
forums-6df6eb0e601d459544b0cbcee063cf19c01bb37d.tar.bz2
forums-6df6eb0e601d459544b0cbcee063cf19c01bb37d.tar.xz
forums-6df6eb0e601d459544b0cbcee063cf19c01bb37d.zip
- add additional auth check to the permission roles modules
- added new function to return globally used expressions (get_preg_expression($mode)). This should be very helpful in getting wide spread similar checks (regular expressions) to one place reducing the risk of forgetting to change every location if you fix one. ;) We will add additional ones later, at the moment only the email check is retrieved... - added "active module" var to the module class returning the current active module - changed call to image magick - add administrator to global moderators group by default - extend auth_option column a little bit - other bugfixes git-svn-id: file:///svn/phpbb/trunk@6135 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_main.php')
-rw-r--r--phpBB/includes/acp/acp_main.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php
index 0e1e4fe793..07aabc672a 100644
--- a/phpBB/includes/acp/acp_main.php
+++ b/phpBB/includes/acp/acp_main.php
@@ -439,7 +439,7 @@ class acp_main
if ($auth->acl_get('a_user'))
{
- $sql = 'SELECT user_id, username, user_regdate
+ $sql = 'SELECT user_id, username, user_regdate, user_lastvisit
FROM ' . USERS_TABLE . '
WHERE user_type = ' . USER_INACTIVE . '
ORDER BY user_regdate ASC';
@@ -449,6 +449,7 @@ class acp_main
{
$template->assign_block_vars('inactive', array(
'DATE' => $user->format_date($row['user_regdate']),
+ 'LAST_VISIT' => (!$row['user_lastvisit']) ? ' - ' : $user->format_date($row['user_lastvisit']),
'USER_ID' => $row['user_id'],
'USERNAME' => $row['username'],
'U_USER_ADMIN' => append_sid("{$phpbb_admin_path}index.$phpEx", "i=users&amp;mode=overview&amp;u={$row['user_id']}"))