password

Human readable password function


/**
* Creates human readable passwords
* TODO: filter not desired phrases
* @param unknown_type $length
* @return unknown
*/

function com_dir_create_password($length = 10){
global $strength;

$conso = array("b","c","d","f","g","h","j","k","m","n","p","r","s","t","v","w","x","y","z");
$numeric = array(2,3,4,5,6,7,8,9);
$vocal = array("a","e","i","o","u");
$password = "";
srand ((double)microtime()*1000000);

$templength = ($length % 2) ? $length -1 : $length -2;
$max = $templength/2;

for($i=1; $i