Exemple #1
0
     } elseif ($_GET['clanid'] != $auth['clanid'] and $auth['type'] < 2) {
         $func->information(t('Du bist nicht berechtigt das Passwort dieses Clans zu ändern'), "index.php?mod=home");
     } else {
         include_once 'inc/classes/class_masterform.php';
         $mf = new masterform();
         if ($auth['type'] < 2) {
             $mf->AddField(t('Dezeitiges Passwort'), 'old_password', IS_PASSWORD, '', FIELD_OPTIONAL, 'CheckClanPW');
         }
         $mf->AddField(t('Neues Passwort'), 'password', IS_NEW_PASSWORD);
         if ($mf->SendForm('index.php?mod=clanmgr&action=clanmgr&step=10', 'clan', 'clanid', $_GET['clanid'])) {
             include_once "modules/mail/class_mail.php";
             $mail = new mail();
             // Send information mail to all clan members
             $clanuser = $db->qry("SELECT userid, username, email FROM %prefix%user WHERE clanid=%int%", $_GET['clanid']);
             while ($data = $db->fetch_array($clanuser)) {
                 $mail->create_mail($auth['userid'], $data['userid'], t('Clanpasswort geändert'), t('Das Clanpasswort wurde durch den Benutzer %1 in "%2" geändert', array($auth['username'], $_POST['password_original'])));
                 $mail->create_inet_mail($data['username'], $data['email'], t('Clanpasswort geändert'), t('Das Clanpasswort wurde durch den Benutzer %1 in "%2" geändert', array($auth['username'], $_POST['password_original'])), $cfg["sys_party_mail"]);
             }
             $func->log_event(t('Das Clanpasswort wurde durch den Benutzer %1 geändert', $auth['username']), 1, t('clanmgr'));
         }
     }
     break;
     // Delete
 // Delete
 case 20:
     if ($auth['type'] >= 3) {
         if ($_GET['clanid']) {
             $_POST['action'][$_GET['clanid']] = 1;
         }
         if ($_POST['action']) {
             foreach ($_POST['action'] as $key => $val) {