[ Index ] |
|
Code source de Plume CMS 1.2.2 |
1 <?php 2 /* 3 # ***** BEGIN LICENSE BLOCK ***** 4 # This file is part of Plume CMS, a website management application. 5 # Copyright (C) 2001-2005 Loic d'Anterroches and contributors. 6 # 7 # Plume CMS is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 2 of the License, or 10 # (at your option) any later version. 11 # 12 # Plume CMS is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with this program; if not, write to the Free Software 19 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 # 21 # ***** END LICENSE BLOCK ***** */ 22 23 function &pxDBConnect() 24 { 25 global $_PX_db, $_PX_config; 26 27 if (isset($_PX_db) && is_resource($_PX_db->con_id)) 28 return $_PX_db; 29 30 include_once dirname(__FILE__).'/../extinc/class.mysql.php'; 31 include_once dirname(__FILE__).'/lib.sql.php'; 32 33 $_PX_db = new Connection($_PX_config['db']['db_login'], 34 $_PX_config['db']['db_password'], 35 $_PX_config['db']['db_server'], 36 $_PX_config['db']['db_database'], 37 $_PX_config['db']['table_prefix'], 38 $_PX_config['debug'], 39 config::f('db_version')); 40 if($_PX_db->error()) { 41 header('Content-Type: text/plain'); 42 echo 'Error MySQL : ' . $_PX_db->error(); 43 exit; 44 } 45 return $_PX_db; 46 } 47 48 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 11:57:01 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |