url bannen!

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

C# developer

Functie Als C# ontwikkelaar ben jij de spin in het web bij deze organisatie. Jij begeleidt en traint de field engineers die bij de klanten machines leveren en installeren. Daarnaast ondersteun jij de field engineers als zij bij de klant vastlopen bij het installeren van de machine m.b.t. software matige vragen. Jouw doel is dan ook om de technische kennis van de field engineers door middel van training zoveel mogelijk uit te breiden. Dit om ervoor te zorgen dat zij zelfstandiger software matige problemen kunnen oplossen. Ook ben jij verantwoordelijk voor het bedenken van software oplossingen voor klanten en dit

Bekijk vacature »

Teamlead PHP Developer

Functieomschrijving Voor een gewaardeerde werkgever in de buurt van Middelburg zijn wij op zoek naar een gemotiveerde teamlead PHP developer met affiniteit met Symfony/Laravel. Een enthousiast persoon die het ontwikkelteam komt versterken met het aanpakken van uitdagende projecten. Ben jij op zoek naar een uitdaging waar je de tijd en ruimte krijgt jezelf te ontwikkelen en je eigen IT-team aan te sturen? Lees dan snel verder! Die ga je doen: Bijdragen aan de implementatie van aanpassingen, verbeteringen en aanvullingen in de PHP based applicaties; Ontwikkeling en beheer van de serviceportal in Symfony en de webshops in de tweede versie van

Bekijk vacature »

Medior Java developer (fullstack)

Wat je gaat doen: Of beter nog, wat wil jij doen? Binnen DPA GEOS zijn we dan ook op zoek naar enthousiaste Java developers om ons development team te versterken. Als Java developer werk je in Agile/Scrum teams bij onze klanten en daarbij kun je eventueel ook andere ontwikkelaars begeleiden in het softwareontwikkelproces. Verder draag je positief bij aan de teamgeest binnen een projectteam en je kijkt verder dan je eigen rol. Je gaat software maken voor verschillende opdrachtgevers in jouw regio. Je bent een professional die het IT-vak serieus neemt en kwaliteit levert. Je leert snel vanwege je diepgaande

Bekijk vacature »

React developer Inhouse cloudplatform

Functie De functie: Als front-end developer kom je te werken naast 2 andere front-end/React developers, waaronder één senior. Een hele mooie kans dus om in korte tijd veel nieuwe kennis en ervaring op te doen. Ze hebben momenteel veel werk hierin en daarom willen ze het team graag uitbreiden. Het is van belang dat je, zeker gezien het vele thuiswerken, in ieder geval al een aantal projecten hebt gedaan in React. Taken waar je aan kunt denken zijn het ontwikkelen van client-applicaties o.b.v. HTML5, React en andere open standaarden. Ook ben je nauw betrokken bij het implementeren van designs o.b.v.

Bekijk vacature »

Oracle APEX developer

Wat je gaat doen: Als Oracle APEX ontwikkelaar bij DPA werk je samen met collega’s aan de meest interessante opdrachten. Je zult je ervaring met SQL, PL/SQL, JavaScript, HTML en CSS inzetten om wensen van opdrachtgevers te vertalen naar technische oplossingen. Je werk is heel afwisselend, omdat DPA zich niet beperkt tot een specifieke branche. Zo ben je de ene keer bezig binnen de zorgsector, de andere keer is dit bij de overheid. Wat we vragen: Klinkt goed? Voor deze functie breng je het volgende mee: Je hebt een hbo- of universitaire opleiding afgerond Je hebt 2 tot 5 jaar

Bekijk vacature »

Microsoft Acess Developer

Functieomschrijving Wat ga je doen? Heb jij ongeveer 3 jaar ervaring als Software Developer, en komen de volgende kennisgebieden jou niet vreemd voor: MS Acces, C# & SQL? Vind jij het daarnaast leuk om maatwerk software te ontwikkelen voor klanten in een bijzondere branche? Lees dan snel verder! Als developer ben jij samen met een gemotiveerd team van 10 collega’s verantwoordelijk voor het creëren van aangemeten software voor klanten. Je bent klantvriendelijk en oplossingsgericht ingesteld, omdat het essentieel is om de klanten zo goed mogelijk te helpen met hun uitdagingen. Het is mogelijk om vanuit huis je werkzaamheden uit te

Bekijk vacature »

SQL Developer

Functie omschrijving Altijd al willen werken bij een snelgroeiend bedrijf, actief in de logistieke sector? Dit is je kans! Ik ben op zoek naar een ervaren SQL Developer in de omgeving Tilburg. Dit bedrijf is gespecialiseerd in in de ontwikkeling van software en maatwerk oplossingen voor het automatiseren van logistieke processen. Klanten zijn o.a. BOL en andere grote distributiecentrums. Jouw taken worden vooral: Verantwoordelijk voor ontwikkelen van stored procedures, voor snelle afhandeling van data; Optimalisatie van de SQL query's en T-SQL query's; Jij gaat je bezig houden met ontwerpen, ontwikkelen en optimaliseren van de MS SQL Databases; In deze functie

Bekijk vacature »

Senior .NET developer

Functie As a Senior .NET developer you will work in our Research & development team. Our team consists of 17 colleagues! We are currently busy setting up a completely new architecture for a new product. We use VS2022 and .NET 6.0 for our new product. Your function is therefore mainly backend oriented. Since we develop measuring equipment for the chemical industry, it is also very important to develop high-quality software for its control. You are also responsible for designing, implementing and testing new features. For this position its also very important to ensure future-proof and sustainable architecture. Eisen - A

Bekijk vacature »

Frontend Developer - Leeuwarden

