PHP Classes

set password

Recommend this page to a friend!

      Rar for PHP  >  All threads  >  set password  >  (Un) Subscribe thread alerts  
Subject:set password
Summary:Make it possible to use AUTO as password
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;
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

For more information send a message to info at phpclasses dot org.