make destructive queue management functions an expert option

This commit is contained in:
friendica
2015-03-05 15:53:25 -08:00
parent 9bbf509ede
commit ec5c989352
2 changed files with 5 additions and 2 deletions

View File

@@ -590,6 +590,8 @@ function admin_page_dbsync(&$a) {
function admin_page_queue($a) {
$o = '';
$expert = ((array_key_exists('expert',$_REQUEST)) ? intval($_REQUEST['expert']) : 0);
if($_REQUEST['drophub']) {
require_once('hubloc.php');
hubloc_mark_as_down($_REQUEST['drophub']);
@@ -620,7 +622,8 @@ function admin_page_queue($a) {
'$empty' => t('Empty queue for this hub'),
'$lastconn' => t('Last known contact'),
'$hasentries' => ((count($r)) ? true : false),
'$entries' => $r
'$entries' => $r,
'$expert' => $expert
));
return $o;