Hooi!
Ik heb 2 vraagjes.
Als eerst wil ik vragen of jullie kunnen fixen dat ik normaal enters kan doen zonder
enzo.
Dat moet nu namelijk wel. Ook werkt die wysiwyg editor niet. Dus die mag er ook uit
En nu vraag 2. Ik wil vraag dat je dubbele nieuws titels kan doen. Dat is dit:
want zelf kom ik er niet uit
Als je de
s ook gefixt krijgt krijg je 0.20 beloning
Ik heb 2 vraagjes.
Als eerst wil ik vragen of jullie kunnen fixen dat ik normaal enters kan doen zonder
enzo.
Dat moet nu namelijk wel. Ook werkt die wysiwyg editor niet. Dus die mag er ook uit

En nu vraag 2. Ik wil vraag dat je dubbele nieuws titels kan doen. Dat is dit:
}elseif(eregi("Duplicate",mysql_error())) {
echo "Deze titel komt al voor in het nieuws archief.<br />Kies een andere.<br /><a href="javascript:history.go(-1)">Ga terug</a>"; want zelf kom ik er niet uit

Als je de
s ook gefixt krijgt krijg je 0.20 beloning

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]admin[/COLOR][COLOR= #007700]]) ||[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nieuwsreporter[/COLOR][COLOR= #007700]]) ||[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]moderator[/COLOR][COLOR= #007700]]) ||[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]shopbeheer[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/class"]class[/URL] nieuws [COLOR= #007700]{
function[/COLOR] nieuwsToevoegen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$categorie[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$langbericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$actief[/COLOR][COLOR= #007700]) {[/COLOR]
[COLOR= #0000BB]$titel[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]75[/COLOR][COLOR= #007700]));[/COLOR]
[COLOR= #0000BB]$categorie[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$categorie[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]75[/COLOR][COLOR= #007700]));[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]5000[/COLOR][COLOR= #007700]));[/COLOR]
[COLOR= #0000BB]$langbericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$langbericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]5000[/COLOR][COLOR= #007700]));[/COLOR]
[COLOR= #0000BB]$actief[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$actief[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]3[/COLOR][COLOR= #007700]));[/COLOR]
[URL="http://www.php.net/setlocale"]setlocale[/URL][COLOR= #007700]([/COLOR]LC_ALL[COLOR= #007700],[/COLOR] [COLOR= #DD0000]nl_NL[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO admin_log (gebruikersnaam,datum,beschrijving,sessie_ip) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]",NOW(),Nieuws bericht gepost., "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO nieuws_berichten (titel,categorie,bericht,langbericht,actief,datum,member_id) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$categorie[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$langbericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$actief[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"y-m-d H:i:s"[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]() ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Er is succesvol een nieuwsitem aangemaakt.<br /><strong>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"</strong><br /><a href="javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/eregi"]eregi[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Duplicate"[/COLOR][COLOR= #007700],[/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]())) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Deze titel komt al voor in het nieuws archief.<br />Kies een andere.<br /><a href="javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{
}
}
function[/COLOR] nieuwsWijzigen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$categorie[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$langbericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$actief[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$nieuws_id[/COLOR][COLOR= #007700]) {[/COLOR]
[COLOR= #0000BB]$titel[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]75[/COLOR][COLOR= #007700]));[/COLOR]
[COLOR= #0000BB]$categorie[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$categorie[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]75[/COLOR][COLOR= #007700]));[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]99999[/COLOR][COLOR= #007700]));[/COLOR]
[COLOR= #0000BB]$langbericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$langbericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]99999[/COLOR][COLOR= #007700]));[/COLOR]
[COLOR= #0000BB]$actief[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$actief[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]3[/COLOR][COLOR= #007700]));[/COLOR]
[COLOR= #0000BB]$nieuws_id[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$nieuws_id[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]30[/COLOR][COLOR= #007700]));[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO admin_log (gebruikersnaam,datum,beschrijving,sessie_ip) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]",NOW(),Nieuwsbericht gewijzicht., "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE nieuws_berichten SET titel="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",categorie="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$categorie[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",bericht="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",langbericht="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$langbericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",actief="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$actief[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE nieuws_id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nieuws_id[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" ORDER BY datum DESC"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]() ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Dit nieuwsitem is succesvol gewijzigd.<br /><strong>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"</strong><br /><a href="javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/eregi"]eregi[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Duplicate"[/COLOR][COLOR= #007700],[/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]())) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Deze titel komt al voor in het nieuws archief.<br />Kies een andere.<br /><a href="javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Er is iets fout gegaan.<br /><a href="javascript:history.go(-2)">Ga terug</a>"[/COLOR][COLOR= #007700];
}
}
function[/COLOR] nieuwsVerwijderen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$nieuws_id[/COLOR][COLOR= #007700]) {[/COLOR]
[COLOR= #0000BB]$nieuws_id[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$nieuws_id[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]30[/COLOR][COLOR= #007700]));[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO admin_log (gebruikersnaam,datum,beschrijving,sessie_ip) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]",NOW(),Nieuwsbericht verwijdert., "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"DELETE FROM nieuws_berichten WHERE nieuws_id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nieuws_id[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]() ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Dit nieuwsitem is succesvol verwijderd.<br /><a href="javascript:history.go(-2)">Ga terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Er is iets fout gegaan, Misschien bestaat hij niet meer.<br><a href="javascript:history.go(-1)">Ga terug</a>"[/COLOR][COLOR= #007700];
}
}[/COLOR]
[COLOR= #FF8000]// nieuwe function[/COLOR]
[COLOR= #007700]}[/COLOR]
[COLOR= #0000BB]$nieuws[/COLOR] [COLOR= #007700]= new[/COLOR] nieuws[COLOR= #007700]();[/COLOR]
?>
<script type="text/javascript" src="editor/scripts/wysiwyg.js"></script>
<script type="text/javascript" src="editor/scripts/wysiwyg-settings.js"></script>
<!--
Attach the editor on the textareas
-->
<script type="text/javascript">
// Use it to attach the editor to all textareas with full featured setup
//WYSIWYG.attach(all, full);
// Use it to attach the editor directly to a defined textarea
WYSIWYG.attach(bericht,small); // default setup
WYSIWYG.attach(langbericht,small); // default setup
</script>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]a[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]a[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"nieuws"[/COLOR] [COLOR= #007700]&&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]s[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]s[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"toevoegen"[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]toevoegen[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$nieuws[/COLOR][COLOR= #007700]->[/COLOR]nieuwsToevoegen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]categorie[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]langbericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actief[/COLOR][COLOR= #007700]]);
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>
<form action="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]][/COLOR] ?>?p=admin_nieuws&a=nieuws&s=toevoegen" method="post">
<table width="300">
<tr><b>Let op: Heb jij een plaatje? <Br>Upload deze via: <a href="upload_medewerkers_.php" target="_blank">upload_medewerkers_.php</a></b>
<td>Titel</td>
<td><input type="text" name="titel" maxlength="25" /></td>
</tr>
<tr>
<td>Categorie:</td>
<td><select name="categorie" size="1">
<option selected="selected" disabled="disabled">Categorie</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/nl.png" border="0" />">Nederland</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/fail.png" border="0" />">Bug/fail</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/com.png" border="0" />">Engeland</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/br.png" border="0" />">Brazili</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/de.png" border="0" />">Duitsland</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/no.png" border="0" />">Norwegen</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/ch.png" border="0" />">Zwitserland</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/es.png" border="0" />">Spanje</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/dk.png" border="0" />">Denemarken</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/fi.png" border="0" />">Finland</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/it.png" border="0" />">Itali</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/fr.png" border="0" />">Frankrijk</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/up.png" border="0" />">Updates</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/si.png" border="0" />">Habbotjes.be</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/sh.png" border="0" />">Shop nieuws</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/zw.png" border="0" />">Zweden</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/ov.png" border="0" />">Overig</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/co.png" border="0" />">competitie</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/in.png" border="0" />">Interview</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/st.png" border="0" />">Strip</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/lo.png" border="0" />">Loterij</option>
</select></td>
</tr>
<tr>
<td colspan="2">Kort Bericht</td>
</tr>
<tr>
<td colspan="2"><textarea id="bericht" name="bericht" style="background:#FFFFFF;" cols="60" rows="20"></textarea></td>
</tr>
<tr>
<td colspan="2">Lang Bericht (<a href="http://www.habbotjes.be/code/html.php" class="con"><b>Klik voor html codes!)</b></a></td>
</tr>
<tr>
<td colspan="2"><textarea id="langbericht" name="langbericht" style="background:#FFFFFF;" cols="60" rows="20"></textarea></td>
</tr>
<tr>
<td>Aan of uit?</td>
<td><input type="radio" checked="checked" name="actief" value="aan" /> Aan <input type="radio" name="actief" value="uit" /> Uit </td>
</tr>
<tr>
<th colspan="2"><input type="submit" value="Toevoegen" name="toevoegen" /></th>
</tr>
</table>
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]s[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"wijzigen"[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wijzigen[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$nieuws[/COLOR][COLOR= #007700]->[/COLOR]nieuwsWijzigen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]categorie[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]langbericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actief[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nieuws_id[/COLOR][COLOR= #007700]]);
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][COLOR= #007700]])) {[/COLOR]
[COLOR= #0000BB]$nid[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]30[/COLOR][COLOR= #007700]));[/COLOR]
[COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM nieuws_berichten WHERE nieuws_id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nid[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" ORDER BY datum DESC"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]);[/COLOR]
?>
<form action="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]][/COLOR] ?>?p=admin_nieuws&a=nieuws&s=wijzigen" method="post">
<input type="hidden" name="nieuws_id" value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][COLOR= #007700]];[/COLOR] ?>" />
<table width="300">
<tr><b>Let op: Heb jij een plaatje? <Br>Upload deze via: <a href="http://www.habbotjes.be/upload.php" target="_blank">http://www.habbotjes.be/upload.php</a></b>
<td>Titel</td>
<td><input type="text" name="titel" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"value=""[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]"""[/COLOR][COLOR= #007700];[/COLOR] ?> maxlength="25" /></td>
</tr>
<tr>
<td>Categorie:</td>
<td><select name="categorie" size="1">
<option selected="selected" disabled="disabled">Categorie</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/nl.png" border="0" />">Nederland</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/fail.png" border="0" />">Bug/fail</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/com.png" border="0" />">Engeland</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/br.png" border="0" />">Brazili</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/de.png" border="0" />">Duitsland</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/no.png" border="0" />">Norwegen</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/ch.png" border="0" />">Zwitserland</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/es.png" border="0" />">Spanje</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/dk.png" border="0" />">Denemarken</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/fi.png" border="0" />">Finland</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/it.png" border="0" />">Itali</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/fr.png" border="0" />">Frankrijk</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/up.png" border="0" />">Updates</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/si.png" border="0" />">Habbotjes.be</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/sh.png" border="0" />">Shop nieuws</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/zw.png" border="0" />">Zweden</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/ov.png" border="0" />">Overig</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/co.png" border="0" />">competitie</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/in.png" border="0" />">Interview</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/st.png" border="0" />">Strip</option>
<option value="<img src="http://www.habbotjes.be/img/nieuws/lo.png" border="0" />">Loterij</option>
</select></td>
</tr>
<tr>
<td colspan="2">Kort Bericht</td>
</tr>
<tr>
<td colspan="2"><textarea id="bericht" name="bericht" style="background:#FFFFFF;" cols="60" rows="20">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]);[/COLOR] ?></textarea></td>
</tr>
<tr>
<td colspan="2">Lang Bericht (<a href="http://www.habbotjes.be/code/html.php" class="con"><b>Klik voor html codes!)</b></a></td>
</tr>
<tr>
<td colspan="2"><textarea id="langbericht" name="langbericht" style="background:#FFFFFF;" cols="60" rows="20">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]langbericht[/COLOR][COLOR= #007700]]);[/COLOR] ?></textarea></td>
</tr>
<tr>
<td>Aan of uit?</td>
<td><input type="radio" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actief[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"aan"[/COLOR][COLOR= #007700])[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"checked="checked""[/COLOR][COLOR= #007700];[/COLOR] ?> name="actief" value="aan" /> Aan <input type="radio" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actief[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"uit"[/COLOR][COLOR= #007700])[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"checked="checked""[/COLOR][COLOR= #007700];[/COLOR] ?> name="actief" value="uit" /> Uit </td>
</tr>
<tr>
<th colspan="2"><input type="submit" value="Wijzigen" name="wijzigen" /></th>
</tr>
</table>
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM nieuws_berichten ORDER BY datum DESC"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<table width="540">
<tr>
<td>Titel</td>
<td>Actief</td>
<td>Wijzigen/verwijderen</td>
</tr>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<tr>
<td>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</td>
<td>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actief[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</td>
<td><a href=?p=admin_nieuws&a=nieuws&s=wijzigen&nid="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nieuws_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]">Wijzigen</a><br />
<a href=?p=admin_nieuws&a=nieuws&s=verwijderen&nid="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nieuws_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]">Verwijderen</a>
</td>
</tr>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</table>"[/COLOR][COLOR= #007700];
}
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]s[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"verwijderen"[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]verwijderen[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$nieuws[/COLOR][COLOR= #007700]->[/COLOR]nieuwsVerwijderen[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nieuws_id[/COLOR][COLOR= #007700]]);
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>
<form action="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]][/COLOR] ?>?p=admin_nieuws&a=nieuws&s=verwijderen" method="post">
<input type="hidden" value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][COLOR= #007700]][/COLOR] ?>" name="nieuws_id" />
<input type="submit" value="Verwijderen" name="verwijderen" />
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}
}
}
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"» <a href="?p=admin_nieuws&a=nieuws&s=toevoegen">Nieuws Toevoegen</a><br />
» <a href="?p=admin_nieuws&a=nieuws&s=wijzigen">Nieuws Wijzigen/Verwijderen</a><br />"[/COLOR][COLOR= #007700];
}
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Zou wel leuk zijn als je admin was.<br /><a href=# onclick=history.go(-1)>Ga terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR]
?>
<script language="javascript1.2">
generate_wysiwyg(bericht);
generate_wysiwyg(langbericht);
</script> 
