Nu, in config.class este asta:
private function __construct() {
$db['mysql'] = array(
'host' => 'localhost',
'username' => 'root',
'dbname' => 'bigzoneultimate',
'password' => ''
);
try {
self::$g_con = new PDO('mysql:host='.$db['mysql']['host'].';dbname='.$db['mysql']['dbname'].';charset=utf8',$db['mysql']['username'],$db['mysql']['password']);
self::$g_con->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
self::$g_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
@file_put_contents('error_log',@file_get_contents('error_log') . $e->getMessage() . "\n");
die('<div class="alert alert-danger"><br />Avem o problema tehnica. Revenim in cel mai scurt timp posibil.</div>');
}
self::_getUrl();
self::arrays();
}