diff options
| author | polo <ordipolo@gmx.fr> | 2026-03-24 22:39:29 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-03-24 22:40:33 +0100 |
| commit | 3b369122645b07b290f7fcc7bccb4787745cd5ea (patch) | |
| tree | 3f9c2d1fbd5fe8b26162202e9b1e6cd5c8a940f6 /src/view/FormBuilder.php | |
| parent | a70dee9b5021a137ae07041c38921553442b0c11 (diff) | |
| download | cms-3b369122645b07b290f7fcc7bccb4787745cd5ea.tar.gz cms-3b369122645b07b290f7fcc7bccb4787745cd5ea.tar.bz2 cms-3b369122645b07b290f7fcc7bccb4787745cd5ea.zip | |
mode maintenance, optimisation moins de contrôles en mode run, dossier service et déplacement fichiers, sessions et entité User préparées à l'implémentation hypothétique des rôles, entité AppMetadata, meilleure sécurité de fillStartingDatabase
Diffstat (limited to 'src/view/FormBuilder.php')
| -rw-r--r-- | src/view/FormBuilder.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/view/FormBuilder.php b/src/view/FormBuilder.php index 6986dea..9a900ce 100644 --- a/src/view/FormBuilder.php +++ b/src/view/FormBuilder.php | |||
| @@ -9,12 +9,10 @@ class FormBuilder extends AbstractBuilder | |||
| 9 | { | 9 | { |
| 10 | static private ?Captcha $captcha = null; | 10 | static private ?Captcha $captcha = null; |
| 11 | 11 | ||
| 12 | public function __construct(Node $node) | 12 | public function __construct(Node $node){ |
| 13 | { | ||
| 14 | parent::__construct($node); | 13 | parent::__construct($node); |
| 15 | 14 | ||
| 16 | if(!empty($node->getNodeData()->getData())) | 15 | if(!empty($node->getNodeData()->getData())){ |
| 17 | { | ||
| 18 | extract($node->getNodeData()->getData()); | 16 | extract($node->getNodeData()->getData()); |
| 19 | } | 17 | } |
| 20 | 18 | ||
| @@ -34,8 +32,7 @@ class FormBuilder extends AbstractBuilder | |||
| 34 | $retention_period_sensible = $this->getRetentionPeriod($retention_period_sensible ?? null, App\Entity\Email::DEFAULT_RETENTION_PERIOD_SENSITIVE); | 32 | $retention_period_sensible = $this->getRetentionPeriod($retention_period_sensible ?? null, App\Entity\Email::DEFAULT_RETENTION_PERIOD_SENSITIVE); |
| 35 | 33 | ||
| 36 | $admin_content = ''; | 34 | $admin_content = ''; |
| 37 | if($_SESSION['admin']) | 35 | if(IS_ADMIN){ |
| 38 | { | ||
| 39 | ob_start(); | 36 | ob_start(); |
| 40 | require self::VIEWS_PATH . 'form_admin.php'; | 37 | require self::VIEWS_PATH . 'form_admin.php'; |
| 41 | $admin_content = ob_get_clean(); | 38 | $admin_content = ob_get_clean(); |
