From bc45bc0d0a7a2e9a1678e05a7df422bc005cb152 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 1 Sep 2003 13:57:27 +0000 Subject: [PATCH] Nouveau fichier --- htdocs/includes/modules/modBoutique.class.php | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 htdocs/includes/modules/modBoutique.class.php diff --git a/htdocs/includes/modules/modBoutique.class.php b/htdocs/includes/modules/modBoutique.class.php new file mode 100644 index 00000000000..0a935b12a00 --- /dev/null +++ b/htdocs/includes/modules/modBoutique.class.php @@ -0,0 +1,66 @@ + + * + * 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 + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ + * $Source$ + * + */ + +class modBoutique +{ + + /* + * Initialisation + * + */ + + Function modBoutique($DB) + { + $this->db = $DB ; + } + /* + * + * + * + */ + + Function init() + { + /* + * Activation du module + */ + + $sql = array( + "REPLACE INTO llx_boxes_def (name,file) VALUES('Livres', 'box_boutique_livre.php');" + ); + + for ($i = 0 ; $i < sizeof($sql) ; $i++) + { + $this->db->query($sql[$i]); + } + } + /* + * + * + */ + Function remove() + { + $sql = "DELETE FROM llx_boxes_def WHERE file = 'box_boutique_livre.php';"; + $this->db->query($sql); + } +} +?>