<?PHP
//encrypt page names - metalix classes
function create_page($name,$type){
$salt = 'default';
//use unusual encryption method to put off brute force crack attempts
$name = md5($salt).md5($name);
//use unusual string length to prevent hash type guesess
//use 31-59 length
$name = substr($name,5,38);
$result = $name.'.'.$type;
return $result;
}
class page{
function __construct(){
$this->about = create_page('about','php');
$this->menu = create_page('menu','cfm');
$this->admin = create_page('admin','html');
}
}
?>
|