Beispiel #1
0
 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;
     }
 }
Beispiel #2
0
 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;
     }
 }
Beispiel #3
0
 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'];
     }
 }
Beispiel #4
0
 public function __construct($db)
 {
     parent::__construct("articles", $db);
 }
 public function __construct($db)
 {
     parent::__construct("bottom_menu", $db);
 }
Beispiel #6
0
 public function __construct()
 {
     parent::__construct("news");
 }
Beispiel #7
0
 public function __construct($db)
 {
     parent::__construct("banners", $db);
 }
Beispiel #8
0
 public function __construct()
 {
     parent::__construct("discounts");
 }
Beispiel #9
0
 public function __construct()
 {
     parent::__construct("reservation");
 }
Beispiel #10
0
 public function __construct()
 {
     parent::__construct("orders");
 }
 public function __construct($db)
 {
     parent::__construct("poll_votes", $db);
 }
Beispiel #12
0
 public function __construct($db)
 {
     parent::__construct("sections", $db);
 }
Beispiel #13
0
 public function __construct()
 {
     parent::__construct("votes");
 }
Beispiel #14
0
 public function __construct($db)
 {
     parent::__construct("comments", $db);
 }
Beispiel #15
0
 public function __construct()
 {
     parent::__construct("meta");
 }
Beispiel #16
0
 public function __construct($db)
 {
     $this->config = new config();
     $this->user = new User($db);
     parent::__construct("mail", $db);
 }
Beispiel #17
0
 public function __construct($db)
 {
     parent::__construct("top_menu", $db);
 }
Beispiel #18
0
 public function __construct()
 {
     parent::__construct("vote_variants");
 }
Beispiel #19
0
 public function __construct()
 {
     parent::__construct("gallery");
 }
Beispiel #20
0
 function __construct($db)
 {
     parent::__construct("basket", $db);
 }
Beispiel #21
0
 public function __construct()
 {
     parent::__construct("vacancy");
 }
 public function __construct()
 {
     parent::__construct("categories");
 }
Beispiel #23
0
 public function __construct($db)
 {
     $this->config = new config();
     parent::__construct("pictures", $db);
 }
Beispiel #24
0
 public function __construct()
 {
     parent::__construct("products");
 }