From be80c0cd15ba964bd3923ea5e4cb3c2be647c268 Mon Sep 17 00:00:00 2001 From: Laurent Giovannoni <laurent.giovannoni@maarch.org> Date: Tue, 23 Dec 2014 16:33:33 +0000 Subject: [PATCH] FEAT #1776 view details message only on debug mode --- maarch_entreprise/trunk/phpids_control.php | 4 +++- maarch_entreprise/trunk/security_message.php | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/maarch_entreprise/trunk/phpids_control.php b/maarch_entreprise/trunk/phpids_control.php index 35b7d9af605..19ab90c4b23 100755 --- a/maarch_entreprise/trunk/phpids_control.php +++ b/maarch_entreprise/trunk/phpids_control.php @@ -36,7 +36,9 @@ try { $result = $ids->run(); if (!$result->isEmpty()) { - echo $result; + if ($_SESSION['config']['debug'] == 'true') { + echo $result; + } $_SESSION['securityMessage'] = (string) $result; $varRedirect = '<script language="javascript">window.location.href=\'' . $_SESSION['config']['businessappurl'] diff --git a/maarch_entreprise/trunk/security_message.php b/maarch_entreprise/trunk/security_message.php index 55d74c67bb8..314fbe9de1d 100755 --- a/maarch_entreprise/trunk/security_message.php +++ b/maarch_entreprise/trunk/security_message.php @@ -51,7 +51,9 @@ $core_tools2->manage_location_bar($page_path, $page_label, $page_id, $init, $lev <?php echo _SECURITY_MESSAGE;?></h1> <div id="inner_content" class="clearfix"> <?php -echo '<p>' . _SECURITY_MESSAGE_DETAILS . ':</p>'; -echo $_SESSION['securityMessage']; +echo '<h3>' . _SECURITY_MESSAGE_DETAILS . ' !</h3>'; +if ($_SESSION['config']['debug'] == 'true') { + echo $_SESSION['securityMessage']; +} ?> </div> -- GitLab