public function init($options) { parent::init($options); $this->cas_server = $this->getOption("CAS_SERVER"); $this->cas_port = $this->getOption("CAS_PORT"); $this->cas_uri = $this->getOption("CAS_URI"); phpCAS::client(CAS_VERSION_1_0, $this->cas_server, $this->cas_port, $this->cas_uri, false); phpCAS::setNoCasServerValidation(); }
function init($options) { parent::init($options); $this->usersSerFile = $options["USERS_FILEPATH"]; $this->slaveMode = $options["SLAVE_MODE"] ? true : false; $this->urls = array($options["LOGIN_URL"], $options["LOGOUT_URL"]); global $phpbb_root_path, $phpEx, $user, $db, $config, $cache, $template; define('IN_PHPBB', true); $phpbb_root_path = $options["PHPBB_PATH"]; $phpEx = substr(strrchr(__FILE__, '.'), 1); require $phpbb_root_path . 'common.' . $phpEx; $user->session_begin(); if (!$user->data['is_registered']) { $this->disconnect(); } }