2013-01-16 06:10:53 +01:00
|
|
|
<?php
|
|
|
|
require("include/base.php");
|
|
|
|
|
|
|
|
$sUser = new User(0);
|
|
|
|
$sUser->uUsername = "test";
|
|
|
|
$sUser->uPassword = "test";
|
2013-01-17 03:53:35 +01:00
|
|
|
$sUser->uDisplayName = "Test user";
|
2013-01-16 06:10:53 +01:00
|
|
|
$sUser->uEmailAddress = "test@test.com";
|
|
|
|
$sUser->uIsActivated = true;
|
|
|
|
$sUser->uIsAdmin = true;
|
|
|
|
$sUser->GenerateSalt();
|
|
|
|
$sUser->GenerateHash();
|
|
|
|
$sUser->InsertIntoDatabase();
|