From 17e33f9a82a54a1d7d269a801941b08354f34625 Mon Sep 17 00:00:00 2001 From: Alan Date: Mon, 22 Jan 2024 13:16:44 +0800 Subject: [PATCH] note about trait, and add check on request --- Pman.php | 2 +- Pman/Roo.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Pman.php b/Pman.php index 478b70e..aa20bf1 100644 --- a/Pman.php +++ b/Pman.php @@ -1086,7 +1086,7 @@ class Pman extends HTML_FlexyFramework_Page $reported = true; $out = (is_a($ex,'Exception') || is_a($ex, 'Error') ? $ex->getMessage() : $ex->toString()) . - ' ' . $_SERVER['REQUEST_METHOD'] . ' ' . + ' ' . (empty($_SERVER['REQUEST_METHOD']) ? 'cli' : $_SERVER['REQUEST_METHOD'] ) . ' ' . (empty($_SERVER['REQUEST_URI']) ? 'No URL' : $_SERVER['REQUEST_URI']) . ' ' . (empty($POST) ? '' : file_get_contents('php://input')) ; diff --git a/Pman/Roo.php b/Pman/Roo.php index 05dfb94..35869a1 100644 --- a/Pman/Roo.php +++ b/Pman/Roo.php @@ -42,6 +42,14 @@ require_once 'Pman.php'; class Pman_Roo extends Pman { + + /* EVENTUALLY - move this stuff here.. + * use Pman_Core_RooTrait, + Pman_Core_RooGetTrait, + Pman_Core_RooPostTrait, + Pman_Core_RooJsonOutputTrait; + */ + /** * if set to an array (when extending this, then you can restrict which tables are available */ -- 2.39.2