function addOsuAccount($username, $password, $playerID)
{
    $db = sqlconn();
    //if user already exist
    if (getPlayerIDFromOsu($username) != '') {
        echo "Already in db<br>";
        return false;
    }
    $query = 'INSERT INTO `users_accounts` (ID, osuname, playerID) 
			VALUES (NULL, :osuname, :playerID)';
    $prepared = $db->prepare($query);
    $prepared->bindParam(':osuname', $username, PDO::PARAM_STR);
    $prepared->bindParam(':playerID', $playerID, PDO::PARAM_INT);
    $success = $prepared->execute();
    //echo 'Executed insert query: '.($prepared->execute() ? 'ok' : 'failed').'<br>';
    if (!success) {
        echo 'SQL error: ';
        print_r($prepared->errorInfo());
        echo '<br>';
    }
    return checkOsuLogin($username, $password);
    //adding to database
}
*/
include '/home/osuserve/public_html/web/inc/functions_db.php';
include '/home/osuserve/public_html/web/inc/aes.php';
if ($disabled) {
    exit(displayError('disabled'));
}
$replayID = 0;
$replayLocation = '/home/osuserve/public_html/web/replay/';
$IV = $_POST['iv'];
$key = 'h89f2-890h2h89b34g-h80g134n90133';
$scoreEncrypted = $_POST["score"];
$scoreDecrypted = decryptText($scoreEncrypted);
$score = explode(':', $scoreDecrypted);
//BOOM
//get playerID
$playerID = getPlayerIDFromOsu($score[1]);
if ($playerID == '') {
    displayError('nouser');
}
if (!checkOsuLogin($score[1], $_POST["pass"])) {
    displayError('pass');
}
if (isUserBanned($playerID)) {
    displayError('ban');
}
//set failed or not
//pass: 2
//quit: 1
//fail: 0
$completed = 2;
if (isset($_POST['x'])) {
//$v = $_GET["v"];			//rankingType_0
$c = $_GET['c'];
//beatmap hash
//$beatmapFile = $_GET["f"];	//beatmap filename
$mode = $_GET['m'];
//playmode
//$i = $_GET["i"];			//some int
//$mods = $_GET["mods"];		//for mod-specific rankings
//$h = $_GET["h"];			//no idea
//$a = $_GET["a"];			//anticheat :p
$username = $_GET['us'];
//username of player that requested this leaderboard
$passwordHash = $_GET['ha'];
//passwordHash of player that requested this leaderboard
//check if user is valid
$playerID = getPlayerIDFromOsu($username);
echo '3|false|0|0|0' . "\r\n";
//status
//status|***
//status|***|beatmapId|mapsetId|maxScores
//statuses: notsubmitted(-1), pending(0), unknown(1), ranked(2), approved(3)
//note that beatmapId and mapsetId change thumbnail
echo "\r\n";
//online offset, empty should be fine
echo "\r\n";
/*
song name + artist, format [data]item|[data]item
size: (float)
bold: (bool)
colour: (byte.byte.byte)
wait: (int)		//wait ms before showing