Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (44 sloc) 2.167 kb
db35e87 Modification du d�placement des boites, la page n'est plus recharg�e. (A...
Regis Houssin authored
1 <?php
b866848 New: early development of multi-company module
Regis Houssin authored
2 /* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
1e1ee9d @eldy Fix: Save of box order
eldy authored
3 * Copyright (C) 2007-2009 Laurent Destailleur <eldy@users.sourceforge.net>
db35e87 Modification du d�placement des boites, la page n'est plus recharg�e. (A...
Regis Houssin authored
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20 /**
1e1ee9d @eldy Fix: Save of box order
eldy authored
21 * \file htdocs/ajaxbox.php
c296965 @eldy Fix: Some ajax features was broken
eldy authored
22 * \brief File to return Ajax response on Box move
1e1ee9d @eldy Fix: Save of box order
eldy authored
23 * \version $Id$
24 */
db35e87 Modification du d�placement des boites, la page n'est plus recharg�e. (A...
Regis Houssin authored
25
756ca44 @eldy Qual: Ajax code is simpler and now works with IE6
eldy authored
26 if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token renewal
27 if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
28 if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
29 if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
9a8f906 @eldy Perf: Some optimization in ajax usage.
eldy authored
30 if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
31 if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');
3113bb2 @eldy Fix: Pb sous Plesk
eldy authored
32
33 // This is to make Dolibarr working with Plesk
34 set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
35
b866848 New: early development of multi-company module
Regis Houssin authored
36 // Retrieve the entity in the cookie
7eaf1f8 @eldy Bad value for cookie name
eldy authored
37 $entityCookieName = "DOLENTITYID_".md5($_SERVER["SERVER_NAME"].$_SERVER["DOCUMENT_ROOT"]);
b866848 New: early development of multi-company module
Regis Houssin authored
38 if (isset($_COOKIE[$entityCookieName])) $_SESSION["dol_entity"] = $_COOKIE[$entityCookieName];
39
db35e87 Modification du d�placement des boites, la page n'est plus recharg�e. (A...
Regis Houssin authored
40 require('master.inc.php');
41 require_once(DOL_DOCUMENT_ROOT."/boxes.php");
42
43 // Enregistrement de la position des boxes
f6d9f45 @eldy Modification codification ordre d'une boite afin de gerer independemment...
eldy authored
44 if((isset($_GET['boxorder']) && !empty($_GET['boxorder'])) && (isset($_GET['userid']) && !empty($_GET['userid'])))
db35e87 Modification du d�placement des boites, la page n'est plus recharg�e. (A...
Regis Houssin authored
45 {
0823322 @eldy Qual: All call to dolibarr_ functions are made on dol_ functions.
eldy authored
46 dol_syslog("AjaxBox boxorder=".$_GET['boxorder']." userid=".$_GET['userid'], LOG_DEBUG);
db35e87 Modification du d�placement des boites, la page n'est plus recharg�e. (A...
Regis Houssin authored
47
f6d9f45 @eldy Modification codification ordre d'une boite afin de gerer independemment...
eldy authored
48 $infobox=new InfoBox($db);
49 $result=$infobox->saveboxorder("0",$_GET['boxorder'],$_GET['userid']);
db35e87 Modification du d�placement des boites, la page n'est plus recharg�e. (A...
Regis Houssin authored
50 }
51
52 ?>
Something went wrong with that request. Please try again.