Frontend Developer – Leeuwarden Als Frontend Developer bouw jij mee aan het onderwijs van de toekomst! In een scrum team werken met jonge en enthousiaste collega’s, moderne technieken, ruimte voor eigen ontwikkeling en op een proactieve wijze kunnen meewerken aan innovatie binnen het onderwijs. Magister is het state-of-the-art softwarepakket dat scholen in het voortgezet onderwijs op alle fronten ontzorgt. Van leerlingenadministratie tot het ondersteunen van individuele leerlijnen, van toegang tot digitaal lesmateriaal tot het plannen van het lesrooster. In de Magister app bedient Magister ruim 2,5 miljoen gebruikers waarvan, dagelijks meer dan 600.000 unieke. Hiermee is Magister de absolute marktleider

Bekijk vacature »

Senior Fullstack Developer (GOLang, TypeScript)

Bedrijfsomschrijving Our client is one of the large worldwide accounting firms. Functieomschrijving We are looking for a senior (all-round) developer (Project On Demand / Tax Technology) Uses as much as possible technology in support of the development process: Git, Jenkins, Docker, npm, skaffold, helm, etc. We are looking for a real hands-on developer; ie not a team lead or other managerial-style role; Acts with integrity both internally and externally and takes personal responsibility in this respect; Curious about the developments within their field and driven to make a difference with the team; Able to empathize with colleagues and stakeholders and

Bekijk vacature »

Laravel developer

Zie jij mogelijkheden om onze tooling technisch te verbeteren en uit te bouwen? Over Jobmatix Jobmatix is een innovatieve en internationale speler op het gebied van jobmarketing. Onze jobmarketing automation tool helpt organisaties bij het aantrekken van nieuw talent door vacatures digitaal, geautomatiseerd en op een efficiënte manier te adverteren en onder de aandacht te brengen bij de doelgroep op 25+ jobboards. Volledig performance-based, waarbij organisaties betalen op basis van cost per click of cost per applicant. Maandelijks wordt onze jobmarketing automation tool al gebruikt door vele directe werkgevers, intermediairs en mediabureaus, waaronder Picnic, Rijkswaterstaat, AdverOnline, Schiphol, DPA, Teleperformance en

Bekijk vacature »

Developer Angular & Kotlin

Dit ga je doen Het (door)ontwikkelen van mobiele apps en webapplicaties; Het opstellen van technisch ontwerp en het bespreken van ontwerpen met de software architect; Het uitvoeren van werkzaamheden op het gebied van technisch testen; Het in de gaten houden van nieuwe ontwikkelingen op jouw vakgebied en het adviseren van de organisatie hierover. Hier ga je werken Het gaat om een bekend internationaal handelsbedrijf met ruim 800 medewerkers, verdeeld over verschillende deelbedrijven. Deze organisatie is van oorsprong een familiebedrijf, er wordt hard gewerkt, er heerst een no nonsense en doeners mentaliteit, een informele sfeer en er is een mix van

Bekijk vacature »

Full Stack Developer/ Applicatie Ontwikkelaar

Wat jij doet Als Applicatie Ontwikkelaar ben je onderdeel van het team die de Rimote omgeving ontwikkeld en onderhoud. Hierbij kan je denk aan de cloud, on premise en webapplicaties welke worden gebruikt in bijvoorbeeld industriële bakkerijen, biogasinstallaties en kwekerijen. Deze applicaties verzorgen (remote) de aansturing en monitoring van processen, machines en robots. Van a tot z ben je betrokken bij projecten. Dit betekent vanaf ontwerp tot oplevering. Je moet samen met jouw team een goed product neer zetten. Dit begint met het opzetten van het ontwerp. De basis van de software moet staan als een huis. Daarvoor moet jij

Bekijk vacature »

Productontwikkelaar Food

Wat ga je doen Als Productontwikkelaar Food ga je nieuwe producten ontwikkelen en bestaande producten verbeteren. Je bent hierbij betrokken bij het gehele proces: van productconcept naar proefreceptuur, het realiseren va het product (op kleine schaal) en het testen van producten in een productieomgeving. Verder: Bewaak je de status van verschillende fases van productontwikkeling en lever je tijdig de benodigde data aan Ben je bezig met de optimalisatie van oude en nieuwe recepturen Begeleid of organiseer je proefsessies (sensorisch onderzoek) in het team en/of bij klanten Onderhoud je contacten met de klanten, leveranciers van grondstoffen e.a. externe partijen Houd je

Bekijk vacature »

.NET developer

Functie Als .NET ontwikkelaar start jij in een multidisciplinair team met 7 ontwikkelaars. Dit team is verdeeld onder Front-end ontwikkelaars en backend developers. De backend developers werken voornamelijk aan desktop applicaties in combinatie met backend systemen. Hier ga jij dus ook mee aan de slag! Hierbij wordt voornamelijk gebruik gemaakt van C# .NET, WPF, UWP, XAML en MVVM. WPF, UWP, .NET Core, Azure Devops en Entity Framework. WPF en UWP worden dan ook voornamelijk gebruikt voor de user interface van de desktop applicatie. Het development team is dan ook erg gedreven m.b.t. het ontwikkelen van vooruitstrevende en innovatieve horeca automatiseringsoplossingen.

Bekijk vacature »

Pagina: 1 2 volgende »

Niels Born

Niels Born

13/11/2005 15:20:00
Quote Anchor link
Dag mensen,

Ik heb een gastenboekje gemaakt in php. Werkt allemaal perfect, heb alleen een probleempje. Ik wil dat mensen geen url kunnen invullen van hun msn space. Dit geeft namelijk moeilijkheden zoals gezeik over .net en inloggen op de msn storage site etc.
Heeft iemand een oplossing om die url's te bannen?!
Even te verduidelijking: het gaat hier om avatars!

Dit is het scriptje van verstuur:

<html>
<head>

<body bgcolor="#0099CC">

</head>

<body>

Code (php)
PHP script in nieuw venster Selecteer het PHP script
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php

