fix the admin interface to pending registrations
This commit is contained in:
parent
530adb50ee
commit
60416d6f33
@ -383,11 +383,11 @@ function user_deny($hash) {
|
||||
if(! count($register))
|
||||
return false;
|
||||
|
||||
$user = q("SELECT account_id FROM account WHERE account_id = %d LIMIT 1",
|
||||
$account = q("SELECT account_id FROM account WHERE account_id = %d LIMIT 1",
|
||||
intval($register[0]['uid'])
|
||||
);
|
||||
|
||||
if(! $user)
|
||||
if(! $account)
|
||||
return false;
|
||||
|
||||
$r = q("DELETE FROM account WHERE account_id = %d LIMIT 1",
|
||||
|
@ -688,7 +688,7 @@ function admin_page_users(&$a){
|
||||
'$submit' => t('Submit'),
|
||||
'$select_all' => t('select all'),
|
||||
'$h_pending' => t('User registrations waiting for confirm'),
|
||||
'$th_pending' => array( t('Request date'), t('Name'), t('Email') ),
|
||||
'$th_pending' => array( t('Request date'), t('Email') ),
|
||||
'$no_pending' => t('No registrations.'),
|
||||
'$approve' => t('Approve'),
|
||||
'$deny' => t('Deny'),
|
||||
|
@ -29,9 +29,8 @@
|
||||
<tbody>
|
||||
{{foreach $pending as $u}}
|
||||
<tr>
|
||||
<td class="created">{{$u.created}}</td>
|
||||
<td class="name">{{$u.name}}</td>
|
||||
<td class="email">{{$u.email}}</td>
|
||||
<td class="created">{{$u.account_created}}</td>
|
||||
<td class="email">{{$u.account_email}}</td>
|
||||
<td class="checkbox"><input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}" /></td>
|
||||
<td class="tools">
|
||||
<a href="{{$baseurl}}/regmod/allow/{{$u.hash}}" title='{{$approve}}'><i class='icon-thumbs-up-alt admin-icons'></i></a>
|
||||
|
Reference in New Issue
Block a user