lol768
Active member
I need to be able to create a new user account from a separate PHP script, that will be provided details e.g. username from GET variables.
How would I go about doing this?
PHP:
//Register account
$fileDir = './xf/';
require ($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');
XenForo_Application::initialize($fileDir . '/library/', $fileDir);
$request = new Zend_Controller_Request_Http();
$request->setBasePath('/community');
$session = XenForo_Session::startPublicSession($request);
$userModel = XenForo_Model::create('XenForo_Model_User');
//Create user here
How would I go about doing this?