*** empty log message ***

This commit is contained in:
katagia 2003-05-02 16:18:05 +00:00
parent a730d435ea
commit 589808de96
1 changed files with 25 additions and 24 deletions

View File

@ -281,30 +281,6 @@ function genpasswd() { // This function will return a password with max. 8 chara
$Integer = '23456789'; $Integer = '23456789';
// DEFINE CONSTANTS FOR ALGORTTHM // DEFINE CONSTANTS FOR ALGORTTHM
define("LEN", '1'); define("LEN", '1');
/* THIS FUNCTION GENERATES A RANDOM NUMBER THAT WILL BE USED TO
* RANDOMLY SELECT CHARACTERS FROM THE STRINGS ABOVE
*/
function RndInt($Format){
switch ($Format){
case 'letter':
$Rnd = rand(0,23);
if ($Rnd > 23){
$Rnd = $Rnd - 1;
}
break;
case 'number':
$Rnd = rand(2,9);
if ($Rnd > 8){
$Rnd = $Rnd - 1;
}
break;
}
return $Rnd;
} // END RndInt() FUNCTION
/* RUN THE FUNCTION TO GENERATE RANDOM INTEGERS FOR EACH OF THE
* 8 CHARACTERS IN THE PASSWORD PRODUCED.
*/
$a = RndInt('letter'); $a = RndInt('letter');
$b = RndInt('letter'); $b = RndInt('letter');
$c = RndInt('letter'); $c = RndInt('letter');
@ -327,6 +303,31 @@ function genpasswd() { // This function will return a password with max. 8 chara
return $PW; return $PW;
} }
/* THIS FUNCTION GENERATES A RANDOM NUMBER THAT WILL BE USED TO
* RANDOMLY SELECT CHARACTERS FROM THE STRINGS ABOVE
*/
function RndInt($Format){
switch ($Format){
case 'letter':
$Rnd = rand(0,23);
if ($Rnd > 23){
$Rnd = $Rnd - 1;
}
break;
case 'number':
$Rnd = rand(2,9);
if ($Rnd > 8){
$Rnd = $Rnd - 1;
}
break;
}
return $Rnd;
} // END RndInt() FUNCTION
/* RUN THE FUNCTION TO GENERATE RANDOM INTEGERS FOR EACH OF THE
* 8 CHARACTERS IN THE PASSWORD PRODUCED.
*/
function ldapexists() { // This function will search if the DN already exists function ldapexists() { // This function will search if the DN already exists
switch ($_SESSION['type2']) { switch ($_SESSION['type2']) {
case 'user': $searchbase = $_SESSION['config']->get_UserSuffix(); break; case 'user': $searchbase = $_SESSION['config']->get_UserSuffix(); break;