Include
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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
// toegestane pagina's in een array zetten
$toegestaan=array("home.php","index2","pagina3","pagina4","pagina5","pagina6");
// controleren of er een pagina is meegegeven
if (isset($_GET['pagina'])){
// de binnengehaalde variabele omzetten naar kleine letters
$pagina=strtolower($_GET['pagina']);
}
// controleren of de pagina voorkomt in de array
if (in_array($pagina, $toegestaan)){
// wanneer die toegestaan is includen
include($pagina.".php");
}
else{
// wanneer die niet toegestaan is standaard pagina includen.
include("home.php");
}
?>
// toegestane pagina's in een array zetten
$toegestaan=array("home.php","index2","pagina3","pagina4","pagina5","pagina6");
// controleren of er een pagina is meegegeven
if (isset($_GET['pagina'])){
// de binnengehaalde variabele omzetten naar kleine letters
$pagina=strtolower($_GET['pagina']);
}
// controleren of de pagina voorkomt in de array
if (in_array($pagina, $toegestaan)){
// wanneer die toegestaan is includen
include($pagina.".php");
}
else{
// wanneer die niet toegestaan is standaard pagina includen.
include("home.php");
}
?>
I allways get an error on this line:
if (in_array($pagina, $toegestaan)){
Notice: Undefined variable: pagina in private\index.php
Wat gaat er fout?
Code (php)
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
<?php
$toegestaan = array('index2', 'pagina3', 'pagina4', 'pagina5', 'pagina6');
$pagina = 'home.php';
if (isset($_GET['pagina'])) {
$pagina = strtolower($_GET['pagina']) . '.php';
}
include $pagina;
?>
$toegestaan = array('index2', 'pagina3', 'pagina4', 'pagina5', 'pagina6');
$pagina = 'home.php';
if (isset($_GET['pagina'])) {
$pagina = strtolower($_GET['pagina']) . '.php';
}
include $pagina;
?>
Alleen pakt hij mijn javascripts nu niet waardoor mijn slider niet werkt bijv.
Enig idee waarom dit zou zijn?
Waarschijnlijk laad je de javascripts niet of te laat in.
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
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<!-- Basic -->
<meta charset="utf-8">
<title>3Dynamisch</title>
<meta name="keywords" content="HTML5 Template" />
<!-- Mobile Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Web Fonts -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800%7CShadows+Into+Light" rel="stylesheet" type="text/css">
<!-- Libs CSS -->
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.css">
<link rel="stylesheet" href="vendor/owl-carousel/owl.carousel.css" media="screen">
<link rel="stylesheet" href="vendor/owl-carousel/owl.theme.css" media="screen">
<link rel="stylesheet" href="vendor/magnific-popup/magnific-popup.css" media="screen">
<link rel="stylesheet" href="vendor/isotope/jquery.isotope.css" media="screen">
<link rel="stylesheet" href="vendor/mediaelement/mediaelementplayer.css" media="screen">
<!-- Theme CSS -->
<link rel="stylesheet" href="css/theme.css">
<link rel="stylesheet" href="css/theme-elements.css">
<link rel="stylesheet" href="css/theme-blog.css">
<link rel="stylesheet" href="css/theme-shop.css">
<link rel="stylesheet" href="css/theme-animate.css">
<!-- Current Page CSS -->
<link rel="stylesheet" href="vendor/circle-flip-slideshow/css/component.css" media="screen">
<link rel="stylesheet" href="vendor/nivo-slider/nivo-slider.css" media="screen">
<link rel="stylesheet" href="vendor/nivo-slider/themes/default/default.css" media="screen">
<!-- Responsive CSS -->
<link rel="stylesheet" href="css/theme-responsive.css" />
<!-- Skin CSS -->
<link rel="stylesheet" href="css/skins/default.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="css/custom.css">
<!-- Head Libs -->
<script src="vendor/modernizr.js"></script>
<!--[if IE]>
<link rel="stylesheet" href="css/ie.css">
<![endif]-->
<!--[if lte IE 8]>
<script src="vendor/respond.js"></script>
<![endif]-->
</head>
<body>
<div class="body">
<header id="header">
<div class="container">
<h1 class="logo">
<a href="index.html">
<img alt="Gemeente Terneuzen" width="200" height="200" data-sticky-width="80" data-sticky-height="80" src="img/logos/terneuzen.jpg">
</a>
</h1>
<div class="search">
<form id="searchForm" action="page-search-results.html" method="get">
<div class="input-group">
<input type="text" class="form-control search" name="q" id="q" placeholder="Zoek...">
<span class="input-group-btn">
<button class="btn btn-default" type="submit"><i class="icon icon-search"></i></button>
</span>
</div>
</form>
</div>
<nav>
<ul class="nav nav-pills nav-top">
<li>
<a href="about-us.html"><i class="icon icon-angle-right"></i>Over Ons</a>
</li>
<li>
<a href="contact.html"><i class="icon icon-angle-right"></i>Contact</a>
</li>
<li class="phone">
<span><i class="icon icon-phone"></i>+31(0)115 769 063</span>
</li>
</ul>
</nav>
<button class="btn btn-responsive-nav btn-inverse" data-toggle="collapse" data-target=".nav-main-collapse">
<i class="icon icon-bars"></i>
</button>
</div>
<div class="navbar-collapse nav-main-collapse collapse">
<div class="container">
<ul class="social-icons">
<li class="facebook"><a href="https://www.facebook.com/Huidenlaserkliniekzeeland?fref=ts" target="_blank" title="Facebook">Facebook</a></li>
<li class="googleplus"><a href="https://plus.google.com/115924598515445615514/about" target="_blank" title="Google+">Google+</a></li>
</ul>
<!-- menu -->
<nav class="nav-main mega-menu">
<ul class="nav nav-pills nav-main" id="mainMenu">
<!-- home -->
<li>
<a href="index.html">Home</a>
</li>
<!-- einde home -->
<!-- Plastische chirurgie -->
<li class="dropdown mega-menu-item mega-menu-fullwidth">
<a class="dropdown-toggle" href="pc.html">
Plastische chirurgie
<i class="icon icon-angle-down"></i>
</a>
<ul class="dropdown-menu">
<li>
<div class="mega-menu-content">
<div class="row">
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Gelaat</span>
<ul class="sub-menu">
<li><a href="facelift.html">Facelift</a></li>
<li><a href="ogen.html">Ogen</a></li>
<li><a href="oren.html">Oren</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title"><Br></span>
<ul class="sub-menu">
<li><a href="wenkbrauwlift.html">Wenkbrauw</a></li>
<li><a href="voorhoofdslift.html">Voorhoofd</a></li>
<li><a href="kin.html">Kin</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Lichaam</span>
<ul class="sub-menu">
<li><a href="borstimplantaat.html">Borst correctie</a></li>
<li><a href="bil.html">Bil-implantaat</a></li>
<li><a href="buikwand.html">Buik lift</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title"><br></span>
<ul class="sub-menu">
<li><a href="dij.html">Dij lift</a></li>
<li><a href="schaamlip.html">Schaamlipreductie</a></li>
<li><a href="liposuctie.html">Liposuctie</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</li>
</ul>
</li>
<!-- Einde Plastische Chirurgie -->
<!-- Laser -->
<li class="dropdown mega-menu-item mega-menu-fullwidth">
<a class="dropdown-toggle" href="lb.html">
Laser Behandelingen
<i class="icon icon-angle-down"></i>
</a>
<ul class="dropdown-menu">
<li>
<div class="mega-menu-content">
<div class="row">
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Huid-behandeling</span>
<ul class="sub-menu">
<li><a href="wijnvlekken.html">Wijnvlekken</a></li>
<li><a href="couperose.html">Couperose</a></li>
<li><a href="pigmentvlekken.html">Pigmentvlekken</a></li>
<li><a href="schimmelnagels.html">Schimmelnagels</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title"><br></span>
<ul class="sub-menu">
<li><a href="striae.html">Striae</a></li>
<li><a href="acne.html">Acne</a></li>
<li><a href="spataders.html">Spataders</a></li>
<li><a href="xanthelasma.html">Xanthelasma</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Huid-verbetering</span>
<ul class="sub-menu">
<li><a href="tattoo.html">Tattoo verwijdering</a></li>
<li><a href="huid.html#verslapt">Verslapte huid</a></li>
<li><a href="huid.html">Huidverjonging</a></li>
<li><a href="littekens.html">Littekens</a></li>
<li><a href="littekens.html#acne">Acne littekens</a></li>
<li><a href="steelwratjes.html">Steelwratjes</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Ontharing</span>
<ul class="sub-menu">
<li><a href="man.html">Mannen</a></li>
<li><a href="vrouw.html">Vrouwen</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</li>
</ul>
</li>
<!-- Einde Laser-->
<!-- Beauty instituut -->
<li class="dropdown mega-menu-item mega-menu-fullwidth">
<a class="dropdown-toggle" href="bi.html">
Beauty instituut
<i class="icon icon-angle-down"></i>
</a>
<ul class="dropdown-menu">
<li>
<div class="mega-menu-content">
<div class="row">
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Mooiere Huid</span>
<ul class="sub-menu">
<li><a href="huiddiagnose.html">Huiddiagnose</a></li>
<li><a href="peeling.html">Peeling</a></li>
<li><a href="permanent.html">Permanente make-up</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Minder Rimpels</span>
<ul class="sub-menu">
<li><a href="botox.html">Okseldry</a></li>
<li><a href="botox.html#hydrate">Hydrate filler</a></li>
<li><a href="botox.html#volbella">Volbella filler</a></li>
<li><a href="botox.html#voluma">Voluma filler</a></li>
<li><a href="botox.html#liquid">Liquid facelift</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Afslanken</span>
<ul class="sub-menu">
<li><a href="afslanken.html">Kyalin</a></li>
<li><a href="afslanken.html#dieet">Dieetadvies</a></li>
<li><a href="afslanken.html#ender">Endermologie</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Medisch pedicure</span>
<ul class="sub-menu">
<li><a alt="huid en laser kliniek zeeland" href="voetzorg.html">Voetzorg algemeen</a></li>
<li><a alt="huid en laser kliniek zeeland" href="voetzorg.html#risico">Voetzorg risicovoet</a></li>
<li><a alt="huid en laser kliniek zeeland" href="voetzorg.html#oncologie">Voetzorg oncologie</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</li>
</ul>
</li>
<!-- Einde Beauty instituut-->
<!-- home -->
<li>
<a href="contact.html">Contact</a>
</li>
<!-- einde home -->
</ul>
</nav>
<!-- einde menu -->
</div>
</div>
</header>
<div role="main" class="main">
<!-- -->
<?php
$toegestaan = array('index2', 'pagina3', 'pagina4', 'pagina5', 'pagina6');
$pagina = 'home.php';
if (isset($_GET['pagina'])) {
$pagina = strtolower($_GET['pagina']) . '.php';
}
include $pagina;
?>
<!-- -->
</div>
<footer class="short" id="footer">
<div class="container">
<div class="row">
<div class="col-md-8">
<h4>Over Huid en Laser Kliniek</h4>
<p>Huid- en Laserkliniek Zeeland is uw persoonlijke esthetische kliniek: beautyinstituut en privkliniek voor cosmetische chirurgie in n. Wij staan garant voor deskundigheid en een individuele benadering in discretie. U staat centraal. Tijdens een gratis intakegesprek luisteren we goed en komen we met passende oplossingen. Huid- en Laserkliniek Zeeland biedt een breed gamma aan mogelijkheden om uw schoonheid te verdiepen en probleemgebieden aan te pakken.<a href="about-us.html" class="btn-flat btn-xs">Zie meer <i class="icon icon-arrow-right"></i></a></p>
<hr class="light">
</div>
<div class="col-md-3 col-md-offset-1">
<h5 class="short">Contacteer Ons</h5>
<span class="phone">0115 769 063</span>
<p class="short">Internationaal: +31 (0) 115 769 063</p>
<ul class="list icons list-unstyled">
<li><i class="icon icon-envelope"></i> <a href="mailto:[email protected]">[email protected]</a></li>
</ul>
<div class="social-icons">
<ul class="social-icons">
<li class="facebook"><a href="https://www.facebook.com/Huidenlaserkliniekzeeland?fref=ts" target="_blank" data-placement="bottom" rel="tooltip" title="Facebook">Facebook</a></li>
<li class="googleplus"><a href="https://plus.google.com/115924598515445615514/about" target="_blank" data-placement="bottom" rel="tooltip" title="googleplus">google+</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
<div class="row">
<div class="col-md-1">
<a href="index.html" class="logo">
<img alt="Huid en Laser Kliniek Zeeland" class="img-responsive" style="max-width: 100px;" src="img/logo2.svg">
</a>
</div>
<div class="col-md-11">
<p> Alle rechten voorbehouden.</p>
</div>
</div>
</div>
</div>
</footer>
</div>
<!-- Libs -->
<script src="vendor/jquery.js"></script>
<script src="vendor/jquery.appear.js"></script>
<script src="vendor/jquery.easing.js"></script>
<script src="vendor/jquery.cookie.js"></script>
<script src="vendor/bootstrap/js/bootstrap.js"></script>
<script src="vendor/jquery.validate.js"></script>
<script src="vendor/jquery.stellar.js"></script>
<script src="vendor/jquery.knob.js"></script>
<script src="vendor/jquery.gmap.js"></script>
<script src="vendor/twitterjs/twitter.js"></script>
<script src="vendor/isotope/jquery.isotope.js"></script>
<script src="vendor/owl-carousel/owl.carousel.js"></script>
<script src="vendor/jflickrfeed/jflickrfeed.js"></script>
<script src="vendor/magnific-popup/magnific-popup.js"></script>
<script src="vendor/mediaelement/mediaelement-and-player.js"></script>
<!-- Theme Initializer -->
<script src="js/theme.plugins.js"></script>
<script src="js/theme.js"></script>
<!-- Current Page JS -->
<script src="vendor/circle-flip-slideshow/js/jquery.flipshow.js"></script>
<script src="vendor/nivo-slider/jquery.nivo.slider.js"></script>
<script src="js/views/view.home.js"></script>
<!-- Custom JS -->
<script src="js/custom.js"></script>
<!-- Google Analytics: Change UA-XXXXX-X to be your site's ID. Go to http://www.google.com/analytics/ for more information.
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12345678-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
-->
</body>
</html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<!-- Basic -->
<meta charset="utf-8">
<title>3Dynamisch</title>
<meta name="keywords" content="HTML5 Template" />
<!-- Mobile Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Web Fonts -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800%7CShadows+Into+Light" rel="stylesheet" type="text/css">
<!-- Libs CSS -->
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.css">
<link rel="stylesheet" href="vendor/owl-carousel/owl.carousel.css" media="screen">
<link rel="stylesheet" href="vendor/owl-carousel/owl.theme.css" media="screen">
<link rel="stylesheet" href="vendor/magnific-popup/magnific-popup.css" media="screen">
<link rel="stylesheet" href="vendor/isotope/jquery.isotope.css" media="screen">
<link rel="stylesheet" href="vendor/mediaelement/mediaelementplayer.css" media="screen">
<!-- Theme CSS -->
<link rel="stylesheet" href="css/theme.css">
<link rel="stylesheet" href="css/theme-elements.css">
<link rel="stylesheet" href="css/theme-blog.css">
<link rel="stylesheet" href="css/theme-shop.css">
<link rel="stylesheet" href="css/theme-animate.css">
<!-- Current Page CSS -->
<link rel="stylesheet" href="vendor/circle-flip-slideshow/css/component.css" media="screen">
<link rel="stylesheet" href="vendor/nivo-slider/nivo-slider.css" media="screen">
<link rel="stylesheet" href="vendor/nivo-slider/themes/default/default.css" media="screen">
<!-- Responsive CSS -->
<link rel="stylesheet" href="css/theme-responsive.css" />
<!-- Skin CSS -->
<link rel="stylesheet" href="css/skins/default.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="css/custom.css">
<!-- Head Libs -->
<script src="vendor/modernizr.js"></script>
<!--[if IE]>
<link rel="stylesheet" href="css/ie.css">
<![endif]-->
<!--[if lte IE 8]>
<script src="vendor/respond.js"></script>
<![endif]-->
</head>
<body>
<div class="body">
<header id="header">
<div class="container">
<h1 class="logo">
<a href="index.html">
<img alt="Gemeente Terneuzen" width="200" height="200" data-sticky-width="80" data-sticky-height="80" src="img/logos/terneuzen.jpg">
</a>
</h1>
<div class="search">
<form id="searchForm" action="page-search-results.html" method="get">
<div class="input-group">
<input type="text" class="form-control search" name="q" id="q" placeholder="Zoek...">
<span class="input-group-btn">
<button class="btn btn-default" type="submit"><i class="icon icon-search"></i></button>
</span>
</div>
</form>
</div>
<nav>
<ul class="nav nav-pills nav-top">
<li>
<a href="about-us.html"><i class="icon icon-angle-right"></i>Over Ons</a>
</li>
<li>
<a href="contact.html"><i class="icon icon-angle-right"></i>Contact</a>
</li>
<li class="phone">
<span><i class="icon icon-phone"></i>+31(0)115 769 063</span>
</li>
</ul>
</nav>
<button class="btn btn-responsive-nav btn-inverse" data-toggle="collapse" data-target=".nav-main-collapse">
<i class="icon icon-bars"></i>
</button>
</div>
<div class="navbar-collapse nav-main-collapse collapse">
<div class="container">
<ul class="social-icons">
<li class="facebook"><a href="https://www.facebook.com/Huidenlaserkliniekzeeland?fref=ts" target="_blank" title="Facebook">Facebook</a></li>
<li class="googleplus"><a href="https://plus.google.com/115924598515445615514/about" target="_blank" title="Google+">Google+</a></li>
</ul>
<!-- menu -->
<nav class="nav-main mega-menu">
<ul class="nav nav-pills nav-main" id="mainMenu">
<!-- home -->
<li>
<a href="index.html">Home</a>
</li>
<!-- einde home -->
<!-- Plastische chirurgie -->
<li class="dropdown mega-menu-item mega-menu-fullwidth">
<a class="dropdown-toggle" href="pc.html">
Plastische chirurgie
<i class="icon icon-angle-down"></i>
</a>
<ul class="dropdown-menu">
<li>
<div class="mega-menu-content">
<div class="row">
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Gelaat</span>
<ul class="sub-menu">
<li><a href="facelift.html">Facelift</a></li>
<li><a href="ogen.html">Ogen</a></li>
<li><a href="oren.html">Oren</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title"><Br></span>
<ul class="sub-menu">
<li><a href="wenkbrauwlift.html">Wenkbrauw</a></li>
<li><a href="voorhoofdslift.html">Voorhoofd</a></li>
<li><a href="kin.html">Kin</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Lichaam</span>
<ul class="sub-menu">
<li><a href="borstimplantaat.html">Borst correctie</a></li>
<li><a href="bil.html">Bil-implantaat</a></li>
<li><a href="buikwand.html">Buik lift</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title"><br></span>
<ul class="sub-menu">
<li><a href="dij.html">Dij lift</a></li>
<li><a href="schaamlip.html">Schaamlipreductie</a></li>
<li><a href="liposuctie.html">Liposuctie</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</li>
</ul>
</li>
<!-- Einde Plastische Chirurgie -->
<!-- Laser -->
<li class="dropdown mega-menu-item mega-menu-fullwidth">
<a class="dropdown-toggle" href="lb.html">
Laser Behandelingen
<i class="icon icon-angle-down"></i>
</a>
<ul class="dropdown-menu">
<li>
<div class="mega-menu-content">
<div class="row">
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Huid-behandeling</span>
<ul class="sub-menu">
<li><a href="wijnvlekken.html">Wijnvlekken</a></li>
<li><a href="couperose.html">Couperose</a></li>
<li><a href="pigmentvlekken.html">Pigmentvlekken</a></li>
<li><a href="schimmelnagels.html">Schimmelnagels</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title"><br></span>
<ul class="sub-menu">
<li><a href="striae.html">Striae</a></li>
<li><a href="acne.html">Acne</a></li>
<li><a href="spataders.html">Spataders</a></li>
<li><a href="xanthelasma.html">Xanthelasma</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Huid-verbetering</span>
<ul class="sub-menu">
<li><a href="tattoo.html">Tattoo verwijdering</a></li>
<li><a href="huid.html#verslapt">Verslapte huid</a></li>
<li><a href="huid.html">Huidverjonging</a></li>
<li><a href="littekens.html">Littekens</a></li>
<li><a href="littekens.html#acne">Acne littekens</a></li>
<li><a href="steelwratjes.html">Steelwratjes</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Ontharing</span>
<ul class="sub-menu">
<li><a href="man.html">Mannen</a></li>
<li><a href="vrouw.html">Vrouwen</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</li>
</ul>
</li>
<!-- Einde Laser-->
<!-- Beauty instituut -->
<li class="dropdown mega-menu-item mega-menu-fullwidth">
<a class="dropdown-toggle" href="bi.html">
Beauty instituut
<i class="icon icon-angle-down"></i>
</a>
<ul class="dropdown-menu">
<li>
<div class="mega-menu-content">
<div class="row">
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Mooiere Huid</span>
<ul class="sub-menu">
<li><a href="huiddiagnose.html">Huiddiagnose</a></li>
<li><a href="peeling.html">Peeling</a></li>
<li><a href="permanent.html">Permanente make-up</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Minder Rimpels</span>
<ul class="sub-menu">
<li><a href="botox.html">Okseldry</a></li>
<li><a href="botox.html#hydrate">Hydrate filler</a></li>
<li><a href="botox.html#volbella">Volbella filler</a></li>
<li><a href="botox.html#voluma">Voluma filler</a></li>
<li><a href="botox.html#liquid">Liquid facelift</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Afslanken</span>
<ul class="sub-menu">
<li><a href="afslanken.html">Kyalin</a></li>
<li><a href="afslanken.html#dieet">Dieetadvies</a></li>
<li><a href="afslanken.html#ender">Endermologie</a></li>
</ul>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="sub-menu">
<li>
<span class="mega-menu-sub-title">Medisch pedicure</span>
<ul class="sub-menu">
<li><a alt="huid en laser kliniek zeeland" href="voetzorg.html">Voetzorg algemeen</a></li>
<li><a alt="huid en laser kliniek zeeland" href="voetzorg.html#risico">Voetzorg risicovoet</a></li>
<li><a alt="huid en laser kliniek zeeland" href="voetzorg.html#oncologie">Voetzorg oncologie</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</li>
</ul>
</li>
<!-- Einde Beauty instituut-->
<!-- home -->
<li>
<a href="contact.html">Contact</a>
</li>
<!-- einde home -->
</ul>
</nav>
<!-- einde menu -->
</div>
</div>
</header>
<div role="main" class="main">
<!-- -->
<?php
$toegestaan = array('index2', 'pagina3', 'pagina4', 'pagina5', 'pagina6');
$pagina = 'home.php';
if (isset($_GET['pagina'])) {
$pagina = strtolower($_GET['pagina']) . '.php';
}
include $pagina;
?>
<!-- -->
</div>
<footer class="short" id="footer">
<div class="container">
<div class="row">
<div class="col-md-8">
<h4>Over Huid en Laser Kliniek</h4>
<p>Huid- en Laserkliniek Zeeland is uw persoonlijke esthetische kliniek: beautyinstituut en privkliniek voor cosmetische chirurgie in n. Wij staan garant voor deskundigheid en een individuele benadering in discretie. U staat centraal. Tijdens een gratis intakegesprek luisteren we goed en komen we met passende oplossingen. Huid- en Laserkliniek Zeeland biedt een breed gamma aan mogelijkheden om uw schoonheid te verdiepen en probleemgebieden aan te pakken.<a href="about-us.html" class="btn-flat btn-xs">Zie meer <i class="icon icon-arrow-right"></i></a></p>
<hr class="light">
</div>
<div class="col-md-3 col-md-offset-1">
<h5 class="short">Contacteer Ons</h5>
<span class="phone">0115 769 063</span>
<p class="short">Internationaal: +31 (0) 115 769 063</p>
<ul class="list icons list-unstyled">
<li><i class="icon icon-envelope"></i> <a href="mailto:[email protected]">[email protected]</a></li>
</ul>
<div class="social-icons">
<ul class="social-icons">
<li class="facebook"><a href="https://www.facebook.com/Huidenlaserkliniekzeeland?fref=ts" target="_blank" data-placement="bottom" rel="tooltip" title="Facebook">Facebook</a></li>
<li class="googleplus"><a href="https://plus.google.com/115924598515445615514/about" target="_blank" data-placement="bottom" rel="tooltip" title="googleplus">google+</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
<div class="row">
<div class="col-md-1">
<a href="index.html" class="logo">
<img alt="Huid en Laser Kliniek Zeeland" class="img-responsive" style="max-width: 100px;" src="img/logo2.svg">
</a>
</div>
<div class="col-md-11">
<p> Alle rechten voorbehouden.</p>
</div>
</div>
</div>
</div>
</footer>
</div>
<!-- Libs -->
<script src="vendor/jquery.js"></script>
<script src="vendor/jquery.appear.js"></script>
<script src="vendor/jquery.easing.js"></script>
<script src="vendor/jquery.cookie.js"></script>
<script src="vendor/bootstrap/js/bootstrap.js"></script>
<script src="vendor/jquery.validate.js"></script>
<script src="vendor/jquery.stellar.js"></script>
<script src="vendor/jquery.knob.js"></script>
<script src="vendor/jquery.gmap.js"></script>
<script src="vendor/twitterjs/twitter.js"></script>
<script src="vendor/isotope/jquery.isotope.js"></script>
<script src="vendor/owl-carousel/owl.carousel.js"></script>
<script src="vendor/jflickrfeed/jflickrfeed.js"></script>
<script src="vendor/magnific-popup/magnific-popup.js"></script>
<script src="vendor/mediaelement/mediaelement-and-player.js"></script>
<!-- Theme Initializer -->
<script src="js/theme.plugins.js"></script>
<script src="js/theme.js"></script>
<!-- Current Page JS -->
<script src="vendor/circle-flip-slideshow/js/jquery.flipshow.js"></script>
<script src="vendor/nivo-slider/jquery.nivo.slider.js"></script>
<script src="js/views/view.home.js"></script>
<!-- Custom JS -->
<script src="js/custom.js"></script>
<!-- Google Analytics: Change UA-XXXXX-X to be your site's ID. Go to http://www.google.com/analytics/ for more information.
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12345678-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
-->
</body>
</html>
Gewijzigd op 04/09/2014 23:39:36 door - Ariën -
En waar zou $_GET['pagina'] vandaan moeten komen?
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
// een array met $pagina.php die zijn variabel
$toegestaan = array('index2', 'pagina3', 'pagina4', 'pagina5', 'pagina6');
// als er een $_GET['pagina'] is, en hij zit in de array van toegestaan...
if( isset( $_GET['pagina'] ) && in_array( $_GET['pagina'], $toegestaan) )
{
// include de pagina met extentie .php (met kleine letters) ;)
include strtolower($_GET['pagina']).'.php';
}
else
{
// is er niets in de $_GET['pagina'] dan een gewone include..
include 'home.php';
}
?>
// een array met $pagina.php die zijn variabel
$toegestaan = array('index2', 'pagina3', 'pagina4', 'pagina5', 'pagina6');
// als er een $_GET['pagina'] is, en hij zit in de array van toegestaan...
if( isset( $_GET['pagina'] ) && in_array( $_GET['pagina'], $toegestaan) )
{
// include de pagina met extentie .php (met kleine letters) ;)
include strtolower($_GET['pagina']).'.php';
}
else
{
// is er niets in de $_GET['pagina'] dan een gewone include..
include 'home.php';
}
?>
Want hij pakt nu elke keer home.php
index.php?pagina=pagina3