Clean code
This commit is contained in:
parent
6f97a551ef
commit
3eea92c6e6
@ -115,6 +115,11 @@ $extrafields = new ExtraFields($db);
|
|||||||
|
|
||||||
$user->loadDefaultValues();
|
$user->loadDefaultValues();
|
||||||
|
|
||||||
|
// Security check
|
||||||
|
if (empty($conf->eventorganization->enabled)) {
|
||||||
|
accessforbidden('', 0, 0, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show header for new member
|
* Show header for new member
|
||||||
|
|||||||
@ -66,7 +66,7 @@ $object = new stdClass(); // For triggers
|
|||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
$id = GETPOST("id");
|
$id = GETPOST("id", 'int');
|
||||||
$securekeyreceived = GETPOST("securekey");
|
$securekeyreceived = GETPOST("securekey");
|
||||||
$securekeytocompare = dol_hash($conf->global->EVENTORGANIZATION_SECUREKEY.'conferenceorbooth'.$id, 2);
|
$securekeytocompare = dol_hash($conf->global->EVENTORGANIZATION_SECUREKEY.'conferenceorbooth'.$id, 2);
|
||||||
|
|
||||||
@ -75,6 +75,12 @@ if ($securekeyreceived != $securekeytocompare) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Security check
|
||||||
|
if (empty($conf->eventorganization->enabled)) {
|
||||||
|
accessforbidden('', 0, 0, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
|
|
||||||
@ -115,6 +115,11 @@ $user->loadDefaultValues();
|
|||||||
$cactioncomm = new CActionComm($db);
|
$cactioncomm = new CActionComm($db);
|
||||||
$arrayofeventtype = $cactioncomm->liste_array('', 'id', '', 0, 'module=\'booth@eventorganization\'');
|
$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
|
* Show header for new member
|
||||||
|
|||||||
@ -115,6 +115,11 @@ $user->loadDefaultValues();
|
|||||||
$cactioncomm = new CActionComm($db);
|
$cactioncomm = new CActionComm($db);
|
||||||
$arrayofeventtype = $cactioncomm->liste_array('', 'id', '', 0, 'module=\'conference@eventorganization\'');
|
$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
|
* Show header for new member
|
||||||
|
|||||||
@ -89,6 +89,11 @@ if ($resultproject < 0) {
|
|||||||
$errmsg .= $project->error;
|
$errmsg .= $project->error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Security check
|
||||||
|
if (empty($conf->eventorganization->enabled)) {
|
||||||
|
accessforbidden('', 0, 0, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user