This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// We need to include the class. | |
require('safe_class.php'); | |
// Here we specify the $_GET-variables as variables which can be used later. | |
list($foo, $bar) = safe::g('foo', 'bar'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function createId($mail, $token) { | |
$r = range('a', 'f'); | |
$h = md5($mail.$token); | |
$i = str_replace($r, '', strtolower($h)); | |
$i = substr($i, 0, 10); | |
return (string)$i; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $hsl = rand(0, 240) . ',' . rand(50, 80) . '%,60%'; ?> | |
<style type="text/css"> | |
a { | |
color: hsl(<?php echo $hsl ?>); | |
} | |
</style> |