fix the admin interface to pending registrations

This commit is contained in:
friendica 2014-01-21 14:56:42 -08:00
parent 530adb50ee
commit 60416d6f33
3 changed files with 5 additions and 6 deletions

View file

@ -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",

View file

@ -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'),

View file

@ -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>