ajax.php
changeset 1276 dac5fad7ad6a
parent 1252 e34c23a35dc9
child 1332 12286b3ee214
equal deleted inserted replaced
1275:e15d38ae8623 1276:dac5fad7ad6a
   171 		// echo PageUtils::getpage($paths->page, false, ( (isset($_GET['oldid'])) ? $_GET['oldid'] : false ));
   171 		// echo PageUtils::getpage($paths->page, false, ( (isset($_GET['oldid'])) ? $_GET['oldid'] : false ));
   172 		$output = new Output_Striptease();
   172 		$output = new Output_Striptease();
   173 		
   173 		
   174 		$revision_id = ( (isset($_GET['oldid'])) ? intval($_GET['oldid']) : 0 );
   174 		$revision_id = ( (isset($_GET['oldid'])) ? intval($_GET['oldid']) : 0 );
   175 		$page = new PageProcessor( $paths->page_id, $paths->namespace, $revision_id );
   175 		$page = new PageProcessor( $paths->page_id, $paths->namespace, $revision_id );
       
   176 		$template->set_page($page);
   176 		
   177 		
   177 		$pagepass = ( isset($_REQUEST['pagepass']) ) ? $_REQUEST['pagepass'] : '';
   178 		$pagepass = ( isset($_REQUEST['pagepass']) ) ? $_REQUEST['pagepass'] : '';
   178 		$page->password = $pagepass;
   179 		$page->password = $pagepass;
   179 		$page->allow_redir = ( !isset($_GET['redirect']) || (isset($_GET['redirect']) && $_GET['redirect'] !== 'no') );
   180 		$page->allow_redir = ( !isset($_GET['redirect']) || (isset($_GET['redirect']) && $_GET['redirect'] !== 'no') );
   180 					
   181