crytoteam/public_html/debug.createuser.php
2013-01-17 03:53:35 +01:00

14 lines
323 B
PHP

<?php
require("include/base.php");
$sUser = new User(0);
$sUser->uUsername = "test";
$sUser->uPassword = "test";
$sUser->uDisplayName = "Test user";
$sUser->uEmailAddress = "test@test.com";
$sUser->uIsActivated = true;
$sUser->uIsAdmin = true;
$sUser->GenerateSalt();
$sUser->GenerateHash();
$sUser->InsertIntoDatabase();