From 2117e9acacea2d8e390b44f45b6b22591305a1e5 Mon Sep 17 00:00:00 2001 From: Haitem Date: Fri, 30 Oct 2020 15:25:34 +0100 Subject: [PATCH] remake to switch betwen enable and disable buton and second button is remove, remova now not work --- app/Bootstrap.php | 4 +++- app/controllers/pluginsController.php | 15 ++++++++++++--- app/views/templates/part/pluginButton.phtml | 8 ++++---- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/app/Bootstrap.php b/app/Bootstrap.php index 92a884c..c0b6fe2 100644 --- a/app/Bootstrap.php +++ b/app/Bootstrap.php @@ -4,9 +4,11 @@ error_reporting(E_ALL); ini_set( 'display_errors','1'); //setup +parse_str($_SERVER['QUERY_STRING'], $params); +$urlSes = str_replace((!empty ($params['url']) ? $params['url'] : ""), "", str_replace('https://' . $_SERVER['HTTP_HOST'], "", $_SERVER['REQUEST_URI'])); session_set_cookie_params( 1209600, - str_replace('login', "", str_replace('https://' . $_SERVER['HTTP_HOST'], "", $_SERVER['REQUEST_URI'])), + $urlSes, str_replace("/var/www/", "", $_SERVER['DOCUMENT_ROOT']), true, true diff --git a/app/controllers/pluginsController.php b/app/controllers/pluginsController.php index 42b78fe..5f7ab96 100644 --- a/app/controllers/pluginsController.php +++ b/app/controllers/pluginsController.php @@ -1,9 +1,10 @@
- - echo('b_approve')?> + "/> + get('b_approve') : $LANGMNG->get('b_disable')); ?>
- - echo('b_disable')?> + + echo('b_remove'); ?>