public function __construct($version) { parent::__construct($version); include 'forum/conf_global.php'; //require 'forum/conf_global.php'; $this->db_user = $INFO['sql_user']; $this->db_password = $INFO['sql_pass']; $this->db_host = $INFO['sql_host']; $this->db_name = $INFO['sql_database']; $this->tbl_prefix = $INFO['sql_tbl_prefix']; if ($INFO['sql_driver'] == 'mysql') { $this->FDB = $this->setDb('mysql:host=' . $this->db_host . ';dbname=' . $this->db_name . ''); $this->FDB->active = true; } }
public function __construct($version) { parent::__construct($version); include 'vb5/core/includes/config.php'; $this->cookieprefix = $config['Misc']['cookieprefix']; $this->fcookiesalt = $config['Misc']['cookie_security_hash']; $this->db_user = $config['MasterServer']['username']; $this->db_password = $config['MasterServer']['password']; $this->db_host = $config['MasterServer']['servername']; $this->db_name = $config['Database']['dbname']; $this->tbl_prefix = $config['Database']['tableprefix']; if ($config['Database']['dbtype'] == 'mysql') { $this->FDB = $this->setDb('mysql:host=' . $this->db_host . ';dbname=' . $this->db_name . ''); $this->FDB->active = true; } }
public function __construct($version) { parent::__construct($version); include 'forum/config.php'; $this->db_user = $dbuser; $this->db_password = $dbpasswd; $this->db_host = $dbhost; $this->db_name = $dbname; $this->tbl_prefix = $table_prefix; if ($dbms == 'mysql') { $this->FDB = $this->setDb('mysql:host=' . $this->db_host . ';dbname=' . $this->db_name . ''); $this->FDB->active = true; } $result = $this->FDB->createCommand("SELECT * FROM {$this->tbl_prefix}config"); foreach ($result->queryAll() as $row) { $this->board_config[$row['config_name']] = $row['config_value']; } }
public function __construct($db) { parent::__construct("articles", $db); }
public function __construct($db) { parent::__construct("bottom_menu", $db); }
public function __construct() { parent::__construct("news"); }
public function __construct($db) { parent::__construct("banners", $db); }
public function __construct() { parent::__construct("discounts"); }
public function __construct() { parent::__construct("reservation"); }
public function __construct() { parent::__construct("orders"); }
public function __construct($db) { parent::__construct("poll_votes", $db); }
public function __construct($db) { parent::__construct("sections", $db); }
public function __construct() { parent::__construct("votes"); }
public function __construct($db) { parent::__construct("comments", $db); }
public function __construct() { parent::__construct("meta"); }
public function __construct($db) { $this->config = new config(); $this->user = new User($db); parent::__construct("mail", $db); }
public function __construct($db) { parent::__construct("top_menu", $db); }
public function __construct() { parent::__construct("vote_variants"); }
public function __construct() { parent::__construct("gallery"); }
function __construct($db) { parent::__construct("basket", $db); }
public function __construct() { parent::__construct("vacancy"); }
public function __construct() { parent::__construct("categories"); }
public function __construct($db) { $this->config = new config(); parent::__construct("pictures", $db); }
public function __construct() { parent::__construct("products"); }