$leeg
= "";      
$naam = $_POST['naam'];                      
$email = $_POST['email'];                      
$bericht = $_POST['bericht'];                    
$datum = date("H:i d-m-y");
$bericht = htmlentities($bericht);
$bericht = nl2br($bericht);
$bericht = stripslashes($bericht);
$bericht = ubb_smiley($bericht);
$ip = $REMOTE_ADDR;
$fotourl = $_POST['fotourl'];
$foto = "<img border=\"1px\" src=\"$fotourl\" height=\"120\">
"
;

if (empty($_POST["naam"]))  
    {
  
    die("<table border=\"0\" width=\"100%\" id=\"table1\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td>Je hebt je Naam niet ingevuld, Vul je Naam als nog in!
        <a href=\"gastenboek.htm\"><font color=\"#000000\">Klik Hier</font></a></td>
    </tr>
</table>
"
);  
    }
  

    elseif (empty($_POST["email"]))  
    {
  
    die("<table border=\"0\" width=\"100%\" id=\"table1\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td>Je hebt je Email niet ingevuld, Vul je Email als nog in!
        <a href=\"gastenboek.htm\"><font color=\"#000000\">Klik Hier</font></a></td>
    </tr>
</table>
"
);
  
    }
  

elseif (empty($_POST["bericht"]))  
    {
  
    die("<table border=\"0\" width=\"100%\" id=\"table1\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td>Je hebt je Bericht niet ingevuld, Vul je Bericht als nog in!
        <a href=\"gastenboek.htm\"><font color=\"#000000\">Klik Hier</font></a></td>
    </tr>
</table>
"
);
  
    }
  

elseif (empty($_POST['fotourl']))
    {

    $foto = ("<img border=\"0\" src=\"http://nielsborn.ni.funpic.org/beeld/plaatjes/nopic.bmp\" height=\"120\">");
    
    }


function
ubb_smiley ( $bericht )
{

     // ubb code    
    
    $bericht = preg_replace("/\[B\](?U)((.|\n|\r)*)\[\/B\]/", "<B>\\1</B>", $bericht);
    $bericht = preg_replace("/\[U\](?U)((.|\n|\r)*)\[\/U\]/", "<U>\\1</U>", $bericht);
    $bericht = preg_replace("/\[I\](?U)((.|\n|\r)*)\[\/I\]/", "<I>\\1</I>", $bericht);
    $bericht = preg_replace("/\[S\](?U)((.|\n|\r)*)\[\/S\]/", "<S>\\1</S>", $bericht);
    $bericht = eregi_replace("\\[COLOR=([^\\[]*)\\]([^\\[]*)\\[/COLOR\\]","<font color=\"\\1\">\\2</font>",$bericht);      
    $bericht = eregi_replace("\\[SIZE=([^\\[]*)\\]([^\\[]*)\\[/SIZE\\]","<font size=\"\\1\">\\2</font>",$bericht);
    $bericht = eregi_replace("\\[ALIGN=([^\\[]*)\\]([^\\[]*)\\[/ALIGN\\]","<p align=\"\\1\">\\2</p>",$bericht);    
    $bericht = eregi_replace("\\[EMAIL=([^\\[]*)\\]([^\\[]*)\\[/EMAIL\\]", "<a href=\"mailto:\\1\">\\2</a>",$bericht);
    $bericht = eregi_replace("\\[URL=([^\\[]*)\\]([^\\[]*)\\[/URL\\]","<a href=file://1 target=_blank>\\2</a>",$bericht);  ;
      
    //Smileys-code      
    $bericht = str_replace("(sp)","<img src=\"beeld/smileys/spook.gif\" alt=''>", $bericht);
    $bericht = str_replace("(bier)","<img src=\"beeld/smileys/bier.gif\" alt=''>", $bericht);
    $bericht = str_replace("(b)","<img src=\"beeld/smileys/bier.gif\" alt=''>", $bericht);
    $bericht = str_replace(":d","<img src=\"beeld/smileys/bigsmile.gif\" alt=''>", $bericht);
    $bericht = str_replace(":D","<img src=\"beeld/smileys/bigsmile.gif\" alt=''>", $bericht);
    $bericht = str_replace(":-)","<img src=\"beeld/smileys/blij.gif\" alt=''>", $bericht);
    $bericht = str_replace(":@","<img src=\"beeld/smileys/boos.gif\" alt=''>", $bericht);
    $bericht = str_replace(":!","<img src=\"beeld/smileys/bruut.gif\" alt=''>", $bericht);
    $bericht = str_replace("o:)","<img src=\"beeld/smileys/heilig.gif\" alt=''>", $bericht);
    $bericht = str_replace(":^","<img src=\"beeld/smileys/hm.gif\" alt=''>", $bericht);
    $bericht = str_replace(":?","<img src=\"beeld/smileys/huh.gif\" alt=''>", $bericht);
    $bericht = str_replace(":'","<img src=\"beeld/smileys/huil.gif\" alt=''>", $bericht);
    $bericht = str_replace(";)","<img src=\"beeld/smileys/knipoog.gif\" alt=''>", $bericht);
    $bericht = str_replace(":/","<img src=\"beeld/smileys/pijnpijk.gif\" alt=''>", $bericht);
    $bericht = str_replace("(post)","<img src=\"beeld/smileys/post.gif\" alt=''>", $bericht);
    $bericht = str_replace("8)","<img src=\"beeld/smileys/saai.gif\" alt=''>", $bericht);
    $bericht = str_replace(":%","<img src=\"beeld/smileys/schaam.gif\" alt=''>", $bericht);
    $bericht = str_replace(":o","<img src=\"beeld/smileys/schock.gif\" alt=''>", $bericht);
    $bericht = str_replace(":O","<img src=\"beeld/smileys/schock.gif\" alt=''>", $bericht);
    $bericht = str_replace(":z","<img src=\"beeld/smileys/slaap.gif\" alt=''>", $bericht);
    $bericht = str_replace(":Z","<img src=\"beeld/smileys/slaap.gif\" alt=''>", $bericht);
    $bericht = str_replace(":)","<img src=\"beeld/smileys/smile.gif\" alt=''>", $bericht);
    $bericht = str_replace(":x","<img src=\"beeld/smileys/stil.gif\" alt=''>", $bericht);
    $bericht = str_replace(":X","<img src=\"beeld/smileys/stil.gif\" alt=''>", $bericht);
    $bericht = str_replace(":+","<img src=\"beeld/smileys/stoer.gif\" alt=''>", $bericht);
    $bericht = str_replace("(taart)","<img src=\"beeld/smileys/taart.gif\" alt=''>", $bericht);
    $bericht = str_replace(":-(","<img src=\"beeld/smileys/teleurgesteld.gif\" alt=''>", $bericht);
    $bericht = str_replace(":p","<img src=\"beeld/smileys/tong.gif\" alt=''>", $bericht);
    $bericht = str_replace(":P","<img src=\"beeld/smileys/tong.gif\" alt=''>", $bericht);
    $bericht = str_replace(":(","<img src=\"beeld/smileys/verdrietig.gif\" alt=''>", $bericht);

    // woorden vervangen
    $bericht = eregi_replace('katerkeet.write2me.nl', '********************',$bericht);
  
    return $bericht;  
}



