index.php
changeset 963 b572ce1114f1
parent 953 323c4cd1aa37
child 1016 6d32d80b2192
equal deleted inserted replaced
962:ceeecb160aec 963:b572ce1114f1
    73       $page = new PageProcessor( $paths->page_id, $paths->namespace, $rev_id );
    73       $page = new PageProcessor( $paths->page_id, $paths->namespace, $rev_id );
    74       // Feed this PageProcessor to the template processor. This prevents $template from starting another
    74       // Feed this PageProcessor to the template processor. This prevents $template from starting another
    75       // PageProcessor when we already have one going.
    75       // PageProcessor when we already have one going.
    76       $template->set_page($page);
    76       $template->set_page($page);
    77       $page->send_headers = true;
    77       $page->send_headers = true;
       
    78       $page->allow_redir = ( !isset($_GET['redirect']) || (isset($_GET['redirect']) && $_GET['redirect'] !== 'no') );
    78       $pagepass = ( isset($_REQUEST['pagepass']) ) ? sha1($_REQUEST['pagepass']) : '';
    79       $pagepass = ( isset($_REQUEST['pagepass']) ) ? sha1($_REQUEST['pagepass']) : '';
    79       $page->password = $pagepass;
    80       $page->password = $pagepass;
    80       $page->send(true);
    81       $page->send(true);
    81       $page_timestamp = $page->revision_time;
    82       $page_timestamp = $page->revision_time;
    82       break;
    83       break;