245 $text = preg_replace('/<noinclude>(.*?)<\/noinclude>/is', '\\1', $text); |
245 $text = preg_replace('/<noinclude>(.*?)<\/noinclude>/is', '\\1', $text); |
246 $text = preg_replace('/<nodisplay>(.*?)<\/nodisplay>/is', '', $text); |
246 $text = preg_replace('/<nodisplay>(.*?)<\/nodisplay>/is', '', $text); |
247 |
247 |
248 $text = RenderMan::render( $text ); |
248 $text = RenderMan::render( $text ); |
249 |
249 |
250 echo $text; |
250 eval( '?>' . $text ); |
251 |
251 |
252 $this->footer(); |
252 $this->footer(); |
253 } |
253 } |
254 else if ( $this->namespace == 'Anonymous' ) |
254 else if ( $this->namespace == 'Anonymous' ) |
255 { |
255 { |
1352 header('HTTP/1.1 404 Not Found'); |
1352 header('HTTP/1.1 404 Not Found'); |
1353 |
1353 |
1354 $this->header(); |
1354 $this->header(); |
1355 $this->do_breadcrumbs(); |
1355 $this->do_breadcrumbs(); |
1356 |
1356 |
1357 if ( $userpage ) |
1357 $msg = $paths->sysmsg('Page_not_found'); |
1358 { |
1358 if ( $msg ) |
1359 echo '<h3>There is no page with this title yet.</h3> |
1359 { |
1360 <p>This user has not created his or her user page yet.'; |
1360 $msg = RenderMan::render($msg); |
|
1361 eval( '?>' . $msg ); |
1361 } |
1362 } |
1362 else |
1363 else |
1363 { |
1364 { |
1364 echo '<h3>There is no page with this title yet.</h3> |
1365 if ( $userpage ) |
1365 <p>You have requested a page that doesn\'t exist yet.'; |
1366 { |
1366 } |
1367 echo '<h3>There is no page with this title yet.</h3> |
1367 if ( $session->get_permissions('create_page') ) |
1368 <p>This user has not created his or her user page yet.'; |
1368 { |
1369 } |
1369 echo ' You can <a href="'.makeUrlNS($this->namespace, $this->page_id, 'do=edit', true).'" onclick="ajaxEditor(); return false;">create this page</a>, or return to the <a href="'.makeUrl(getConfig('main_page')).'">homepage</a>.'; |
1370 else |
1370 } |
1371 { |
1371 else |
1372 echo '<h3>There is no page with this title yet.</h3> |
1372 { |
1373 <p>You have requested a page that doesn\'t exist yet.'; |
1373 echo ' Return to the <a href="'.makeUrl(getConfig('main_page')).'">homepage</a>.</p>'; |
1374 } |
1374 } |
1375 if ( $session->get_permissions('create_page') ) |
1375 if ( $session->get_permissions('history_rollback') ) |
1376 { |
1376 { |
1377 echo ' You can <a href="'.makeUrlNS($this->namespace, $this->page_id, 'do=edit', true).'" onclick="ajaxEditor(); return false;">create this page</a>, or return to the <a href="'.makeUrl(getConfig('main_page')).'">homepage</a>.'; |
1377 $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;'); |
1378 } |
1378 if ( !$e ) |
1379 else |
1379 { |
1380 { |
1380 $db->_die('The deletion log could not be selected.'); |
1381 echo ' Return to the <a href="'.makeUrl(getConfig('main_page')).'">homepage</a>.</p>'; |
1381 } |
1382 } |
1382 if ( $db->numrows() > 0 ) |
1383 if ( $session->get_permissions('history_rollback') ) |
1383 { |
1384 { |
1384 $r = $db->fetchrow(); |
1385 $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;'); |
1385 echo '<p><b>This page was deleted on ' . $r['date_string'] . '.</b> The stated reason was:</p><blockquote>' . $r['edit_summary'] . '</blockquote><p>You can probably <a href="'.makeUrl($paths->page, 'do=rollback&id='.$r['time_id']).'" onclick="ajaxRollback(\''.$r['time_id'].'\'); return false;">roll back</a> the deletion.</p>'; |
1386 if ( !$e ) |
1386 if ( $session->user_level >= USER_LEVEL_ADMIN ) |
1387 { |
1387 { |
1388 $db->_die('The deletion log could not be selected.'); |
1388 echo '<p>Additional admin options: <a href="' . makeUrl($paths->page, 'do=detag', true) . '" title="Remove any tags on this page">detag page</a></p>'; |
1389 } |
1389 } |
1390 if ( $db->numrows() > 0 ) |
1390 } |
1391 { |
1391 $db->free_result(); |
1392 $r = $db->fetchrow(); |
1392 } |
1393 echo '<p><b>This page was deleted on ' . $r['date_string'] . '.</b> The stated reason was:</p><blockquote>' . $r['edit_summary'] . '</blockquote><p>You can probably <a href="'.makeUrl($paths->page, 'do=rollback&id='.$r['time_id']).'" onclick="ajaxRollback(\''.$r['time_id'].'\'); return false;">roll back</a> the deletion.</p>'; |
1393 echo '<p> |
1394 if ( $session->user_level >= USER_LEVEL_ADMIN ) |
1394 HTTP Error: 404 Not Found |
1395 { |
1395 </p>'; |
1396 echo '<p>Additional admin options: <a href="' . makeUrl($paths->page, 'do=detag', true) . '" title="Remove any tags on this page">detag page</a></p>'; |
|
1397 } |
|
1398 } |
|
1399 $db->free_result(); |
|
1400 } |
|
1401 echo '<p> |
|
1402 HTTP Error: 404 Not Found |
|
1403 </p>'; |
|
1404 } |
1396 $this->footer(); |
1405 $this->footer(); |
1397 } |
1406 } |
1398 |
1407 |
1399 /** |
1408 /** |
1400 * Echoes out breadcrumb data, if appropriate. |
1409 * Echoes out breadcrumb data, if appropriate. |