22if (!defined(
'NOTOKENRENEWAL')) {
23 define(
'NOTOKENRENEWAL',
'1');
25if (!defined(
'NOREQUIREMENU')) {
26 define(
'NOREQUIREMENU',
'1');
28if (!defined(
'NOREQUIREHTML')) {
29 define(
'NOREQUIREHTML',
'1');
31if (!defined(
'NOREQUIREAJAX')) {
32 define(
'NOREQUIREAJAX',
'1');
34if (!defined(
'NOREQUIRESOC')) {
35 define(
'NOREQUIRESOC',
'1');
37if (!defined(
'NOREQUIRETRAN')) {
38 define(
'NOREQUIRETRAN',
'1');
40if (!defined(
'CSRFCHECK_WITH_TOKEN')) {
41 define(
'CSRFCHECK_WITH_TOKEN',
'1');
45require
'../../main.inc.php';
55$action =
GETPOST(
'action',
'aZ09');
56$contextpage =
GETPOST(
'contextpage');
57$postitionfields =
GETPOST(
"positionfields",
"array");
61if ($userid != $user->id) {
71if (!empty($action) && !empty($contextpage)) {
72 if ($action ==
"listafterchangingpositionfields") {
73 dol_syslog(
"Ajax changepositionfields contextpage=".$contextpage.
" postitionfields=".$postitionfields.
" userid=".$userid, LOG_DEBUG);
75 if (!empty($postitionfields)) {
77 foreach ($postitionfields as $pos => $field) {
78 $position .= ($pos != 0 ?
"," :
"").$field.
":".$pos;
80 $tabparam[
"MAIN_POSITIONFIELDS_".$contextpage] = $position;
82 $tabparam[
"MAIN_POSITIONFIELDS_".$contextpage] =
'';
84 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
dol_set_user_param($db, $conf, &$user, $tab, $entity=-1)
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.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.
httponly_accessforbidden($message='1', $http_response_code=403, $stringalreadysanitized=0)
Show a message to say access is forbidden and stop program.