$file = "gastenboek.php";

$fopenr = fopen ($file, "r");  

$msgs = fread ($fopenr, filesize ($file));  

$fopenw = fopen($file, "w+");

fwrite($fopenw, "<table border=\"0\" width=\"100%\" id=\"table1\" cellspacing=\"0\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td colspan=\"2\" style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom-width: 1px\">
        <font color=\"#0099CC\">$ip</font></td>
        <td rowspan=\"5\" style=\"border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #000000; margin-left: 0\" valign=\"top\" width=\"1%\">&nbsp;</td>
        <td rowspan=\"5\" style=\"border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #000000; margin-left: 0\" valign=\"top\" width=\"613\">
        $bericht</td>
    </tr>
    <tr>
        <td colspan=\"2\" style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom-width: 1px\">
        <p align=\"left\">$foto</td>
    </tr>
    <tr>
        <td width=\"8%\"><b><font face=\"Tahoma\" size=\"2\">Naam</font></b></td>
        <td style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom-width: 1px\" width=\"36%\">
        $naam</td>
    </tr>
    <tr>
        <td width=\"8%\"><b><font face=\"Tahoma\" size=\"2\">Email</font></b></td>
        <td style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom-width: 1px\" width=\"36%\">
        <p><a href=\"mailto:$email\"><font color=\"#FFFFFF\">$email</font></a></p>
    </tr>
    <tr>
        <td width=\"8%\" style=\"border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #000000\">
        <b>
        <font face=\"Tahoma\" size=\"2\">Tijd</font></b></td>
        <td style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom: 1px solid #000000\" width=\"36%\">
        $datum</td>
    </tr>
</table>
$msgs"
);  

fclose($fopenw);

 echo "<SCRIPT LANGUAGE=\"javascript\" TYPE=\"text/javascript\">window.location='gastenboek.htm'</SCRIPT>\n";

?>


</body>
</html>


alvast bedankt, aju!
Gewijzigd op 13/11/2005 15:35:00 door Niels Born
 
PHP hulp

PHP hulp

21/05/2024 01:07:34
 
Robert Deiman

Robert Deiman

13/11/2005 16:15:00
Quote Anchor link
Hoe ziet zo'n URL van zo'n space eruit? Ik geloof dat het elke keer iets is van spaces.msn.etcetera.. of hetzelfde met http ervoor.. Als je dan de URL gaat controleren kan je die met de explode functie uit elkaar trekken.
Dan kan je controleren of het deel voor de 1e punt (.) overeenkomt met: spaces of met http://spaces
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
<?php
explode(".", $url);
if ($url[0] == "spaces" || $url[0] == "http://spaces"){
//hier dan wat die ermee moet doen, fout weergeven ofzo
}
?>
 
Niels Born

Niels Born

13/11/2005 19:54:00
Quote Anchor link
Ik snap niet wat ik fout doe, ik heb hem ingevoegd hier:

<html>
<head>

<body bgcolor="#0099CC">

</head>

<body>

Code (php)
PHP script in nieuw venster Selecteer het PHP script
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?php

$leeg
= "";      
$naam = $_POST['naam'];                      
$email = $_POST['email'];                      
$bericht = $_POST['bericht'];                    
$datum = date("H:i d-m-y");
$bericht = htmlentities($bericht);
$bericht = nl2br($bericht);
$bericht = stripslashes($bericht);
$bericht = ubb_smiley($bericht);
$ip = $REMOTE_ADDR;
$fotourl = $_POST['fotourl'];
$foto = "<img border=\"1px\" src=\"$fotourl\" height=\"120\">
"
;

if (empty($_POST["naam"]))  
    {
  
    die("<table border=\"0\" width=\"100%\" id=\"table1\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td>Je hebt je Naam niet ingevuld, Vul je Naam als nog in!
        <a href=\"gastenboek.htm\"><font color=\"#000000\">Klik Hier</font></a></td>
    </tr>
</table>
"
);  
    }
  

    elseif (empty($_POST["email"]))  
    {
  
    die("<table border=\"0\" width=\"100%\" id=\"table1\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td>Je hebt je Email niet ingevuld, Vul je Email als nog in!
        <a href=\"gastenboek.htm\"><font color=\"#000000\">Klik Hier</font></a></td>
    </tr>
</table>
"
);
  
    }
  

