Project

General

Profile

« Previous | Next » 

Revision 1683

Added by darkviper over 12 years ago

changed class Database into a Singleton-Class
added forgotten 'static' keyword in ModLanguage
removed version control from sm2 - include.php

View differences:

initialize.php
91 91
	date_default_timezone_set('UTC');
92 92
	// Create database class
93 93
	$sSqlUrl = DB_TYPE.'://'.DB_USERNAME.':'.DB_PASSWORD.'@'.DB_HOST.'/'.DB_NAME;
94
	$database = new Database($sSqlUrl);
94
	$database = Database::getInstance();
95
	$database->doConnect($sSqlUrl);
95 96
	// disable all kind of magic_quotes
96 97
	if(get_magic_quotes_gpc() || get_magic_quotes_runtime()) {
97 98
		@ini_set('magic_quotes_sybase', 0);

Also available in: Unified diff