<?php functiongen_secured_random() { // cause random is the way $a = rand(1337,2600)*42; $b = rand(1879,1955)*42;
$a < $b ? $a ^= $b ^= $a ^= $b : $a = $b;
return$a+$b; }
functionsecured_hash_function($plain) { // cause md5 is the best hash ever $secured_plain = sanitize_user_input($plain); return md5($secured_plain); }
functionsanitize_user_input($input) { // cause someone told me to never trust user input $re = '/[^a-zA-Z0-9]/'; $secured_input = preg_replace($re, "", $input); return$secured_input; }
if (isset($_GET['source'])) { show_source(__FILE__); die(); }