function SaveInfos()
{
    $emule = new EmuleTelnet();
    $uid = $_GET["uid"];
    if (!$emule->ok) {
        echo $emule->errstr;
        return;
    }
    $MldonkeyActivate = $_GET["MldonkeyActivate"];
    unset($_SESSION["MLDONKEY_{$uid}"]);
    if ($MldonkeyActivate == 0) {
        $emule->UserDelete($uid);
        return;
    } else {
        $emule->UserAdd($uid, $_GET["max_downloads"]);
    }
}
示例#2
0
function ForceDeleteEDKUser()
{
    $ml = new EmuleTelnet();
    $ml->UserDelete($_GET["ForceDeleteEDKUser"]);
}