elseif (empty($_POST["bericht"]))  
    {
  
    die("<table border=\"0\" width=\"100%\" id=\"table1\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td>Je hebt je Bericht niet ingevuld, Vul je Bericht als nog in!
        <a href=\"gastenboek.htm\"><font color=\"#000000\">Klik Hier</font></a></td>
    </tr>
</table>
"
);
  
    }
  

elseif (empty($_POST['fotourl']))
    {

    $foto = ("<img border=\"0\" src=\"http://nielsborn.ni.funpic.org/beeld/plaatjes/nopic.bmp\" height=\"120\">");
    
    }



explode(".", $fotourl);
if ($fotourl[0] == "storage" || $fotourl[0] == "msn"){

die("<table border=\"0\" width=\"100%\" id=\"table1\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td>Wij accepteren geen foto's afkomstig uit een msn space. Zoek een andere foto op!
        <a href=\"gastenboek.htm\"><font color=\"#000000\">Klik Hier</font></a></td>
    </tr>
</table>
"
);

}


function
ubb_smiley ( $bericht )
{

     // ubb code    
    
    $bericht = preg_replace("/\[B\](?U)((.|\n|\r)*)\[\/B\]/", "<B>\\1</B>", $bericht);
    $bericht = preg_replace("/\[U\](?U)((.|\n|\r)*)\[\/U\]/", "<U>\\1</U>", $bericht);
    $bericht = preg_replace("/\[I\](?U)((.|\n|\r)*)\[\/I\]/", "<I>\\1</I>", $bericht);
    $bericht = preg_replace("/\[S\](?U)((.|\n|\r)*)\[\/S\]/", "<S>\\1</S>", $bericht);
    $bericht = eregi_replace("\\[COLOR=([^\\[]*)\\]([^\\[]*)\\[/COLOR\\]","<font color=\"\\1\">\\2</font>",$bericht);      
    $bericht = eregi_replace("\\[SIZE=([^\\[]*)\\]([^\\[]*)\\[/SIZE\\]","<font size=\"\\1\">\\2</font>",$bericht);
    $bericht = eregi_replace("\\[ALIGN=([^\\[]*)\\]([^\\[]*)\\[/ALIGN\\]","<p align=\"\\1\">\\2</p>",$bericht);    
    $bericht = eregi_replace("\\[EMAIL=([^\\[]*)\\]([^\\[]*)\\[/EMAIL\\]", "<a href=\"mailto:\\1\">\\2</a>",$bericht);
    $bericht = eregi_replace("\\[URL=([^\\[]*)\\]([^\\[]*)\\[/URL\\]","<a href=file://1 target=_blank>\\2</a>",$bericht);  ;
      
    //Smileys-code      
    $bericht = str_replace("(sp)","<img src=\"beeld/smileys/spook.gif\" alt=''>", $bericht);
    $bericht = str_replace("(bier)","<img src=\"beeld/smileys/bier.gif\" alt=''>", $bericht);
    $bericht = str_replace("(b)","<img src=\"beeld/smileys/bier.gif\" alt=''>", $bericht);
    $bericht = str_replace(":d","<img src=\"beeld/smileys/bigsmile.gif\" alt=''>", $bericht);
    $bericht = str_replace(":D","<img src=\"beeld/smileys/bigsmile.gif\" alt=''>", $bericht);
    $bericht = str_replace(":-)","<img src=\"beeld/smileys/blij.gif\" alt=''>", $bericht);
    $bericht = str_replace(":@","<img src=\"beeld/smileys/boos.gif\" alt=''>", $bericht);
    $bericht = str_replace(":!","<img src=\"beeld/smileys/bruut.gif\" alt=''>", $bericht);
    $bericht = str_replace("o:)","<img src=\"beeld/smileys/heilig.gif\" alt=''>", $bericht);
    $bericht = str_replace(":^","<img src=\"beeld/smileys/hm.gif\" alt=''>", $bericht);
    $bericht = str_replace(":?","<img src=\"beeld/smileys/huh.gif\" alt=''>", $bericht);
    $bericht = str_replace(":'","<img src=\"beeld/smileys/huil.gif\" alt=''>", $bericht);
    $bericht = str_replace(";)","<img src=\"beeld/smileys/knipoog.gif\" alt=''>", $bericht);
    $bericht = str_replace(":/","<img src=\"beeld/smileys/pijnpijk.gif\" alt=''>", $bericht);
    $bericht = str_replace("(post)","<img src=\"beeld/smileys/post.gif\" alt=''>", $bericht);
    $bericht = str_replace("8)","<img src=\"beeld/smileys/saai.gif\" alt=''>", $bericht);
    $bericht = str_replace(":%","<img src=\"beeld/smileys/schaam.gif\" alt=''>", $bericht);
    $bericht = str_replace(":o","<img src=\"beeld/smileys/schock.gif\" alt=''>", $bericht);
    $bericht = str_replace(":O","<img src=\"beeld/smileys/schock.gif\" alt=''>", $bericht);
    $bericht = str_replace(":z","<img src=\"beeld/smileys/slaap.gif\" alt=''>", $bericht);
    $bericht = str_replace(":Z","<img src=\"beeld/smileys/slaap.gif\" alt=''>", $bericht);
    $bericht = str_replace(":)","<img src=\"beeld/smileys/smile.gif\" alt=''>", $bericht);
    $bericht = str_replace(":x","<img src=\"beeld/smileys/stil.gif\" alt=''>", $bericht);
    $bericht = str_replace(":X","<img src=\"beeld/smileys/stil.gif\" alt=''>", $bericht);
    $bericht = str_replace(":+","<img src=\"beeld/smileys/stoer.gif\" alt=''>", $bericht);
    $bericht = str_replace("(taart)","<img src=\"beeld/smileys/taart.gif\" alt=''>", $bericht);
    $bericht = str_replace(":-(","<img src=\"beeld/smileys/teleurgesteld.gif\" alt=''>", $bericht);
    $bericht = str_replace(":p","<img src=\"beeld/smileys/tong.gif\" alt=''>", $bericht);
    $bericht = str_replace(":P","<img src=\"beeld/smileys/tong.gif\" alt=''>", $bericht);
    $bericht = str_replace(":(","<img src=\"beeld/smileys/verdrietig.gif\" alt=''>", $bericht);

    // woorden vervangen
    $bericht = eregi_replace('katerkeet.write2me.nl', '********************',$bericht);
  
    return $bericht;  
}



