diff options
author | Mario <mario@mariovavti.com> | 2022-12-27 10:44:54 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-12-27 10:44:54 +0000 |
commit | 633cd11c5b129a9712dbc6e7867284fa7999cea5 (patch) | |
tree | 8cee50f1d5af87924e1e6ed5ba3adcec5d1bfd4a /Zotlabs | |
parent | 3101c6540a3992a95369abefd3bafa3abf36db9e (diff) | |
download | volse-hubzilla-633cd11c5b129a9712dbc6e7867284fa7999cea5.tar.gz volse-hubzilla-633cd11c5b129a9712dbc6e7867284fa7999cea5.tar.bz2 volse-hubzilla-633cd11c5b129a9712dbc6e7867284fa7999cea5.zip |
move mod queueworker to /admin
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') ]; |