[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/07: For plugin , send a NOCONX when the se
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/07: For plugin , send a NOCONX when the session is expired instead of stopping |
Date: |
Tue, 8 Mar 2022 17:08:55 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit ad0110ca338d98386972f2320cae55adfba96925
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Mar 5 10:31:07 2022 +0100
For plugin , send a NOCONX when the session is expired instead of stopping
---
html/ajax.php | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/html/ajax.php b/html/ajax.php
index 76bb6a25..7d8f3cf2 100644
--- a/html/ajax.php
+++ b/html/ajax.php
@@ -22,7 +22,13 @@ if ( !isset ($_REQUEST['gDossier'])) exit();
require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
mb_internal_encoding("UTF-8");
-
+/**
+ * if not connected, session is expired then exit with a message NOCONX
+ */
+if ( ! isset($_SESSION[SESSION_KEY."g_user"])) {
+ echo "NOCONX";
+ die();
+}
global $g_user,$cn,$g_parameter;
$cn=Dossier::connect();
$g_parameter=new Noalyss_Parameter_Folder($cn);
- [Noalyss-commit] [noalyss] branch devel updated (eba72b4c -> d0eb957a), Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 05/07: Improve : set and setp return $this, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 06/07: Fix : JSON answer didn't work, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 07/07: Improve : card attribute option is a textarea, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 01/07: For plugin , send a NOCONX when the session is expired instead of stopping,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 04/07: Documentation, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 03/07: Fixed : error when column contains only a input element (checkbox), Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 02/07: Documentation, Dany De Bontridder, 2022/03/08