added buttons to perform later hubloc actions
This commit is contained in:
parent
1fa8546d46
commit
a13593590b
@ -339,7 +339,7 @@ function get_form_security_token($typename = '') {
|
||||
|
||||
$timestamp = time();
|
||||
$sec_hash = hash('whirlpool', $a->user['guid'] . $a->user['prvkey'] . session_id() . $timestamp . $typename);
|
||||
|
||||
|
||||
return $timestamp . '.' . $sec_hash;
|
||||
}
|
||||
|
||||
|
@ -456,7 +456,8 @@ function admin_page_site(&$a) {
|
||||
|
||||
}
|
||||
function admin_page_hubloc_post(&$a){
|
||||
check_form_security_token_redirectOnErr('/admin/hubloc', 'hubloc');
|
||||
check_form_security_token_redirectOnErr('/admin/hubloc', 'admin_hubloc');
|
||||
goaway($a->get_baseurl(true) . '/admin/hubloc' );
|
||||
return;
|
||||
}
|
||||
|
||||
@ -479,7 +480,8 @@ function admin_page_hubloc(&$a) {
|
||||
'$queues' => $queues,
|
||||
//'$accounts' => $accounts, /*$accounts is empty here*/
|
||||
'$pending' => Array( t('Pending registrations'), $pending),
|
||||
'$plugins' => Array( t('Active plugins'), $a->plugins )
|
||||
'$plugins' => Array( t('Active plugins'), $a->plugins ),
|
||||
'$form_security_token' => get_form_security_token("admin_hubloc")
|
||||
));
|
||||
return $o;
|
||||
}
|
||||
|
@ -14,6 +14,8 @@
|
||||
|
||||
{{foreach $hubloc as $hub}}<tr>
|
||||
<td>{{$hub.hubloc_id}}</td><td>{{$hub.hubloc_addr}}</td><td>{{$hub.hubloc_host}}</td><td>{{$hub.hubloc_status}}</td>
|
||||
<td><input type="hidden" name="hublocid" value="{{$hub.hubloc_id}}"><input type="submit" name="check" value="check" ></td>
|
||||
<td><input type="hidden" name="hublocid" value="{{$hub.hubloc_id}}"><input type="submit" name="repair" value="repair" ></td>
|
||||
</tr>{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user