where is the class?
I found this in tiki-registration.php//
$userlib->add_user($_REQUEST%22name%22,$_REQUEST%22pass%22,$_REQUEST%22email%22,'',$_REQUEST%22useraddr%22,$_REQUEST%22phoneno%22);
where can i found the class for this method?
its in tikilib.php. its
function add_user($user, $pass, $email, $useraddr, $phoneno) {
global $wikiHomePage;
if (user_exists($user))
return false;
$query = "insert into `users_users`(`login`,`password`,`email`,`useradd`,`phoneno`)
values(?, ?, ?, ?, ?)";
$result = $this->query($query, array($user,$pass,$email,$useraddr,$phoneno) );
$action = "user $user added";
$t = date("U");
$query = "insert into `tiki_actionlog`(`action`,`pageName`,`lastModif`,`user`,`ip`,`comment`) values(?,?,?,?,?,?)";
$result = $this->query($query,array($action,$wikiHomePage,(int) $t,'admin',$_SERVER%22REMOTE_ADDR%22,''));
return true;
}
but this is not working properly why..?
thanks in advance,
sharma