Hee, ik heb die error handler, maar als ik hem boven aan in me script zet krijg ik dit:
fskproductie:
Parse error: syntax error, unexpected T_VARIABLE in /home/fskpro/domains/fskproductie.nl/public_html/index.php on line 6
code is:
fskproductie:
Parse error: syntax error, unexpected T_VARIABLE in /home/fskpro/domains/fskproductie.nl/public_html/index.php on line 6
code is:
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]function[/COLOR] handle_on_error[COLOR= #007700]([/COLOR][COLOR= #0000BB]$e_number[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$e_message[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$e_file[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$e_line[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$e_vars[/COLOR][COLOR= #007700]) {[/COLOR]
[COLOR= #FF8000]// Error[/COLOR]
[COLOR= #0000BB]$error_message[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]" === Er is een fout opgetreden! === n<BR />"[/COLOR]
[COLOR= #0000BB]$error_message[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"<strong>Bestand:</strong> "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$e_file[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"n<BR />"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$error_message[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"<strong>Regel(s):</strong> "[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$e_line[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]" n<BR />"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$error_message[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"<strong>Bericht:</strong> "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$e_message[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"n<BR />"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$error_message[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"<strong>Datum en Tijd:</strong>"[/COLOR][COLOR= #007700].[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]j-n-Y H:i:s[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]"n<BR />"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$error_message[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]" ========== Einde fout =========="[/COLOR]
[COLOR= #FF8000]// Verzend error naar email[/COLOR]
[URL="http://www.php.net/error_log"]error_log[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$error_message[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]HIERJEMAIL@domain.ext[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]// Laat gebruiker zien dat er iets fout is gegaan[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Er is een fout opgetreden tijdens het laden van de pagina.<br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"De webmaster(s) zijn op de hoogte gesteld. Exuses voor het ongemak <br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[COLOR= #FF8000]// Gebruik de custom error-handeler in plaats van de standaard ingebouwde[/COLOR]
[URL="http://www.php.net/set_error_handler"]set_error_handler[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]handle_on_error[/COLOR][COLOR= #007700]);[/COLOR]
?>
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"iplijst.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/in_array"]in_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$ip[/COLOR][COLOR= #007700])) {[/COLOR]
[URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"U bent verbannen van FSKproductie.nl<br>
Dit komt omdat u misbruik van FSK maakt<br>
Bent u het hier mee oneens? Mail dan naar<br>
nick@fskproductie.nl
"[/COLOR][COLOR= #007700]);
}[/COLOR]
?>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]include/session.php[/COLOR][COLOR= #007700]);[/COLOR]
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="nl" xml:lang="nl">
<head>
<title>FSKproductie ~ brengt muziek in JOUW leven</title>
<link rel="stylesheet" type="text/css" href="Style.css" />
<script type="text/javascript" src="scripts.js"></script>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script language="Javascript">
sparks = new Array();
document.write(<div id="launcher" style="position: absolute; width: 3; height: 15; overflow: hidden; background-color: white"></div>);
launch = document.getElementById(launcher).style;
for(i=0;i<howmany;i++){
document.write(<div id="spark+i+" style="position: absolute"></div>);
sparks[i] = new spark(spark+i);
sparks[i].resize(1,1);
sparks[i].hide();
num = Math.round(Math.random()*(colors.length-1))
col = colors[num];
sparks[i].bg(col);
}
function starter(){
getDimens();
launch.top = bottom-15;
launch.left = l;
init();
}
</script>
</head>
<body>
<div class="houder">
<img src="images/logo.png" alt="Logo" class="logo" /><br />
<div class="contentl">
<div class="contentlh">Menu</div>
<div class="contentlc"> [COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]menu.inc.php[/COLOR][COLOR= #007700]);[/COLOR]
?></div>
<div class="contentlo"></div>
</div>
<div class="contentr">
<div class="contentrh">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]zoeken.inc.php[/COLOR][COLOR= #007700])[/COLOR] ?></div>
<div class="contentrc">
<table border="0" cellpadding="0" cellspacing="0">
[COLOR= #0000BB]<?php
$res1[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT COUNT(id) FROM filmpjes"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"res1: "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR] [COLOR= #FF8000]// vraag het AANTAL items op[/COLOR]
[COLOR= #0000BB]$items_totaal[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_result"]mysql_result[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$res1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]// het totaal aantal items[/COLOR]
[URL="http://www.php.net/mysql_free_result"]mysql_free_result[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$res1[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]// geef het resultaat vrij[/COLOR]
[COLOR= #0000BB]$items_per_pagina[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]40[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// vrij te kiezen[/COLOR]
[COLOR= #0000BB]$aantal_paginas[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/ceil"]ceil[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$items_totaal[/COLOR] / [COLOR= #0000BB]$items_per_pagina[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]// het aantal items per pagina
// de huidige pagina opvragen[/COLOR]
[COLOR= #0000BB]$huidige_pagina[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// default[/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]p[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] >[/COLOR] [COLOR= #0000BB]0[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] <[/COLOR] [COLOR= #0000BB]$aantal_paginas[/COLOR][COLOR= #007700]) {[/COLOR]
[COLOR= #0000BB]$huidige_pagina[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]];
}[/COLOR]
[COLOR= #FF8000]// items van de huidige pagina ophalen[/COLOR]
[COLOR= #0000BB]$offset[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$huidige_pagina[/COLOR] [COLOR= #007700]*[/COLOR] [COLOR= #0000BB]$items_per_pagina[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$res2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT naam, artiest, genre, datum, id FROM filmpjes ORDER BY datum DESC LIMIT "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$offset[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$items_per_pagina[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$k[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]1[/COLOR] [COLOR= #007700]+[/COLOR] [COLOR= #0000BB]40[/COLOR] [COLOR= #007700]*[/COLOR] [COLOR= #0000BB]$huidige_pagina[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/while"]while[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$arr[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$res2[/COLOR][COLOR= #007700])) {[/COLOR]
[COLOR= #0000BB]$id[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$arr[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"id"[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<tr><td width="[/COLOR][COLOR= #0000BB]20[/COLOR]px[COLOR= #DD0000]">$k</td>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<td width="[/COLOR][COLOR= #0000BB]200[/COLOR]px[COLOR= #DD0000]"><a href="[/COLOR]bekijken[COLOR= #007700].[/COLOR]php[COLOR= #007700]?[/COLOR]nummer[COLOR= #007700]=[/COLOR][COLOR= #0000BB]$id[/COLOR][COLOR= #DD0000]" class="[/COLOR][URL="http://www.php.net/link"]link[/URL][COLOR= #DD0000]">"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$arr[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"naam"[/COLOR][COLOR= #007700]],[/COLOR] ENT_QUOTES[COLOR= #007700]).[/COLOR][COLOR= #DD0000]"</a></td><td width="[/COLOR][COLOR= #0000BB]250[/COLOR]px[COLOR= #DD0000]">"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$arr[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"artiest"[/COLOR][COLOR= #007700]],[/COLOR] ENT_QUOTES[COLOR= #007700]).[/COLOR][COLOR= #DD0000]"</td><td width="[/COLOR][COLOR= #0000BB]100[/COLOR]px[COLOR= #DD0000]">"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$arr[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"genre"[/COLOR][COLOR= #007700]],[/COLOR] ENT_QUOTES[COLOR= #007700]).[/COLOR][COLOR= #DD0000]" "[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</td></tr>"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$k[/COLOR][COLOR= #007700]++;
}[/COLOR]
[URL="http://www.php.net/mysql_free_result"]mysql_free_result[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$res2[/COLOR][COLOR= #007700]);[/COLOR]
?>
</table>
<br /><br />
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// navigatie[/COLOR]
[URL="http://www.php.net/for"]for[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]<[/COLOR] [COLOR= #0000BB]$aantal_paginas[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$huidige_pagina[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$i[/COLOR][COLOR= #007700]) {[/COLOR]
[COLOR= #FF8000]// huidige pagina is niet klikbaar[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<b>"[/COLOR][COLOR= #007700].([/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]+[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]"</b>"[/COLOR][COLOR= #007700];
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[COLOR= #FF8000]// een andere pagina dan de huidige is wel klikbaar[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<a href="".$_SERVER[PHP_SELF]."[/COLOR][COLOR= #007700]?[/COLOR]p[COLOR= #007700]=[/COLOR][COLOR= #DD0000]".$i."">"[/COLOR][COLOR= #007700].([/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]+[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]"</a>"[/COLOR][COLOR= #007700];
}[/COLOR]
[COLOR= #FF8000]// deel-streepje tussen alle items[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]<[/COLOR] [COLOR= #0000BB]$aantal_paginas[/COLOR] [COLOR= #007700]-[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" - "[/COLOR][COLOR= #007700];
}
}[/COLOR]
?>
</div>
<div class="contentro"></div>
</div>
<div class="contentr">
<div class="contentrh">Advertenties</div>
<div class="contentrc"><center>
<script type="text/javascript"><!--
google_ad_client = "pub-8553200934141172";
/* Banner goed */
google_ad_slot = "7478649124";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
</div>
<div class="contentro"></div>
</div>
<br class="clear" />
</div>
<div class="footer"><center>[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]footer.htm[/COLOR][COLOR= #007700]);[/COLOR]
?></center></div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src=" + gaJsHost + "google-analytics.com/ga.js type=text/javascript%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10510689-7");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.fskproductie.nl/count.php"></SCRIPT>
</html> 