14 lines
351 B
PHP
14 lines
351 B
PHP
|
<?php
|
||
|
require("include/base.php");
|
||
|
|
||
|
$sUser = new User(0);
|
||
|
$sUser->uUsername = "test";
|
||
|
$sUser->uPassword = "test";
|
||
|
$suser->uDisplayName = "Test user"; /* This does not work?! */
|
||
|
$sUser->uEmailAddress = "test@test.com";
|
||
|
$sUser->uIsActivated = true;
|
||
|
$sUser->uIsAdmin = true;
|
||
|
$sUser->GenerateSalt();
|
||
|
$sUser->GenerateHash();
|
||
|
$sUser->InsertIntoDatabase();
|