From 625c47ab44cddcd7139b779cc9a99d08e8aef46c Mon Sep 17 00:00:00 2001 From: "privet.fun" Date: Sun, 8 Oct 2023 09:46:16 -0700 Subject: [PATCH] More changes for extension certification process --- privet/ailabs/controller/scriptexecute.php | 4 +--- privet/ailabs/includes/AIController.php | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/privet/ailabs/controller/scriptexecute.php b/privet/ailabs/controller/scriptexecute.php index 5e56b52..edb9da3 100644 --- a/privet/ailabs/controller/scriptexecute.php +++ b/privet/ailabs/controller/scriptexecute.php @@ -64,9 +64,7 @@ class scriptexecute extends GenericController // Make sure that exe is enabled in /etc/php/8.2/fpm/pool.d/phpbb_pool.conf file // See line php_admin_value[disable_functions] = unset($output); - // Uncomment this line if you are planning to use this controller. - // If was commented out to pass phpBB extension certification process. - // exec($execute, $output, $result_code); + // Code removed, see 1.0.5 } catch (\Exception $e) { $result->response = '{ "error" : "' . $e . '" }'; } diff --git a/privet/ailabs/includes/AIController.php b/privet/ailabs/includes/AIController.php index 105cf99..ec93e8d 100644 --- a/privet/ailabs/includes/AIController.php +++ b/privet/ailabs/includes/AIController.php @@ -80,7 +80,8 @@ class AIController $streamedResponse = new StreamedResponse(); $streamedResponse->headers->set('X-Accel-Buffering', 'no'); $streamedResponse->setCallback(function () { - echo 'Processing'; + // Uncomment to debug callback response + // echo 'Processing'; flush(); }); $streamedResponse->send();