$written = file_put_contents($target, $html);
if ($written === FALSE) {
throw new Exception('Fout bij opslaan');
$written = file_put_contents($target, $html);
if ($written === FALSE) {
throw new Exception('Fout bij opslaan');
if (!$replymeta) continue;
$replydate = str_split($replymeta[1], 2);
$replydate[1] = $replydate[0] . $replydate[1];
if (!$replymeta) continue;
$replydate = str_split($replymeta[1], 2);
$replydate[1] = $replydate[0] . $replydate[1];
print '<form method="post" action="">';
printf('<textarea id="%s" name="%1$s" cols=60 rows=3 placeholder="%s">%s</textarea>'."\n",
'reply',
print '<form method="post" action="">';
printf('<textarea id="%s" name="%1$s" cols=60 rows=3 placeholder="%s">%s</textarea>'."\n",
'reply',