$file = "gastenboek.php";

$fopenr = fopen ($file, "r");  

$msgs = fread ($fopenr, filesize ($file));  

$fopenw = fopen($file, "w+");

fwrite($fopenw, "<table border=\"0\" width=\"100%\" id=\"table1\" cellspacing=\"0\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td colspan=\"2\" style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom-width: 1px\">
        <font color=\"#0099CC\">$ip</font></td>
        <td rowspan=\"5\" style=\"border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #000000; margin-left: 0\" valign=\"top\" width=\"1%\">&nbsp;</td>
        <td rowspan=\"5\" style=\"border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #000000; margin-left: 0\" valign=\"top\" width=\"613\">
        $bericht</td>
    </tr>
    <tr>
        <td colspan=\"2\" style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom-width: 1px\">
        <p align=\"left\">$foto</td>
    </tr>
    <tr>
        <td width=\"8%\"><b><font face=\"Tahoma\" size=\"2\">Naam</font></b></td>
        <td style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom-width: 1px\" width=\"36%\">
        $naam</td>
    </tr>
    <tr>
        <td width=\"8%\"><b><font face=\"Tahoma\" size=\"2\">Email</font></b></td>
        <td style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom-width: 1px\" width=\"36%\">
        <p><a href=\"mailto:$email\"><font color=\"#FFFFFF\">$email</font></a></p>
    </tr>
    <tr>
        <td width=\"8%\" style=\"border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #000000\">
        <b>
        <font face=\"Tahoma\" size=\"2\">Tijd</font></b></td>
        <td style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom: 1px solid #000000\" width=\"36%\">
        $datum</td>
    </tr>
</table>
$msgs"
);  

fclose($fopenw);

 echo "<SCRIPT LANGUAGE=\"javascript\" TYPE=\"text/javascript\">window.location='gastenboek.htm'</SCRIPT>\n";

?>


</body>
</html>

wat doe ik fout, het wil de hele middag al niet :S

alvast dank!
Gewijzigd op 13/11/2005 19:56:00 door Niels Born
 
Robert Deiman

Robert Deiman

13/11/2005 20:47:00
Quote Anchor link
Die fotourl bestaat als het goed is uit HTTP://subdomein.domeinnaam.domein
Als je er HTTP://msn OF http://msn of ipv msn, spaces of storage van maakt??
 
Niels Born

Niels Born

13/11/2005 22:05:00
Quote Anchor link
Geen resultaat!

hij gaat nog gewoon door met het script.. terwijl ik toch duidelijk aangeef: die

of doe ik iets fout?!
 
Robert Deiman

Robert Deiman

13/11/2005 22:11:00
Quote Anchor link
probeer het eens met een echo, kijk ff of die wel in die if lus komt.
 
Niels Born

Niels Born

13/11/2005 22:15:00
Quote Anchor link
nope, hij stoomt gewoon door!
 
- SanThe -

- SanThe -

13/11/2005 22:17:00
Quote Anchor link
Als je een url op een . (punt) explode zal er (bijna) nooit msn staan. Maar eerder http://msn Je zal een betere check moeten doen op de geposte url. Zelfs als je eerst een spatie ingeeft en dan msn komt ie niet in de if()
 
Niels Born

Niels Born

13/11/2005 22:23:00
Quote Anchor link
Heb jij een andere oplossing dan?
 
- SanThe -

- SanThe -

13/11/2005 22:35:00
Quote Anchor link
Probeer hier wat mee:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
<?php
if(stristr(".msn.", $url) or stristr("/msn.", $url))
{

   echo "Er staat msn in deze url";
}

?>
 
Robert Deiman

Robert Deiman

13/11/2005 22:37:00
Quote Anchor link
SanThe:
Probeer hier wat mee:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
<?php
if(stristr(".msn.", $url) or stristr("/msn.", $url))
{

   echo "Er staat msn in deze url";
}

?>



Das een veel betere oplossing SanThe, ik wist helemaal niet dat ook zo'n functie bestond.. Toch handig regelmatig forum checken, leer ik ook nog eens wat ;)
 

13/11/2005 23:12:00
Quote Anchor link
Stristr/strstr vind ik idd ook bijzonder handig,
maar sommigen zeggen dat je beter preg_match
kan gebruiken omdat ie sneller is ;)
 
Niels Born

Niels Born

13/11/2005 23:14:00
Quote Anchor link
Nope, miss doe ik wat fout, kijk naar het schript:


<html>
<head>

<body bgcolor="#0099CC">

</head>

<body>

Code (php)
PHP script in nieuw venster Selecteer het PHP script
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<?php

$leeg
= "";      
$naam = $_POST['naam'];                      
$email = $_POST['email'];                      
$bericht = $_POST['bericht'];                    
$datum = date("H:i d-m-y");
$bericht = htmlentities($bericht);
$bericht = nl2br($bericht);
$bericht = stripslashes($bericht);
$bericht = ubb_smiley($bericht);
$ip = $REMOTE_ADDR;
$fotourl = $_POST['fotourl'];
$foto = "<img border=\"1px\" src=\"$fotourl\" height=\"120\">
"
;

