Wie kan dit script voor banditi aanpassen
PHP
<?php
set_time_limit(0); //Als je een foutmelding krijgt: "Warning: set_time_limit() has been disabled for security reasons". Haal deze regel dan weg
include('../_include-config.php');
//Indien geen admin -> stop script
if($data->login != $admin1 && $data->login != $admin2)
{
exit;
}
//Daardwerkelijk versturen van de mailing
if (isset($_POST['mailing']))
{
$rMember = mysql_query("SELECT login, email FROM `[users]` WHERE `nieuwsbrief` = 1");
while ($aMember = mysql_fetch_assoc($rMember))
{
$sBericht = $_POST['mailing'];
$sBericht = str_replace('{naam}', $aMember['login'], $sBericht);
$sBericht = str_replace('{sitelink}', $sitelink, $sBericht);
@mail($aMember['email'], $_POST['titel'], $sBericht, 'From: $title <norelpy@$title>');
echo 'verzonden';
}
}
else
//weergave mailing-sjabloon
{
?>
<script language="javascript">
function icon(theicon)
{
document.form.mailing.value += ""+theicon;
document.form.mailing.focus();
}
</script>
<link rel="stylesheet" type="text/css" href="<?php echo $sitelink;?>/layout/layout<?php echo $page->layout; ?>/css/css.css">
<form method="post" action="" name="form">
<table align="center" width=100%>
<tr>
<td class="subTitle">Massa Email - Nieuwsbrief</b></td>
</tr>
<tr>
<td class=mainTxt>
<input type="button" value="Afmeld link" style="font-weight:bold; width: 100px" onClick="javascript:icon('Afmelden kan via : {sitelink}/afmelden.php')">
<input type="button" value="Naam lid" style="font-weight:bold; width: 100px" onClick="javascript:icon('{naam}')">
</td>
</tr>
<tr>
<td class="mainTxt">
Titel: <input type="text" name="titel" value="<?php $title; ?> Nieuwsbrief">
Bericht:<br>
<textarea cols=40 rows=10 name="mailing">Beste {naam}</textarea><br />
<input type="submit" value="Verstuur" name="submit">
</td>
</tr>
</table>
</form>
<?php
}
?>
Toon Meer
Hier kunnen jullie vast wel wat mee