Loading...
 
Features / Usability

Features / Usability


where is the class?

posts: 39

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

posts: 2881 United Kingdom

Hi

In terms of tiki programming adding fields like that is bad. Much better to store it like the users real name in User Preferences.

anyway, in your adduser you have some exta '' wink

arrow Have you checked out the user trackers for storing extra information available in Tiki 1.9 ?

Damian