Example #1
0
 public function getPubSiteInfo($verificodeb, $siteID, $language, $site_type)
 {
     $siteInfo = null;
     /*if(!$this->validateParam($siteID,$verificodeb))
     		{
     			return 'array()';
     		}*/
     $siteStmt = new SiteClass($siteID);
     $snc = new SiteNavigateClass($siteID);
     if ($site_type == 1) {
         $siteInfo = $siteStmt->getStartPageInfoBySiteId($siteID, $language == 0 ? -1 : $language);
     } else {
         if ($site_type == 3) {
             $siteInfo = $siteStmt->getStartPageInfoWapBySiteId($siteID, $language == 0 ? -1 : $language);
             // 不存在时返回false
         }
     }
     if ((empty($siteInfo) || $siteInfo == null) && $site_type != 2) {
         //未设置站点起始页
         return 'array()';
     }
     if ($site_type == 1) {
         $navi = $snc->select($siteInfo->navi_id);
         $htmlUrl = GlobalClass::getPageUrl(GlobalClass::HTMLMODE, $siteInfo->language, $navi->navi_type_id, $navi->navi_id, $navi->navi_url, $navi->inner_link_id, $siteInfo->page_id);
     } else {
         if ($site_type == 3) {
             $navi = $snc->select($siteInfo->navi_id);
             $htmlUrl = GlobalClass::getPageUrl(GlobalClass::WAPMODE, $siteInfo->language, $navi->navi_type_id, $navi->navi_id, $navi->navi_url, $navi->inner_link_id, $siteInfo->page_id);
         } else {
             $htmlUrl = "";
         }
     }
     $isHtml = GlobalClass::checkHasOpenMemberSys($siteID, $siteInfo->language) ? 0 : 1;
     return 'array(\'isHTML\'=>' . $isHtml . ',\'htmlUrl\'=>\'' . $htmlUrl . '\',\'dynamicUrl\'=>\'\')';
 }
Example #2
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;
     }
 }
Example #3
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;
     }
 }
Example #4
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'];
     }
 }
Example #5
0
 public function __construct($db)
 {
     parent::__construct("articles", $db);
 }
 public function __construct($db)
 {
     parent::__construct("bottom_menu", $db);
 }
Example #7
0
 public function __construct()
 {
     parent::__construct("news");
 }
Example #8
0
 public function __construct($db)
 {
     parent::__construct("banners", $db);
 }
Example #9
0
 public function __construct()
 {
     parent::__construct("discounts");
 }
Example #10
0
 public function __construct()
 {
     parent::__construct("reservation");
 }
Example #11
0
 public function __construct($db)
 {
     parent::__construct("poll_votes", $db);
 }
Example #12
0
 public function __construct($db)
 {
     parent::__construct("sections", $db);
 }
Example #13
0
 public function __construct()
 {
     parent::__construct("votes");
 }
Example #14
0
 public function __construct($db)
 {
     parent::__construct("comments", $db);
 }
Example #15
0
 public function __construct()
 {
     parent::__construct("meta");
 }
Example #16
0
 public function __construct($db)
 {
     $this->config = new config();
     $this->user = new User($db);
     parent::__construct("mail", $db);
 }
Example #17
0
 public function __construct()
 {
     parent::__construct("orders");
 }
Example #18
0
 public function __construct($db)
 {
     parent::__construct("top_menu", $db);
 }
Example #19
0
 public function __construct()
 {
     parent::__construct("vote_variants");
 }
Example #20
0
 public function __construct()
 {
     parent::__construct("gallery");
 }
Example #21
0
 function __construct($db)
 {
     parent::__construct("basket", $db);
 }
Example #22
0
 public function __construct()
 {
     parent::__construct("vacancy");
 }
Example #23
0
 public function get($id)
 {
     return $this->transform(parent::get($id));
 }
Example #24
0
 public function __construct($db)
 {
     $this->config = new config();
     parent::__construct("pictures", $db);
 }
Example #25
0
 public function searches($q, $sort, $up)
 {
     if (!$this->checkSortUp($sort, $up)) {
         return $this->getAllData(parent::search($q, array("title", "description")));
     }
     return $this->transform(parent::search($q, array("title", "description"), $sort, $up));
 }