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")); }
public function __construct() { parent::__construct(); $this->user = $this->is_authed(); if (!empty($this->user) && $this->user['user_type'] != NORMAL_USER) { app_redirect(url("index", "jsd_index#index")); } $GLOBALS['jsd_user_data'] = $this->user; }
public function __construct() { parent::__construct(); $this->user = $this->is_authed(); }
public function __construct() { parent::__construct(); }