Пример #1
0
<?php

switch ($_GET['step']) {
    default:
        $dsp->NewContent(t('Email-Adresse verifizieren'), '');
        $user_data = $db->qry_first('SELECT 1 AS found FROM %prefix%user WHERE fcode = %string%', $_GET['verification_code']);
        if ($user_data['found'] and $_GET['verification_code'] != '') {
            $db->qry('UPDATE %prefix%user SET email_verified = 1, fcode = \'\' WHERE fcode = %string%', $_GET['verification_code']);
            $func->confirmation(t('Deine Email-Adresse wurde erfolgreich verifiziert. Vielen Dank!'), 'index.php');
        } else {
            $func->error(t('Der von dir Übermittelte Verifizierungscode ist inkorrekt! Bitte prüfe, ob du die URL komplett aus der Benachrichtigungs-Mail kopiert hast.'));
        }
        break;
    case 2:
        include_once "modules/usrmgr/class_usrmgr.php";
        $usrmgr = new UsrMgr();
        if ($usrmgr->SendVerificationEmail($_GET['userid'])) {
            $func->confirmation(t('Die Verifikations-Email ist versandt worden.'));
        }
        break;
}
Пример #2
0
<?php

include_once "modules/usrmgr/class_usrmgr.php";
$usrmgr = new UsrMgr();
include_once "inc/classes/class_gd.php";
$gd = new gd();
function Update($id)
{
    global $mf, $db, $auth, $authentication, $party, $usrmgr, $func, $cfg, $signon;
    // Clan-Management
    include_once "modules/clanmgr/class_clan.php";
    $clan = new Clan();
    if (ShowField('clan')) {
        if ($_POST['new_clan_select']) {
            $clan->Add($_POST['clan_new'], $id, $_POST["clanurl"], $_POST["newclanpw"]);
        } elseif ($_POST['clan']) {
            $clan->AddMember($_POST['clan'], $id);
        } elseif (isset($_POST['clan'])) {
            $clan->RemoveMember($id);
        }
    }
    // Update User-Perissions
    if ($id) {
        $db->qry("DELETE FROM %prefix%user_permissions WHERE userid = %int%", $id);
        if ($_POST["permissions"]) {
            foreach ($_POST["permissions"] as $perm) {
                $db->qry("INSERT INTO %prefix%user_permissions SET module = %string%, userid = %int%", $perm, $id);
            }
        }
    }
    // If new user has been added
Пример #3
0
<?php

include_once 'modules/usrmgr/class_usrmgr.php';
$UsrMgr = new UsrMgr();
switch ($_GET['step']) {
    case 10:
        if (!$_POST['action'] and $_GET['userid']) {
            $_POST['action'][$_GET['userid']] = 1;
        }
        $err = '';
        foreach ($_POST['action'] as $key => $val) {
            if ($key == $auth['userid']) {
                $err = t('Du kannst nicht deinen eigenen Account sperren');
                break;
            }
        }
        if ($err) {
            $func->information($err);
        } else {
            foreach ($_POST['action'] as $key => $val) {
                $UsrMgr->LockAccount($key);
            }
            $func->confirmation(t('Accounts wurden gesperrt'));
        }
        break;
    case 11:
        if (!$_POST['action'] and $_GET['userid']) {
            $_POST['action'][$_GET['userid']] = 1;
        }
        $err = '';
        foreach ($_POST['action'] as $key => $val) {