buildCommonNS(); $out['errors'] = array(); if (!$this->auth->checkAuth() || $this->auth->getUsername() != $this->getRouteVar('user')) { header("Location: $BASE_URL"); } else { $this->auth->logout(); echo $this->renderTemplate('logout', $out); } ?>