diff -r ac34de920762 -r eefe9ab7fe7c includes/pageprocess.php --- a/includes/pageprocess.php Fri Dec 28 16:52:03 2007 -0500 +++ b/includes/pageprocess.php Sun Dec 30 01:13:24 2007 -0500 @@ -247,7 +247,7 @@ $text = RenderMan::render( $text ); - echo $text; + eval( '?>' . $text ); $this->footer(); } @@ -1354,45 +1354,54 @@ $this->header(); $this->do_breadcrumbs(); - if ( $userpage ) - { - echo '

There is no page with this title yet.

-

This user has not created his or her user page yet.'; - } - else + $msg = $paths->sysmsg('Page_not_found'); + if ( $msg ) { - echo '

There is no page with this title yet.

-

You have requested a page that doesn\'t exist yet.'; - } - if ( $session->get_permissions('create_page') ) - { - echo ' You can create this page, or return to the homepage.'; + $msg = RenderMan::render($msg); + eval( '?>' . $msg ); } else { - echo ' Return to the homepage.

'; - } - if ( $session->get_permissions('history_rollback') ) - { - $e = $db->sql_query('SELECT * FROM ' . table_prefix . 'logs WHERE action=\'delete\' AND page_id=\'' . $this->page_id . '\' AND namespace=\'' . $this->namespace . '\' ORDER BY time_id DESC;'); - if ( !$e ) + if ( $userpage ) + { + echo '

There is no page with this title yet.

+

This user has not created his or her user page yet.'; + } + else { - $db->_die('The deletion log could not be selected.'); + echo '

There is no page with this title yet.

+

You have requested a page that doesn\'t exist yet.'; } - if ( $db->numrows() > 0 ) + if ( $session->get_permissions('create_page') ) + { + echo ' You can create this page, or return to the homepage.'; + } + else + { + echo ' Return to the homepage.

'; + } + if ( $session->get_permissions('history_rollback') ) { - $r = $db->fetchrow(); - echo '

This page was deleted on ' . $r['date_string'] . '. The stated reason was:

' . $r['edit_summary'] . '

You can probably roll back the deletion.

'; - if ( $session->user_level >= USER_LEVEL_ADMIN ) + $e = $db->sql_query('SELECT * FROM ' . table_prefix . 'logs WHERE action=\'delete\' AND page_id=\'' . $this->page_id . '\' AND namespace=\'' . $this->namespace . '\' ORDER BY time_id DESC;'); + if ( !$e ) { - echo '

Additional admin options: detag page

'; + $db->_die('The deletion log could not be selected.'); } + if ( $db->numrows() > 0 ) + { + $r = $db->fetchrow(); + echo '

This page was deleted on ' . $r['date_string'] . '. The stated reason was:

' . $r['edit_summary'] . '

You can probably roll back the deletion.

'; + if ( $session->user_level >= USER_LEVEL_ADMIN ) + { + echo '

Additional admin options: detag page

'; + } + } + $db->free_result(); } - $db->free_result(); + echo '

+ HTTP Error: 404 Not Found +

'; } - echo '

- HTTP Error: 404 Not Found -

'; $this->footer(); }