diff options
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Admin/Queueworker.php (renamed from Zotlabs/Module/Queueworker.php) | 21 | ||||
-rw-r--r-- | Zotlabs/Widget/Admin.php | 1 |
2 files changed, 3 insertions, 19 deletions
diff --git a/Zotlabs/Module/Queueworker.php b/Zotlabs/Module/Admin/Queueworker.php index 440132881..b7972b2db 100644 --- a/Zotlabs/Module/Queueworker.php +++ b/Zotlabs/Module/Admin/Queueworker.php @@ -1,6 +1,6 @@ <?php -namespace Zotlabs\Module; +namespace Zotlabs\Module\Admin; use App; use Zotlabs\Web\Controller; @@ -13,10 +13,6 @@ class Queueworker extends Controller { function post() { - if ((!local_channel()) || (!is_site_admin())) { - goaway(z_root() . '/queueworker'); - } - check_form_security_token('form_security_token', 'queueworker'); $maxqueueworkers = intval($_POST['queueworker_maxworkers']); @@ -31,24 +27,11 @@ class Queueworker extends Controller { $queueworkersleep = ($queueworkersleep > 100) ? $queueworkersleep : 100; set_config('queueworker', 'queue_worker_sleep', $queueworkersleep); - goaway(z_root() . '/queueworker'); + goaway(z_root() . '/admin/queueworker'); } function get() { - $content = "<H1>ERROR: Page not found</H1>"; - App::$error = 404; - - if (!local_channel()) { - return $content; - } - - if (!(is_site_admin())) { - return $content; - } - - load_config("queueworker"); - $content = "<H1>Queue Status</H1>\n"; $r = q('select count(*) as total from workerq'); diff --git a/Zotlabs/Widget/Admin.php b/Zotlabs/Widget/Admin.php index 0a7a6925f..aa88de36a 100644 --- a/Zotlabs/Widget/Admin.php +++ b/Zotlabs/Widget/Admin.php @@ -32,6 +32,7 @@ class Admin { 'addons' => array(z_root() . '/admin/addons/', t('Addons'), 'addons'), 'themes' => array(z_root() . '/admin/themes/', t('Themes'), 'themes'), 'queue' => array(z_root() . '/admin/queue', t('Inspect queue'), 'queue'), + 'queueworker' => array(z_root() . '/admin/queueworker', t('Queueworker'), 'queueworker'), 'profs' => array(z_root() . '/admin/profs', t('Profile Fields'), 'profs'), 'dbsync' => array(z_root() . '/admin/dbsync/', t('DB updates'), 'dbsync') ]; |