if (empty($_POST["naam"]))  
    {
  
    die("<table border=\"0\" width=\"100%\" id=\"table1\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td>Je hebt je Naam niet ingevuld, Vul je Naam als nog in!
        <a href=\"gastenboek.htm\"><font color=\"#000000\">Klik Hier</font></a></td>
    </tr>
</table>
"
);  
    }
  

    elseif (empty($_POST["email"]))  
    {
  
    die("<table border=\"0\" width=\"100%\" id=\"table1\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td>Je hebt je Email niet ingevuld, Vul je Email als nog in!
        <a href=\"gastenboek.htm\"><font color=\"#000000\">Klik Hier</font></a></td>
    </tr>
</table>
"
);
  
    }
  

elseif (empty($_POST["bericht"]))  
    {
  
    die("<table border=\"0\" width=\"100%\" id=\"table1\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td>Je hebt je Bericht niet ingevuld, Vul je Bericht als nog in!
        <a href=\"gastenboek.htm\"><font color=\"#000000\">Klik Hier</font></a></td>
    </tr>
</table>
"
);
  
    }
  

elseif (empty($_POST['fotourl']))
    {

    $foto = ("<img border=\"0\" src=\"http://nielsborn.ni.funpic.org/beeld/plaatjes/nopic.bmp\" height=\"120\">");
    
    }


elseif(stristr(".msn.", $fotourl) or stristr("/storage.", $fotourl))
{

    die("<table border=\"0\" width=\"100%\" id=\"table1\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td>Wij accepteren geen foto's afkomstig uit een msn space. Zoek een andere foto op!
        <a href=\"gastenboek.htm\"><font color=\"#000000\">Klik Hier</font></a></td>
    </tr>
</table>
"
);
}


function
ubb_smiley ( $bericht )
{

     // ubb code    
    
    $bericht = preg_replace("/\[B\](?U)((.|\n|\r)*)\[\/B\]/", "<B>\\1</B>", $bericht);
    $bericht = preg_replace("/\[U\](?U)((.|\n|\r)*)\[\/U\]/", "<U>\\1</U>", $bericht);
    $bericht = preg_replace("/\[I\](?U)((.|\n|\r)*)\[\/I\]/", "<I>\\1</I>", $bericht);
    $bericht = preg_replace("/\[S\](?U)((.|\n|\r)*)\[\/S\]/", "<S>\\1</S>", $bericht);
    $bericht = eregi_replace("\\[COLOR=([^\\[]*)\\]([^\\[]*)\\[/COLOR\\]","<font color=\"\\1\">\\2</font>",$bericht);      
    $bericht = eregi_replace("\\[SIZE=([^\\[]*)\\]([^\\[]*)\\[/SIZE\\]","<font size=\"\\1\">\\2</font>",$bericht);
    $bericht = eregi_replace("\\[ALIGN=([^\\[]*)\\]([^\\[]*)\\[/ALIGN\\]","<p align=\"\\1\">\\2</p>",$bericht);    
    $bericht = eregi_replace("\\[EMAIL=([^\\[]*)\\]([^\\[]*)\\[/EMAIL\\]", "<a href=\"mailto:\\1\">\\2</a>",$bericht);
    $bericht = eregi_replace("\\[URL=([^\\[]*)\\]([^\\[]*)\\[/URL\\]","<a href=file://1 target=_blank>\\2</a>",$bericht);  ;
      
    //Smileys-code      
    $bericht = str_replace("(sp)","<img src=\"beeld/smileys/spook.gif\" alt=''>", $bericht);
    $bericht = str_replace("(bier)","<img src=\"beeld/smileys/bier.gif\" alt=''>", $bericht);
    $bericht = str_replace("(b)","<img src=\"beeld/smileys/bier.gif\" alt=''>", $bericht);
    $bericht = str_replace(":d","<img src=\"beeld/smileys/bigsmile.gif\" alt=''>", $bericht);
    $bericht = str_replace(":D","<img src=\"beeld/smileys/bigsmile.gif\" alt=''>", $bericht);
    $bericht = str_replace(":-)","<img src=\"beeld/smileys/blij.gif\" alt=''>", $bericht);
    $bericht = str_replace(":@","<img src=\"beeld/smileys/boos.gif\" alt=''>", $bericht);
    $bericht = str_replace(":!","<img src=\"beeld/smileys/bruut.gif\" alt=''>", $bericht);
    $bericht = str_replace("o:)","<img src=\"beeld/smileys/heilig.gif\" alt=''>", $bericht);
    $bericht = str_replace(":^","<img src=\"beeld/smileys/hm.gif\" alt=''>", $bericht);
    $bericht = str_replace(":?","<img src=\"beeld/smileys/huh.gif\" alt=''>", $bericht);
    $bericht = str_replace(":'","<img src=\"beeld/smileys/huil.gif\" alt=''>", $bericht);
    $bericht = str_replace(";)","<img src=\"beeld/smileys/knipoog.gif\" alt=''>", $bericht);
    $bericht = str_replace(":/","<img src=\"beeld/smileys/pijnpijk.gif\" alt=''>", $bericht);
    $bericht = str_replace("(post)","<img src=\"beeld/smileys/post.gif\" alt=''>", $bericht);
    $bericht = str_replace("8)","<img src=\"beeld/smileys/saai.gif\" alt=''>", $bericht);
    $bericht = str_replace(":%","<img src=\"beeld/smileys/schaam.gif\" alt=''>", $bericht);
    $bericht = str_replace(":o","<img src=\"beeld/smileys/schock.gif\" alt=''>", $bericht);
    $bericht = str_replace(":O","<img src=\"beeld/smileys/schock.gif\" alt=''>", $bericht);
    $bericht = str_replace(":z","<img src=\"beeld/smileys/slaap.gif\" alt=''>", $bericht);
    $bericht = str_replace(":Z","<img src=\"beeld/smileys/slaap.gif\" alt=''>", $bericht);
    $bericht = str_replace(":)","<img src=\"beeld/smileys/smile.gif\" alt=''>", $bericht);
    $bericht = str_replace(":x","<img src=\"beeld/smileys/stil.gif\" alt=''>", $bericht);
    $bericht = str_replace(":X","<img src=\"beeld/smileys/stil.gif\" alt=''>", $bericht);
    $bericht = str_replace(":+","<img src=\"beeld/smileys/stoer.gif\" alt=''>", $bericht);
    $bericht = str_replace("(taart)","<img src=\"beeld/smileys/taart.gif\" alt=''>", $bericht);
    $bericht = str_replace(":-(","<img src=\"beeld/smileys/teleurgesteld.gif\" alt=''>", $bericht);
    $bericht = str_replace(":p","<img src=\"beeld/smileys/tong.gif\" alt=''>", $bericht);
    $bericht = str_replace(":P","<img src=\"beeld/smileys/tong.gif\" alt=''>", $bericht);
    $bericht = str_replace(":(","<img src=\"beeld/smileys/verdrietig.gif\" alt=''>", $bericht);

    // woorden vervangen
    $bericht = eregi_replace('katerkeet.write2me.nl', '********************',$bericht);
  
    return $bericht;  
}



