ID Password

Browsing this Thread:   1 Anonymous Users

« 1 (2)

Re: Download
Just popping in
2006/9/20 6:30
Posts: 5
Wow, thanks for that. It gives me a place to start trying to hack. I'm not a php person, but I think I can figure it out.


Posted on: 2006/11/2 6:46
Transfer the post to other applications Transfer

Re: Download
2006/6/3 9:27
From UsA - MiChIgAn
Posts: 154
hmm i also found this post from Mith

Re: Create New Users With PHP

// Get new user object
$member_handler =& xoops_gethandler('member');
$newuser =& $member_handler->createUser();

// Set user variables - either directly or from form values
$newuser->setVar('uname', $uname);
$newuser->setVar('email', $email);
$newuser->setVar('pass', md5($pass), true);

// Automatically calculated values
$newuser->setVar('user_regdate', time(), true);
$actkey = substr(md5(uniqid(mt_rand(), 1)), 0, 8);
$newuser->setVar('actkey', $actkey, true);

// Insert the user in the database

// Add the user to the registered users group
$member_handler->addUserToGroup(XOOPS_GROUP_USERS, $newuser->getVar('uid'));

Posted on: 2006/11/2 7:17
Transfer the post to other applications Transfer

« 1 (2)

You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]