Username: 
Password: 
Restrict session to IP 
<?php
/**
 * Yes, you may see me ;)
 */
chdir('../../');
require_once('challenge/html_head.php');
require(GWF_CORE_PATH.'module/WeChall/solutionbox.php');

if (false === ($chall = WC_Challenge::getByTitle('PHP 0816'))) {
	$chall = WC_Challenge::dummyChallenge('PHP 0816', 5, true);
}

$chall->showHeader();

# Check Solution
$chall->onCheckSolution();

# Mission
htmlTitleBox($chall->lang('title'), $chall->lang('info', array('solution.php', 'code.php?src=code.php&amp;mode=hl')));


echo '<div class="box box_c">';
# Link 1
$href = "code.php?src=test.php&amp;hl[0]=nice&amp;hl[1]=text&amp;mode=hl";
$a = '<a href="'.$href.'">'.$chall->lang('link1').'</a>';
echo '<div>'.$a.'</div>';

# Link 2
$href = "code.php?src=index.php&amp;hl[0]=vulnerable&amp;mode=hl";
$a = '<a href="'.$href.'">'.$chall->lang('link2').'</a>';
echo '<div>'.$a.'</div>';

# Link 3
$href = "code.php?src=code.php&amp;hl[0]=function&amp;mode=hl";
$a = '<a href="'.$href.'">'.$chall->lang('link3').'</a>';
echo '<div>'.$a.'</div>';
echo '</div>';

# Script
$msg = '[code=php title=code.php]'.file_get_contents('challenge/php0816/code.php').'[/php]';
echo GWF_Box::box(GWF_Message::display($msg, true, true, true));

formSolutionbox($chall, true);
echo $chall->copyrightFooter();
require_once('challenge/html_foot.php');
?>