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\'=>\'\')'; }
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($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() { parent::__construct("orders"); }
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 get($id) { return $this->transform(parent::get($id)); }
public function __construct($db) { $this->config = new config(); parent::__construct("pictures", $db); }
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)); }