public function shutdown() { if ($this->config->getVar("CONFIG/SCHEDULER_HOST") == "") { $this->schedulerurl = $this->request->prefix . "://" . $this->request->http_host . $this->base . "scheduler/?bsu=" . $this->session->getSessionVar("userid"); } else { $this->schedulerurl = $this->config->getVar("CONFIG/SCHEDULER_HOST") . $this->base . "scheduler/?bsu=" . $this->session->getSessionVar("userid"); } $scheduler_pages_str = $this->config->getVar("CONFIG/SCHEDULER_PAGES"); $scheduler_pages = explode(",", $scheduler_pages_str); if (in_array($this->page, $scheduler_pages) || $scheduler_pages_str == "") { if ((int) $this->config->getVar("CONFIG/SCHEDULER") == 1 && $this->page != "scheduler") { register_shutdown_function('framework\\propagateShutdown', $this->schedulerurl); } } parent::shutdown(); }