25if (!defined(
'NOTOKENRENEWAL')) {
26 define(
'NOTOKENRENEWAL',
'1');
28if (!defined(
'NOREQUIREMENU')) {
29 define(
'NOREQUIREMENU',
'1');
31if (!defined(
'NOREQUIREHTML')) {
32 define(
'NOREQUIREHTML',
'1');
34if (!defined(
'NOREQUIREAJAX')) {
35 define(
'NOREQUIREAJAX',
'1');
37if (!defined(
'NOREQUIRESOC')) {
38 define(
'NOREQUIRESOC',
'1');
40if (!defined(
'NOREQUIRETRAN')) {
41 define(
'NOREQUIRETRAN',
'1');
43if (!defined(
'CSRFCHECK_WITH_TOKEN')) {
44 define(
'CSRFCHECK_WITH_TOKEN',
'1');
48require
'../../main.inc.php';
49require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
59$action =
GETPOST(
'action',
'aZ09');
60$name =
GETPOST(
'name',
'alpha');
62$value = (
GETPOST(
'value',
'aZ09') !=
'' ?
GETPOST(
'value',
'aZ09') : 1);
67if (empty($user->admin) && empty($userconst)) {
77if (!empty($action) && !empty($name)) {
79 $tmpuser =
new User($db);
80 $tmpuser->id = $userconst;
81 if ($tmpuser->id == $user->id || $user->hasRight(
'user',
'user',
'creer')) {
82 if ($action ==
'set') {
84 } elseif ($action ==
'del') {
89 if ($action ==
'set') {
91 } elseif ($action ==
'del') {
dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
dolibarr_del_const($db, $name, $entity=1)
Delete a constant.
Class to manage Dolibarr users.
dol_set_user_param($db, $conf, &$user, $tab)
Save personal parameter.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
httponly_accessforbidden($message='1', $http_response_code=403, $stringalreadysanitized=0)
Show a message to say access is forbidden and stop program.