From 9ef1c7a12a078b0f93090beed9d8da0e787e0e33 Mon Sep 17 00:00:00 2001 From: opensides Date: Fri, 10 Sep 2004 08:54:40 +0000 Subject: [PATCH] fichier non utilise par dolibarr --- htdocs/admin/sql.php | 49 -------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 htdocs/admin/sql.php diff --git a/htdocs/admin/sql.php b/htdocs/admin/sql.php deleted file mode 100644 index f12fef636d8..00000000000 --- a/htdocs/admin/sql.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * 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$ - */ - -/*! \file htdocs/admin/sql.php - \brief Fichier de fonction sql - \version $Revision$ - \todo A deplacer dans le gestionnaire d'abstraction de base (mysql.lib.php ou pgsql.lib.php) -*/ - -function db_create_table($db, $table) -{ - - $sql = ""; - $fcontents = file( "../../mysql/tables/$table.sql" ); - - while ( list( $numero_ligne, $ligne ) = each( $fcontents ) ) - { - $sql .= $ligne; - } - - return $db->query($sql); -} - -function db_drop_table($db, $table) -{ - - return $db->query("DROP table $table"); -} - - -?>