Hi threre,
I've got some trouble running the PHP code from the first post. To be honest - I'm not so familiar with PHP
It would be great if anybody could have a look into this ...
(I already posted this issue in the german board
http://www.vbulletin-germany.com/for...ad.php?t=38534 and was advised to ask the author of the code

)
Below you'll find the (entire) code which I use in a PHP file (called createuser.php).
I started the code by entering
http://www.xyz.de/_forum/createuser.php in the URL-field of my browser.
Code:
<?php
define('VB_AREA', 'External');
define('SKIP_SESSIONCREATE', 1);
define('SKIP_USERINFO', 1);
define('CWD', '.');
require_once(CWD . '/includes/init.php');
$newuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
$newuser->set('username', 'selter');
$newuser->set('email', 'selter@xyz.de');
$newuser->set('password', 'geheim');
$newuser->set('usergroupid', 2);
$newuserid = $newuser->save();
?>
Unfortunately I got this error message:
Quote:
Fatal error: vb_error_handler() [function.require]: Failed opening required 'DIR/includes/functions_log_error.php' (include_path='.:/usr/lib/php') in /xxxxxxx/htdocs/_forum/includes/class_core.php on line 3247
|
Where is the bug???
Thanks
Selter