= 2 && $qs[0] == "add") { $d = array(); $d["blog_title"] = "Nieuwe post"; $d["blog_contents"] = ""; $db->add($db->blog, $d); header('Location: /'); } if($level >= 2 && $qs[0] == "del" && $qs[1] > 0) { $db->del($db->blog, "blog_id = '".$qs[1]."'"); header('Location: /'); } if($level >= 2 && $qs[0] == "delc" && $qs[1] > 0) { $db->del($db->comments, "comments_id = '".$qs[1]."'"); header('Location: /'); } if($level >= 2 && $qs[0] == "delm" && $qs[1] > 0) { $db->del($db->mailinglist, "id = '".$qs[1]."'"); header('Location: /?delm'); } if($level > 0 && $_POST["newsletter"]) { //$_SESSION["email"] = $_POST["newsletter"]; $d = array(); $d["email"] = $_POST["newsletter"]; $r = $db->get($db->mailinglist, "email = '".$d["email"]."'"); if(!$r) $db->add($db->mailinglist, $d); } if($level >= 2 && $qs[0] == "mailing" && $qs[1] > 0) { $r = $db->get($db->mailinglist); $blog = $db->get($db->blog,"blog_id = '".$qs[1]."'"); $message = str_replace("\n\n","\n",str_replace(" \n","","Het volgende bericht is geplaatst op www.hellorwanda.nl:\n\n".strip_tags($blog[0]["blog_title"])."\n\n")); $addresses = array(); if($r) foreach($r as $v) { $addresses[] = $v["email"]; } //$addresses[] = "kkresten@gmail.com"; //$addresses[] = "ingeborgzijdenbos@gmail.com"; $headers = 'From: Harm & Ing ' . "\r\n" . 'Reply-To: mail@hellorwanda.nl' . "\r\n" . 'Bcc: '.implode(",", $addresses). "\r\n" . 'Content-type: text/html; charset=utf-8' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail(implode(",","mail@hellorwanda.nl"), "Nieuw bericht op hellorwanda.nl", $message, $headers); header('Location: /'); } if($level >= 2 && $_POST["marker_position"] && $_POST["marker_title"]) { $d = array(); $d["markers_title"] = $_POST["marker_title"]; $d["markers_position"] = str_replace(")","",str_replace("(","",$_POST["marker_position"])); $mid = $db->add($db->markers, $d); if($mid && $_POST["marker_blog"]) { $d = array(); $d["blog_id"] = $_POST["marker_blog"]; $d["markers_id"] = $mid; $mid = $db->add($db->markers_blog, $d); } header('Location: /'); } if($level >= 2 && $_POST["marker_edit_position"] && $_POST["marker_edit_blog"]) { $d = array(); if($_POST["marker_edit_id"] > 0) { $mid = $_POST["marker_edit_id"]; } else { $d["markers_title"] = $_POST["marker_edit_title"]; $d["markers_position"] = str_replace(")","",str_replace("(","",$_POST["marker_edit_position"])); $mid = $db->add($db->markers, $d); } if($mid && $_POST["marker_edit_blog"]) { $d = array(); $d["blog_id"] = $_POST["marker_edit_blog"]; $d["markers_id"] = $mid; $mid = $db->add($db->markers_blog, $d); } header('Location: /'); } ?> Hello Rwanda!

Hello Rwanda!

Terug
Hybride
Wegenkaart
Terrein
Satelliet
Hun huis
= 2) { ?>
Plaats markers
Titel:
Positie:
Evt. blog:
Blog:
Positie:
Title:
= 2) { $style = ($_POST["newsletter"] || $qs[0] == "delm") ? "style='display: block'" : ""; ?>

Mailinglist


get($db->mailinglist, "","ORDER BY id DESC"); if($r) foreach($r as $v) { echo $v["email"]." X
"; } ?>
Nieuwe:
X
get($db->blog,"","ORDER BY blog_id DESC"); if($r) foreach($r as $k => $v) { $options = ($k == 0 && $level >= 2) ? "
+
" : ""; $del = ($level >= 2) ? "
m
x
@
" : ""; $editable = ($level >= 2) ? "contenteditable=\"true\"" : ""; echo "

".$v["blog_title"]."

".strftime("%A %d %B",strtotime($v["blog_timestamp"]))."

".$options.$del."
"; echo "
".process($v["blog_contents"])."
"; $comments = $db->get($db->comments,"blog_id = '".$v["blog_id"]."'","ORDER BY blog_id ASC, comments_position ASC"); $prevtop = -100; if($comments) foreach($comments as $k => $comment) { $top = ($comment["comments_position"] < $prevtop + 30) ? $prevtop + 30 : $comment["comments_position"]; $prevtop = $top; echo "
"; if($level >= 2) echo "
x
"; echo "".$comment["comments_poster"]." (".date("d-m",strtotime($comment["comments_timestamp"]))."): ".trim($comment["comments_contents"])."
"; } echo "
"; } ?>
Klik in de grijze balk om daar een reactie achter te laten.
Uitloggen
Weer en kaart
Toon achtergrond

Hello Rwanda!

Vul de code in:
Geen wachtwoord? Vraag er dan een aan bij Harm en Ing: ln.adnawrolleh@liam.