From a22a83827a4dde30cd4ef7ef0820180a9c48f02b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 11 May 2023 01:46:36 +0200 Subject: [PATCH] Clean code --- htdocs/public/agenda/index.php | 1 + htdocs/public/datapolicy/index.php | 2 +- htdocs/public/index.php | 1 + htdocs/public/members/index.php | 1 + htdocs/public/notice.php | 7 +++---- htdocs/public/opensurvey/index.html | 0 htdocs/public/partnership/index.php | 1 + htdocs/public/payment/index.php | 1 + htdocs/public/theme/common/index.php | 1 + htdocs/public/theme/index.php | 1 + 10 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 htdocs/public/opensurvey/index.html diff --git a/htdocs/public/agenda/index.php b/htdocs/public/agenda/index.php index 288c7128e22..b093887e2af 100644 --- a/htdocs/public/agenda/index.php +++ b/htdocs/public/agenda/index.php @@ -24,3 +24,4 @@ require '../../master.inc.php'; header("Location: ".DOL_URL_ROOT.'/public/error-404.php'); +exit; diff --git a/htdocs/public/datapolicy/index.php b/htdocs/public/datapolicy/index.php index ea19759a87d..08aa1691547 100644 --- a/htdocs/public/datapolicy/index.php +++ b/htdocs/public/datapolicy/index.php @@ -16,7 +16,7 @@ */ /** - * \file htdocs/datapolicy/admin/setup.php + * \file htdocs/public/datapolicy/index.php * \ingroup datapolicy * \brief Page to show the result of updating it Data policiy preferences after an email campaign using sendMailDataPolicyContact() */ diff --git a/htdocs/public/index.php b/htdocs/public/index.php index 6e80d99430f..34662d46b66 100644 --- a/htdocs/public/index.php +++ b/htdocs/public/index.php @@ -24,3 +24,4 @@ require '../master.inc.php'; header("Location: ".DOL_URL_ROOT.'/public/error-404.php'); +exit; diff --git a/htdocs/public/members/index.php b/htdocs/public/members/index.php index 4071c62de1f..b97dc399434 100644 --- a/htdocs/public/members/index.php +++ b/htdocs/public/members/index.php @@ -24,3 +24,4 @@ require '../../master.inc.php'; header("Location: ".DOL_URL_ROOT.'/public/error-404.php'); +exit; diff --git a/htdocs/public/notice.php b/htdocs/public/notice.php index a682abd78c8..57f47424501 100644 --- a/htdocs/public/notice.php +++ b/htdocs/public/notice.php @@ -18,10 +18,9 @@ /** * \file htdocs/public/notice.php * \brief Dolibarr public page to show a notice. - * Default notice is a message to say network connection is off. Some parameters can be used to show another message. - * You can call this page with URL: - * /public/notice.php?lang=xx_XX&transkey=translation_key (key must be inside file main.lang, error.lang or other.lang) - * /public/notice.php?transphrase=url_encoded_sentence_to_show + * Default notice is a message to say network connection is off. Some parameters can be used to show another message: + * /public/notice.php?lang=xx_XX&transkey=translation_key (key must be inside file main.lang, error.lang or other.lang) + * /public/notice.php?transphrase=sentence_to_show */ if (!defined('NOLOGIN')) { diff --git a/htdocs/public/opensurvey/index.html b/htdocs/public/opensurvey/index.html deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/htdocs/public/partnership/index.php b/htdocs/public/partnership/index.php index 6a9a6f8a557..7ddfac9e2c4 100644 --- a/htdocs/public/partnership/index.php +++ b/htdocs/public/partnership/index.php @@ -24,3 +24,4 @@ require '../../master.inc.php'; header("Location: ".DOL_URL_ROOT.'/public/error-404.php'); +exit; diff --git a/htdocs/public/payment/index.php b/htdocs/public/payment/index.php index 5f7cc37ca5f..6fcf71c6e62 100644 --- a/htdocs/public/payment/index.php +++ b/htdocs/public/payment/index.php @@ -24,3 +24,4 @@ require '../../master.inc.php'; header("Location: ".DOL_URL_ROOT.'/public/error-404.php'); +exit; diff --git a/htdocs/public/theme/common/index.php b/htdocs/public/theme/common/index.php index a32c64ea14b..c7c6cbccf3f 100644 --- a/htdocs/public/theme/common/index.php +++ b/htdocs/public/theme/common/index.php @@ -25,3 +25,4 @@ require '../../../master.inc.php'; header("Location: ".DOL_URL_ROOT.'/public/error-404.php'); +exit; diff --git a/htdocs/public/theme/index.php b/htdocs/public/theme/index.php index 518cd44ecf2..d40a8cdacc0 100644 --- a/htdocs/public/theme/index.php +++ b/htdocs/public/theme/index.php @@ -25,3 +25,4 @@ require '../../master.inc.php'; header("Location: ".DOL_URL_ROOT.'/public/error-404.php'); +exit;