aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-05 15:53:25 -0800
committerfriendica <info@friendica.com>2015-03-05 15:53:25 -0800
commitec5c989352c91e050d306d234f638bb3fc7f6f6d (patch)
tree67bfe7e14630f408ac21ca2c18dc012063c566e9 /mod
parent9bbf509ede626223c53a3cf22191559aae4815d1 (diff)
downloadvolse-hubzilla-ec5c989352c91e050d306d234f638bb3fc7f6f6d.tar.gz
volse-hubzilla-ec5c989352c91e050d306d234f638bb3fc7f6f6d.tar.bz2
volse-hubzilla-ec5c989352c91e050d306d234f638bb3fc7f6f6d.zip
make destructive queue management functions an expert option
Diffstat (limited to 'mod')
-rw-r--r--mod/admin.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/admin.php b/mod/admin.php
index 35e43252c..13cf371b0 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -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;