Clean code

This commit is contained in:
Laurent Destailleur 2021-06-13 20:36:12 +02:00
parent 6f97a551ef
commit 3eea92c6e6
6 changed files with 27 additions and 2 deletions

View File

@ -115,6 +115,11 @@ $extrafields = new ExtraFields($db);
$user->loadDefaultValues();
// Security check
if (empty($conf->eventorganization->enabled)) {
accessforbidden('', 0, 0, 1);
}
/**
* Show header for new member

View File

@ -66,7 +66,7 @@ $object = new stdClass(); // For triggers
$error = 0;
// Security check
$id = GETPOST("id");
$id = GETPOST("id", 'int');
$securekeyreceived = GETPOST("securekey");
$securekeytocompare = dol_hash($conf->global->EVENTORGANIZATION_SECUREKEY.'conferenceorbooth'.$id, 2);
@ -75,6 +75,12 @@ if ($securekeyreceived != $securekeytocompare) {
exit;
}
// Security check
if (empty($conf->eventorganization->enabled)) {
accessforbidden('', 0, 0, 1);
}
/*
* Actions
*/

View File

@ -1 +0,0 @@

View File

@ -115,6 +115,11 @@ $user->loadDefaultValues();
$cactioncomm = new CActionComm($db);
$arrayofeventtype = $cactioncomm->liste_array('', 'id', '', 0, 'module=\'booth@eventorganization\'');
// Security check
if (empty($conf->eventorganization->enabled)) {
accessforbidden('', 0, 0, 1);
}
/**
* Show header for new member

View File

@ -115,6 +115,11 @@ $user->loadDefaultValues();
$cactioncomm = new CActionComm($db);
$arrayofeventtype = $cactioncomm->liste_array('', 'id', '', 0, 'module=\'conference@eventorganization\'');
// Security check
if (empty($conf->eventorganization->enabled)) {
accessforbidden('', 0, 0, 1);
}
/**
* Show header for new member

View File

@ -89,6 +89,11 @@ if ($resultproject < 0) {
$errmsg .= $project->error;
}
// Security check
if (empty($conf->eventorganization->enabled)) {
accessforbidden('', 0, 0, 1);
}
/*
* Actions