diff -r ceeecb160aec -r b572ce1114f1 includes/functions.php --- a/includes/functions.php Sun May 10 14:47:14 2009 -0400 +++ b/includes/functions.php Sun May 10 15:52:53 2009 -0400 @@ -921,6 +921,44 @@ } /** + * Show the "this is a redirector" notice + * @param string Target Page ID + * @param string Target Namespace + */ + +function display_redirect_notice($page_id, $namespace) +{ + global $db, $session, $paths, $template, $plugins; // Common objects + global $lang, $output; + + $url = makeUrlNS($namespace, $page_id, false, true); + $ns = namespace_factory($page_id, $namespace); + $page_data = $ns->get_cdata(); + + $title = $page_data['name']; + + $cls = $ns->exists() ? '' : 'class="wikilink-nonexistent" '; + + $a = '' . $title . ''; + $redir_html = '
+ + + + + +
+ Cute wet-floor icon + + ' . $lang->get('page_msg_this_is_a_redirector', array( 'redirect_target' => $a )) . ' +
+
+
+
'; + + $output->add_after_header($redir_html); +} + +/** * Essentially an return code reader for a socket. Don't use this unless you're writing mail code and smtp_send_email doesn't cut it. Ported from phpBB's smtp.php. * @param socket A socket resource * @param string The expected response from the server, this needs to be exactly three characters.