$file = "gastenboek.php";

$fopenr = fopen ($file, "r");  

$msgs = fread ($fopenr, filesize ($file));  

$fopenw = fopen($file, "w+");

fwrite($fopenw, "<table border=\"0\" width=\"100%\" id=\"table1\" cellspacing=\"0\" style=\"font-family: Tahoma; color: #000000\">
    <tr>
        <td colspan=\"2\" style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom-width: 1px\">
        <font color=\"#0099CC\">$ip</font></td>
        <td rowspan=\"5\" style=\"border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #000000; margin-left: 0\" valign=\"top\" width=\"1%\">&nbsp;</td>
        <td rowspan=\"5\" style=\"border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #000000; margin-left: 0\" valign=\"top\" width=\"613\">
        $bericht</td>
    </tr>
    <tr>
        <td colspan=\"2\" style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom-width: 1px\">
        <p align=\"left\">$foto</td>
    </tr>
    <tr>
        <td width=\"8%\"><b><font face=\"Tahoma\" size=\"2\">Naam</font></b></td>
        <td style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom-width: 1px\" width=\"36%\">
        $naam</td>
    </tr>
    <tr>
        <td width=\"8%\"><b><font face=\"Tahoma\" size=\"2\">Email</font></b></td>
        <td style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom-width: 1px\" width=\"36%\">
        <p><a href=\"mailto:$email\"><font color=\"#FFFFFF\">$email</font></a></p>
    </tr>
    <tr>
        <td width=\"8%\" style=\"border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #000000\">
        <b>
        <font face=\"Tahoma\" size=\"2\">Tijd</font></b></td>
        <td style=\"border-left-width: 1px; border-right: 1px solid #000000; border-top-width: 1px; border-bottom: 1px solid #000000\" width=\"36%\">
        $datum</td>
    </tr>
</table>
$msgs"
);  

fclose($fopenw);

 echo "<SCRIPT LANGUAGE=\"javascript\" TYPE=\"text/javascript\">window.location='gastenboek.htm'</SCRIPT>\n";

?>


</body>
</html>

bedankt alvast!
 
Jan Koehoorn

Jan Koehoorn

13/11/2005 23:14:00
Quote Anchor link
Ja, of:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
<?php
  if (eregi ('msn.', $url)) {
    // foutmelding
  }
?>
 
- SanThe -

- SanThe -

13/11/2005 23:29:00
Quote Anchor link
Jan:
Ja, of:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
<?php
  if (eregi ('msn.', $url)) {
    // foutmelding
  }
?>


Ben ik het niet mee eens, want, ik noem maar wat. Hoe dan met http://www.damsn.nl die wordt bij jou weggevaagd. Hahaha.
 
Jan Koehoorn

Jan Koehoorn

13/11/2005 23:32:00
Quote Anchor link
Oeps, niet goed gelezen dus!

Dan beter:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
<?php
  if (eregi ('(/msn.|.msn.)', $url)) {
    // foutmelding
  }
?>
 
Willem Jan Z

Willem Jan Z

13/11/2005 23:33:00
Quote Anchor link
Aan die zat ik ook te denken Jan :P
Vond dat exploden beetje een omweg.

Maak van de elseifjes ifjes (behalve de foto niet leeg elseif)...
Anders geeft hij elke keer sowieso maar 1 fout.

En je moet nog de nopic declareren als het plaatje van een MSN space komt...

Edit: Heb nooit aan die functie gedacht :P
Maar het is toch sowieso altijd spaces.msn.com/*gebruikersnaam*??
Dan kan het toch wel gewoon met die van Jan,maar dan wat langer...
Gewijzigd op 13/11/2005 23:34:00 door Willem Jan Z
 
- SanThe -

- SanThe -

13/11/2005 23:34:00
Quote Anchor link
Jan:
Oeps, niet goed gelezen dus!

Dan beter:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
<?php
  if (eregi ('(/msn.|.msn.)', $url)) {
    // foutmelding
  }
?>


Yep, zo is ie goed.
Ik moet me toch nog eens in die g@&^%$#*&verse syntax gaan verdiepen.
 
Willem Jan Z

Willem Jan Z

13/11/2005 23:35:00
Quote Anchor link
Ben alweer te laat :P
Probleem al opgelost zo te zien :P
 
Jan Koehoorn

Jan Koehoorn

13/11/2005 23:36:00
Quote Anchor link
Regex is vaak the way to go, maar ze zijn verdomd moeilijk ;-)
 
Willem Jan Z

Willem Jan Z

13/11/2005 23:37:00
Quote Anchor link
Gelukkig hebben we jouw voorbeeld op je site :P
 

Pagina: 1 2 volgende »



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.