From b3fdf3e8361920501ddd62e8a32864d8371246d0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 25 May 2007 22:26:54 +0000 Subject: [PATCH] Sec: Toute page php doit utiliser la couche de securite Dolibarr (include du main) --- htdocs/product/ajaxproducts.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/htdocs/product/ajaxproducts.php b/htdocs/product/ajaxproducts.php index 479ad8d6361..fe1dfedf828 100644 --- a/htdocs/product/ajaxproducts.php +++ b/htdocs/product/ajaxproducts.php @@ -1,6 +1,7 @@ * Copyright (C) 2005-2007 Regis Houssin + * Copyright (C) 2007 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,18 +27,14 @@ \version $Revision$ */ -require('../master.inc.php'); +require('../main.inc.php'); $langs->load("products"); $langs->load("main"); -//header("Content-type: text/html; charset=UTF-8"); -//header("Content-type: text/html; charset=$character_set_client"); //TODO: ne fonctionne pas !! -header("Content-type: text/html; charset=iso-8859-1"); -print ''; -print "\n"; -print "\n"; +top_htmlhead("", "", 1); +print ''."\n"; // Generation liste de produits if(isset($_GET['keysearch']) && !empty($_GET['keysearch']))