Clean code
This commit is contained in:
parent
6f97a551ef
commit
3eea92c6e6
@ -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
|
||||
|
||||
@ -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
|
||||
*/
|
||||
|
||||
@ -1 +0,0 @@
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -89,6 +89,11 @@ if ($resultproject < 0) {
|
||||
$errmsg .= $project->error;
|
||||
}
|
||||
|
||||
// Security check
|
||||
if (empty($conf->eventorganization->enabled)) {
|
||||
accessforbidden('', 0, 0, 1);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Actions
|
||||
|
||||
Loading…
Reference in New Issue
Block a user