Commits

Kevin Read  committed 863aa81

Updated mass mailer

  • Participants
  • Parent commits 1a779d4

Comments (0)

Files changed (1)

File brain/portaladmin.php

 			$error[0] = "DB-Fehler: ".$authdb->error ();
 	}
 
+	if ($_POST['emailtarget'] == "group")
+	{
+		$query = 'select user,email from user where user not like "\_d%" and userflags&256=256';
+		
+		$res = $authdb->query ($query);
+		if (!$res)
+			$error[0] = "DB-Fehler: ".$authdb->error ();
+	}
+
 	if (isset ($res) && !count ($error))
 	{
 		if (isset ($_POST['SendForReal']))
 <td><input type="radio" id="emailReallyAll" name="emailtarget" value="really_all" <?php if ($_POST['emailtarget'] == "really_all") echo "checked"; ?>></td></tr>
 <tr><td><label for="emailAll">Mail an alle Spieler versenden, die Mails wünschen</label></td>
 <td><input type="radio" id="emailAll" name="emailtarget" value="all" <?php if ($_POST['emailtarget'] == "all") echo "checked"; ?>></td></tr>
+<tr><td><label for="emailAll">Mail an alle Vereinsmitglieder senden</label></td>
+<td><input type="radio" id="emailGroup" name="emailtarget" value="group" <?php if ($_POST['emailtarget'] == "group") echo "checked"; ?>></td></tr>
 <tr><td><label for="emailOne">Mail nur an einen Account senden</label></td>
 <td><input type="radio" id="emailOne" name="emailtarget" value="onlyone" <?php if ($_POST['emailtarget'] == "onlyone") echo "checked"; ?>><br>
 Und zwar an <input name="emailaccount" value="<?php echo $_POST['emailaccount']; ?>" type="text" length="20">