massapm werkt niet goed kan ze niet aflezen
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?
require "include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_MODERATOR)
stderr("Error", "Access denied.");
stdhead("Mass PM");
if ($_POST['message'] != "")
{
$num=0;
foreach( array_keys($_POST) as $x)
{
if (substr($x,0,3) == "UC_"){
$querystring .= " OR class = ".constant($x);
$classnames .= substr($x,3).", ";
$num++;
}
}
if ($num == $_POST["numclasses"]){
$res = mysql_query("SELECT id FROM users");
$msg = $_POST['message'] . "\n\n ";
}else{
$res = mysql_query("SELECT id FROM users where id = 1".$querystring) or sqlerr(__FILE__, __LINE__);
$msg = $_POST['message'] . "\n\n " ;
}
if ($_POST["fromsystem"] == "yes"){ $sender_id="0";}else{$sender_id = $CURUSER["id"];}
while($arr = mysql_users($res))
{
mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES ($sender_id, $arr[0], '" . get_date_time() . "', " . sqlesc($msg) . ", $sender_id)") or sqlerr(__FILE__, __LINE__);
}
print("<b>Mass Private Message Dispatched.</b><br>");
}
?>
require "include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_MODERATOR)
stderr("Error", "Access denied.");
stdhead("Mass PM");
if ($_POST['message'] != "")
{
$num=0;
foreach( array_keys($_POST) as $x)
{
if (substr($x,0,3) == "UC_"){
$querystring .= " OR class = ".constant($x);
$classnames .= substr($x,3).", ";
$num++;
}
}
if ($num == $_POST["numclasses"]){
$res = mysql_query("SELECT id FROM users");
$msg = $_POST['message'] . "\n\n ";
}else{
$res = mysql_query("SELECT id FROM users where id = 1".$querystring) or sqlerr(__FILE__, __LINE__);
$msg = $_POST['message'] . "\n\n " ;
}
if ($_POST["fromsystem"] == "yes"){ $sender_id="0";}else{$sender_id = $CURUSER["id"];}
while($arr = mysql_users($res))
{
mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES ($sender_id, $arr[0], '" . get_date_time() . "', " . sqlesc($msg) . ", $sender_id)") or sqlerr(__FILE__, __LINE__);
}
print("<b>Mass Private Message Dispatched.</b><br>");
}
?>
<h1>Mass PM</h1>
<form method=post action="masspm.php">
<table border=1 cellspacing=0 cellpadding=5 class="main" >
<tr><td colspan=2 class="rowhead"><div align=left>Verzenden naar (de rangen waar een vinkje voor staat):</div></td></tr>
<tr><td colspan=2>
Code (php)
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
<?
$numclasses=0;
$constants = get_defined_constants ();
foreach( array_keys($constants) as $x)
{
if (substr($x,0,3) == "UC_"){
echo "<input name=\"".$x."\" type=\"checkbox\" value=1 checked>".substr($x,3)."<br>";
$numclasses++;
}
}
?>
$numclasses=0;
$constants = get_defined_constants ();
foreach( array_keys($constants) as $x)
{
if (substr($x,0,3) == "UC_"){
echo "<input name=\"".$x."\" type=\"checkbox\" value=1 checked>".substr($x,3)."<br>";
$numclasses++;
}
}
?>
<input type="hidden" name="numclasses" value="" />
</td></tr>
<tr><td class="rowhead">Bericht</td><td><textarea cols=60 rows=6 name="message"></textarea></td></tr>
<tr><td class="rowhead">Systeem</td><td><input type="checkbox" name="fromsystem" value="yes" />De afzender is 'dafladyextreme'</td>
<tr><td align="center" colspan=2><input type="submit" value="Versturen" class="btn" /></td></tr>
</table>
</form>
2 de probleem alls ik me pm box in gaat dan kan ik de pm.s niet wissen dan zegt die email staat niet ij je inbox er zit wat goed fout in me mail box
alvast bedankt
Gewijzigd op 01/01/1970 01:00:00 door Daborah
Er zijn nog geen reacties op dit bericht.