public function __construct() { if (file_exists(APP_ROOT_PATH . "public/uc_config.php")) { require_once APP_ROOT_PATH . "public/uc_config.php"; } if (app_conf("INTEGRATE_CODE") == 'Ucenter' && UC_CONNECT == 'mysql') { if (file_exists(APP_ROOT_PATH . "public/uc_data/creditsettings.php")) { require_once APP_ROOT_PATH . "public/uc_data/creditsettings.php"; $this->creditsettings = $_CACHE['creditsettings']; if (count($this->creditsettings) > 0) { foreach ($this->creditsettings as $k => $v) { $this->creditsettings[$k]['srctitle'] = $this->credits_CFG[$v['creditsrc']]['title']; } $this->allow_exchange = true; } } } $GLOBALS['tmpl']->assign("allow_exchange", $this->allow_exchange); parent::__construct(); global_run(); if (check_save_login() != LOGIN_STATUS_LOGINED) { app_redirect(url("index", "user#login")); } init_app_page(); }
public function __construct() { parent::__construct(); $GLOBALS['tmpl']->assign("index_url", url("index", "jsd_index#index")); $GLOBALS['tmpl']->assign("service_url", url("index", "jsd_user#service_list")); $GLOBALS['tmpl']->assign("technician_list_url", url("index", "jsd_user#technician_list")); $GLOBALS['tmpl']->assign("order_list_url", url("index", "jsd_user#order_list")); $GLOBALS['tmpl']->assign("mypage_url", url("index", "jsd_user#my_page")); }