33 require_once DOL_DOCUMENT_ROOT.
'/core/class/infobox.class.php';
39 $boxorder =
GETPOST(
'boxorder',
'alphanohtml');
40 if (!preg_match(
'/^[A-Z]:[0-9,]*(-[A-Z]:[0-9,]*)*$/', $boxorder)) {
46 if (!preg_match(
'/[:,]$/', $boxorder)) {
49 $boxorder .= $boxcombo;
54 setEventMessages($langs->trans(
"BoxAdded"),
null);
static saveboxorder($dbs, $zone, $boxorder, $userid=0)
Save order of boxes for area and user.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0, $nodefault=0)
Return value of a param into GET or POST supervariable.
GETPOSTINT($paramname, $method=0, $nodefault=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.