# Wiki Reflection Version: 2.3 ( see http://www.vacilando.org/index.php?x=7065 )
# Open source license: GPL
# Make sure to force Unicode for Wikipedia content -- otherwise all foreign scripts will display utter nonsense. This should of course be in your header, though my experimenting shows it may as well stay right here.
echo '';
echo '
Zbiór ciekawych informacji';
echo '';
echo '';
# Make sure images do not display with a border.
echo '';
$default_title = 'Internet'; # If you do not specify a title, this will be your default page.
$sourceurl = 'http://pl.wikipedia.org/wiki/'; # This URL needs adjusting sometimes.
$pathfromroot = substr( $_SERVER['REQUEST_URI'], 0, strpos( $_SERVER['REQUEST_URI'], "?" ) );
$title_wiki = $_GET['title'];
if ($title_wiki == "") { $title_wiki = $default_title; }
$nicetitle = str_replace( "_", " ", stripslashes( $title_wiki ) );
function callback( $buffer ) {
global $nicetitle;
global $title_wiki;
global $sourceurl;
# Separate the article content
$buffer = substr( $buffer, strpos( $buffer, '' ) );
$buffer = substr( $buffer, 0, strpos( $buffer, '