- substr: documentation ( source)
- file_get_contents: documentation ( source)
- highlight_file: documentation ( source)
<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
$utf8=false;
$solution_file = file_get_contents("http://www.yoire.com/img/v/nice_yoire_xxed_by_Mawekl.jpg");
$solution_bytes = substr($solution_file,0,4);
$solution_b64 = Encoder::data2base64($solution_bytes,$utf8);
print "La solución es: [GUESS ME!]"; // sorry, I mean $solution_b64 X"DDD
print "<br><br>";
print Challenges::solutionBox();
print Challenges::checkSolution($solution_b64);
?>
<a href="<?=$_SERVER["PHP_SELF"]?>?showSource">Ver código fuente</a>
<?php
if(Common::getString("showSource")!==false) {
print "<hr>";
highlight_file(__FILE__);
}
print Website::footer();
?>
</body>
</html>