Login   Register  
PHP Classes
elePHPant
Icontem

set password

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Rar for PHP  >  All threads  >  set password  >  (Un) Subscribe thread alerts  
Subject:set password
Summary:Make it possible to use AUTO as password
Messages:1
Author:alex jahns
Date:2007-03-09 21:31:09
 

  1. set password   Reply   Report abuse  
Picture of alex jahns
alex jahns
2007-03-09 21:31:09

<?
public function setPassword($password=false){
if($this->rarpasswords=="") $save=false;
else $save=true;
$this->more=0;
$this->space=0;
if ($password===true) $this->password="-hp\"".$this->genPass($save)."\"";
elseif($password!=false) $this->password="-hp\"".$password."\"";
}
?>

setPassword(); will set no password
setPassword(true); will set random password
setPassword("any text"); will set password to any text
at the moment it's not possible to use AUTO as password