コード例 #1
0
ファイル: IPB.php プロジェクト: buildshop/bs-common
 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;
     }
 }
コード例 #2
0
ファイル: VB5.php プロジェクト: buildshop/bs-common
 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;
     }
 }
コード例 #3
0
ファイル: PHPBB2.php プロジェクト: buildshop/bs-common
 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'];
     }
 }
コード例 #4
0
ファイル: article_class.php プロジェクト: Ziblickiy/dreamarts
 public function __construct($db)
 {
     parent::__construct("articles", $db);
 }
コード例 #5
0
 public function __construct($db)
 {
     parent::__construct("bottom_menu", $db);
 }
コード例 #6
0
ファイル: news_class.php プロジェクト: kuaa59/www
 public function __construct()
 {
     parent::__construct("news");
 }
コード例 #7
0
ファイル: banner_class.php プロジェクト: Ziblickiy/dreamarts
 public function __construct($db)
 {
     parent::__construct("banners", $db);
 }
コード例 #8
0
 public function __construct()
 {
     parent::__construct("discounts");
 }
コード例 #9
0
ファイル: reservation_class.php プロジェクト: kuaa59/www
 public function __construct()
 {
     parent::__construct("reservation");
 }
コード例 #10
0
ファイル: order_class.php プロジェクト: Tatiway/online-shop
 public function __construct()
 {
     parent::__construct("orders");
 }
コード例 #11
0
 public function __construct($db)
 {
     parent::__construct("poll_votes", $db);
 }
コード例 #12
0
ファイル: section_class.php プロジェクト: Ziblickiy/dreamarts
 public function __construct($db)
 {
     parent::__construct("sections", $db);
 }
コード例 #13
0
ファイル: votes_class.php プロジェクト: kuaa59/www
 public function __construct()
 {
     parent::__construct("votes");
 }
コード例 #14
0
ファイル: comment_class.php プロジェクト: Ziblickiy/dreamarts
 public function __construct($db)
 {
     parent::__construct("comments", $db);
 }
コード例 #15
0
ファイル: meta_class.php プロジェクト: kuaa59/www
 public function __construct()
 {
     parent::__construct("meta");
 }
コード例 #16
0
ファイル: mail_class.php プロジェクト: Ziblickiy/dreamarts
 public function __construct($db)
 {
     $this->config = new config();
     $this->user = new User($db);
     parent::__construct("mail", $db);
 }
コード例 #17
0
ファイル: menu_class.php プロジェクト: Ziblickiy/dreamarts
 public function __construct($db)
 {
     parent::__construct("top_menu", $db);
 }
コード例 #18
0
ファイル: vote_variants_class.php プロジェクト: kuaa59/www
 public function __construct()
 {
     parent::__construct("vote_variants");
 }
コード例 #19
0
ファイル: gallery_class.php プロジェクト: kuaa59/www
 public function __construct()
 {
     parent::__construct("gallery");
 }
コード例 #20
0
ファイル: basket_class.php プロジェクト: Ziblickiy/dreamarts
 function __construct($db)
 {
     parent::__construct("basket", $db);
 }
コード例 #21
0
ファイル: vacancy_class.php プロジェクト: kuaa59/www
 public function __construct()
 {
     parent::__construct("vacancy");
 }
コード例 #22
0
 public function __construct()
 {
     parent::__construct("categories");
 }
コード例 #23
0
ファイル: picture_class.php プロジェクト: Ziblickiy/dreamarts
 public function __construct($db)
 {
     $this->config = new config();
     parent::__construct("pictures", $db);
 }
コード例 #24
0
ファイル: product_class.php プロジェクト: Tatiway/online-shop
 public function __construct()
 {
     parent::__construct("products");
 }