You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
530 B

<?php
define('DIR_DATABASE', (__DIR__)."/database/");
if(!defined('DB_DRIVER')) {
define('DB_DRIVER', "dbmysqli");
}
if(!defined('DB_HOSTNAME')) {
define('DB_HOSTNAME', "localhost");
}
if(!defined('DB_USERNAME')) {
define('DB_USERNAME', "root");
}
if(!defined('DB_DATABASE')) {
include __DIR__."config.php";
}
//echo DIR_DATABASE;
include __DIR__."/library/db.php";
$db = new DB(DB_DRIVER, DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE);
//$db = new $db_driver(DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE);