Login   Register  
PHP Classes
elePHPant
Icontem

File: class.arbdb.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Paul Arbogast  >  arbplate  >  class.arbdb.php  >  Download  
File: class.arbdb.php
Role: ???
Content type: text/plain
Description: calls proper abstraction layer for arbplate
Class: arbplate
Author: By
Last change:
Date: 12 years ago
Size: 1,750 bytes
 

Contents

Class file image Download
<?
//
// File: class.arbdb.php
//  Ver: 0.8a
// Desc: Main Database abstraction layer for arbplate
// Auth: Paul Arbogast 
// *******************
// Latest version is available at http://arbplate.sourceforge.net
// Send Questions or comments to arbo@att.net
// *******************

/* Copyright (C) 2001 Paul Arbogast

   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.
*/


if ( ! defined( "INCLUDED_ARBDB" ) ) {
  define( "INCLUDED_ARBDB" , 1 );
}

//
// current databases supported:
//
//		mysql, textdb
//
// I will include support for other db types as time permits.
//

 if ( defined( "_DEBUG_" ) ) {
    echo "[data-type: ".$ARB_CONFIG['DATA_TYPE']."]<br/>";
  }

if ( ! file_exists( "arbdb_" . $ARB_CONFIG['DATA_TYPE'] . ".php" ) ) 
{
  trigger_error( "Class file for selected DB type (" . $ARB_CONFIG['DATA_TYPE'] . ") can not be found." , E_USER_ERROR );
} 
else 
{

  if ( defined( "_DEBUG_" ) ) {
    echo "[Loading arbdb abstraction layer]<br/>";
  }
  include( "arbdb_" . $ARB_CONFIG['DATA_TYPE'] . ".php" );
  
}

?>