$oR3DCQuery->SetPlayerCreditsInit($_SESSION['id']);
    }
    if (!$bCronEnabled) {
        if ($oR3DCQuery->ELOIsActive()) {
            $oR3DCQuery->ELOCreateRatings();
        }
        $oR3DCQuery->MangeGameTimeOuts();
    }
}
///////////////////////////////////////////////////////////////////////
$txtadd = trim($_POST['txtadd']);
$updated = false;
//Update the buddy list
if ($txtadd != "") {
    //remove all
    $oBuddyList->ClearBuddyList($config, $_SESSION['id']);
    //Add the new
    for ($i = 0; $i < count($_POST['lstBuddy']); $i++) {
        if (trim($_POST['lstBuddy'][$i]) != "") {
            //echo "||".$_POST['lstBuddy'][$i]."||";
            $oBuddyList->AddBuddyToList($config, $_SESSION['id'], trim($_POST['lstBuddy'][$i]));
        }
    }
    $updated = true;
}
?>

<html>
<head>
<title><?php 
echo GetStringFromStringTable("IDS_PAGETITLES_22", $config);