Lines Matching refs:redirect
51 // return if external redirect is not allowed
57 $redirect = $INPUT->get->str('redirect', '0');
61 if($redirect == 'no' || $redirect > 4) {
64 $redirect = (int)$redirect+1;
83 $page = wl($page, array('redirect' => $redirect), true, '&');
89 // add anchor if not external redirect
93 $this->redirect($page);
136 // FIXME: if the currently indexed page contains a redirect, all pages pointing to it need a new backlink entry!
143 * @param string $ID page id from where the redirect originated
153 $_SESSION[DOKU_COOKIE]['redirect'] = $ID;
162 $redirect = $INPUT->get->str('redirect');
165 if($redirect <= 0 || $redirect > 5) {
169 $ID = isset($_SESSION[DOKU_COOKIE]['redirect']) ? $_SESSION[DOKU_COOKIE]['redirect'] : null;
173 unset($_SESSION[DOKU_COOKIE]['redirect']);
179 $url = wl($page, array('redirect' => 'no'), true, '&');
200 private function redirect($url) {