For plugin , send a NOCONX when the session is expired instead of stopping
This commit is contained in:
parent
eba72b4c68
commit
ad0110ca33
1 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue