aylardir bir php script ariyordum en sonunda buldum fakat kurdugum php site icinde uyelerin ozel haberlesmesi icin bi dosya eksik dosyanin adi priveberichten.php bunuda uzun aramalarima ragmen en sonunda buldum fakat eksik oldugu icin calsitiramadim asagida kodlarini vericegim bu modulu duzeltip verirseniz cok sevinicem yalniz yazilarin cogu hollandaca takildiginiz yer olursa sorun ben turkceye ceviricem ama scriptin daha cok bozulmasindan
korkuyorum.
kod:1
<?
session_start();
if(session_is_registered('memberid')){
require("config.php");
// Verwijder deze comment en de onderstaande regel als je een eigen stylesheet gebruikt...
echo "<link rel=\"stylesheet\" content=\"text/css\" href=\"style.css\">";
?>
<script language="javascript">
function verwijder(bericht, url)
{
if(confirm(bericht)) location.href = url;
}
function icon(theicon)
{
document.formulier.bericht.value += ""+theicon;
document.formulier.bericht.focus();
}
</script>
<?
if(!$new AND !$send AND !$id AND !$deleteall AND !$delete AND !$block AND !$saveblock AND !$reply){
$query = mysql_query("SELECT * FROM priveberichten WHERE naar = '$memberid' ORDER BY id DESC");
$result = mysql_num_rows($query);
if(!$result){
echo "<b>Geen privé- berichten in je inbox...</b><br><br>";
}
else{
?>
<b><? echo $result ?> privé- berichten in je inbox...</b><hr>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="75%"">
<tr>
<td width="5%"><b>Gelezen</b></td>
<td width="10%"><b>Auteur</b></td>
<td width="10%"><b>Onderwerp</b></td>
<td width="10%"><b>Datum</b></td>
</tr>
<?
while($object = mysql_fetch_object($query)){
?>
<tr>
<td width="5%"><? if($object->gelezen){ echo "Ja"; } else{ echo "Nee"; } ?></td>
<td width="10%"><?
$fuck = mysql_query("SELECT * FROM members WHERE memberid = '$object->van'");
while($you = mysql_fetch_object($fuck)){
$auteur = $you->naam;
}
echo $auteur;
?></td>
<td width="10%"><a href="?id=<? echo $object->id ?>"><? echo $object->onderwerp ?></a></td>
<td width="10%"><? echo $object->datum ?></td>
</tr>
<?
}
echo "</table><hr>";
}
?>
<img src="img/new.gif"> <a href="?new=1">Nieuw bericht</a><br>
<img src="img/delete.gif"> <a href="javascript:verwijder('Weet je zeker dat je alle berichten in je inbox wilt verwijderen?','?deleteall=1')">Verwijder alle berichten</a><br>
<img src="img/block.gif"> <a href="?block=1">Blokkeer members</a>
<?
}
if($new){
if($reply){
$query = mysql_query("SELECT * FROM priveberichten WHERE id = '$reply'");
while($object = mysql_fetch_object($query)){
$object->onderwerp = str_replace("Re: ", "", $object->onderwerp);
$titel = "Re: $object->onderwerp";
$naar = $object->van;
}
}
?>
Stel hier een nieuw bericht op dat je vervolgens naar een member wilt gaan zenden...<br><br>
<form method="POST" action="?send=1" name=formulier>
Member ID: <input type="text" name="naar" size="5" value="<? echo $naar ?>"> ( <a href="profiel.php">Zoek member ID</a> )<br>
Onderwerp: <input type="text" name="onderwerp" size="20" maxlength="100" value="<? echo $titel ?>"><br>
<input type="button" style="font-weight: bold; width: 30px" value="B" onclick="javascript:icon(' ')">
<input type="button" style="font-style: italic; width: 30px" value="I " onclick="javascript:icon(' ')">
<input type="button" style="text-decoraton: underline; width: 30px" value="U" onclick="javascript:icon(' ')">
<input type="button" style="color: #0000FF" value="Color" onclick="javascript:icon('[color="#FF9900"][/color] ')">
<input type="button" style="font-family: Courier New" value="Code" onclick="javascript:icon('
')"><br>
<textarea rows="7" name="bericht" cols="40"></textarea><br>
<a href="javascript:icon(';-)')"><img border="0" src="img/smiles/wink.gif"></a><a href="javascript:icon(':-|')"><img border="0" src="img/smiles/unsure.gif"></a><a href="javascript:icon('')"><img border="0" src="img/smiles/tongue.gif"></a><a href="javascript:icon('')"><img border="0" src="img/smiles/smile.gif"></a><a href="javascript:icon('')"><img border="0" src="img/smiles/sad.gif"></a><a href="javascript:icon('%-)')"><img border="0" src="img/smiles/rolleyes.gif"></a><a href="javascript:icon('|8|')"><img border="0" src="img/smiles/ph34r.gif"></a><a href="javascript:icon(':-O')"><img border="0" src="img/smiles/ohmy.gif"></a><a href="javascript:icon(':-@')"><img border="0" src="img/smiles/mad.gif"></a><a href="javascript:icon(':-]')"><img border="0" src="img/smiles/laugh.gif"></a><a href="javascript:icon(':-?')"><img border="0" src="img/smiles/huh.gif"></a><a href="javascript:icon(':-\\')"><img border="0" src="img/smiles/dry.gif"></a><a href="javascript:icon('8)')"><img border="0" src="img/smiles/cool.gif"></a><a href="javascript:icon('8-/')"><img border="0" src="img/smiles/blink.gif"></a><a href="javascript:icon(':-D')"><img border="0" src="img/smiles/biggrin.gif"></a><br>
<input type="submit" value="Verstuur"> <input type="reset" value="Wis velden"></p>
</form>
<?
}
if($send){
if(!$naar || !$onderwerp || !$bericht){
echo "Alle velden dienen ingevuld te zijn...<br><br><a href=\"javascript:history.go(-1)\">Ga terug</a>";
}
else{
$query = mysql_query("SELECT * FROM members WHERE memberid = '$memberid'");
$result = mysql_num_rows($query);
while($object = mysql_fetch_object($query)){
$ikblock = $object->blockpm;
$error = $object->pm;
$geblokkeerd = $object->blockpm;
}
korkuyorum.
kod:1
<?
session_start();
if(session_is_registered('memberid')){
require("config.php");
// Verwijder deze comment en de onderstaande regel als je een eigen stylesheet gebruikt...
echo "<link rel=\"stylesheet\" content=\"text/css\" href=\"style.css\">";
?>
<script language="javascript">
function verwijder(bericht, url)
{
if(confirm(bericht)) location.href = url;
}
function icon(theicon)
{
document.formulier.bericht.value += ""+theicon;
document.formulier.bericht.focus();
}
</script>
<?
if(!$new AND !$send AND !$id AND !$deleteall AND !$delete AND !$block AND !$saveblock AND !$reply){
$query = mysql_query("SELECT * FROM priveberichten WHERE naar = '$memberid' ORDER BY id DESC");
$result = mysql_num_rows($query);
if(!$result){
echo "<b>Geen privé- berichten in je inbox...</b><br><br>";
}
else{
?>
<b><? echo $result ?> privé- berichten in je inbox...</b><hr>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="75%"">
<tr>
<td width="5%"><b>Gelezen</b></td>
<td width="10%"><b>Auteur</b></td>
<td width="10%"><b>Onderwerp</b></td>
<td width="10%"><b>Datum</b></td>
</tr>
<?
while($object = mysql_fetch_object($query)){
?>
<tr>
<td width="5%"><? if($object->gelezen){ echo "Ja"; } else{ echo "Nee"; } ?></td>
<td width="10%"><?
$fuck = mysql_query("SELECT * FROM members WHERE memberid = '$object->van'");
while($you = mysql_fetch_object($fuck)){
$auteur = $you->naam;
}
echo $auteur;
?></td>
<td width="10%"><a href="?id=<? echo $object->id ?>"><? echo $object->onderwerp ?></a></td>
<td width="10%"><? echo $object->datum ?></td>
</tr>
<?
}
echo "</table><hr>";
}
?>
<img src="img/new.gif"> <a href="?new=1">Nieuw bericht</a><br>
<img src="img/delete.gif"> <a href="javascript:verwijder('Weet je zeker dat je alle berichten in je inbox wilt verwijderen?','?deleteall=1')">Verwijder alle berichten</a><br>
<img src="img/block.gif"> <a href="?block=1">Blokkeer members</a>
<?
}
if($new){
if($reply){
$query = mysql_query("SELECT * FROM priveberichten WHERE id = '$reply'");
while($object = mysql_fetch_object($query)){
$object->onderwerp = str_replace("Re: ", "", $object->onderwerp);
$titel = "Re: $object->onderwerp";
$naar = $object->van;
}
}
?>
Stel hier een nieuw bericht op dat je vervolgens naar een member wilt gaan zenden...<br><br>
<form method="POST" action="?send=1" name=formulier>
Member ID: <input type="text" name="naar" size="5" value="<? echo $naar ?>"> ( <a href="profiel.php">Zoek member ID</a> )<br>
Onderwerp: <input type="text" name="onderwerp" size="20" maxlength="100" value="<? echo $titel ?>"><br>
<input type="button" style="font-weight: bold; width: 30px" value="B" onclick="javascript:icon(' ')">
<input type="button" style="font-style: italic; width: 30px" value="I " onclick="javascript:icon(' ')">
<input type="button" style="text-decoraton: underline; width: 30px" value="U" onclick="javascript:icon(' ')">
<input type="button" style="color: #0000FF" value="Color" onclick="javascript:icon('[color="#FF9900"][/color] ')">
<input type="button" style="font-family: Courier New" value="Code" onclick="javascript:icon('
Kod:
<textarea rows="7" name="bericht" cols="40"></textarea><br>
<a href="javascript:icon(';-)')"><img border="0" src="img/smiles/wink.gif"></a><a href="javascript:icon(':-|')"><img border="0" src="img/smiles/unsure.gif"></a><a href="javascript:icon('')"><img border="0" src="img/smiles/tongue.gif"></a><a href="javascript:icon('')"><img border="0" src="img/smiles/smile.gif"></a><a href="javascript:icon('')"><img border="0" src="img/smiles/sad.gif"></a><a href="javascript:icon('%-)')"><img border="0" src="img/smiles/rolleyes.gif"></a><a href="javascript:icon('|8|')"><img border="0" src="img/smiles/ph34r.gif"></a><a href="javascript:icon(':-O')"><img border="0" src="img/smiles/ohmy.gif"></a><a href="javascript:icon(':-@')"><img border="0" src="img/smiles/mad.gif"></a><a href="javascript:icon(':-]')"><img border="0" src="img/smiles/laugh.gif"></a><a href="javascript:icon(':-?')"><img border="0" src="img/smiles/huh.gif"></a><a href="javascript:icon(':-\\')"><img border="0" src="img/smiles/dry.gif"></a><a href="javascript:icon('8)')"><img border="0" src="img/smiles/cool.gif"></a><a href="javascript:icon('8-/')"><img border="0" src="img/smiles/blink.gif"></a><a href="javascript:icon(':-D')"><img border="0" src="img/smiles/biggrin.gif"></a><br>
<input type="submit" value="Verstuur"> <input type="reset" value="Wis velden"></p>
</form>
<?
}
if($send){
if(!$naar || !$onderwerp || !$bericht){
echo "Alle velden dienen ingevuld te zijn...<br><br><a href=\"javascript:history.go(-1)\">Ga terug</a>";
}
else{
$query = mysql_query("SELECT * FROM members WHERE memberid = '$memberid'");
$result = mysql_num_rows($query);
while($object = mysql_fetch_object($query)){
$ikblock = $object->blockpm;
$error = $object->pm;
$geblokkeerd = $object->blockpm;
}