Nýjustu Naflaskoðanirnar
0 && !strpos($comment_texti, "[") && !strpos($comment_efni, "<") && !strpos($comment_nafn, "[") && !strpos($comment_nafn, "<") && !strpos($comment_nafn, "http") && !strpos($comment_netfang, "http") && !strpos($comment_texti, "Leggja orð í belg
"; if ($row = mysql_fetch_array($result)) { $fjoldi = mysql_num_rows($result); if ($fjoldi == 1) { echo "$fjoldi hefur"; } else { echo "$fjoldi hafa"; } if ($explode != "yes") { echo " lagt orð í belg"; echo "
"; } else { echo " lagt orð í belg"; } if ($explode == "yes") { do { echo "
"; $dags = $row["comment_dags"]; $timi = $row["comment_time"]; $nafn = $row["comment_nafn"]; $netfang= $row["comment_netfang"]; $veffang = $row["comment_veffang"]; $efni = $row["comment_efni"]; $texti = $row["comment_texti"]; $dags = new_date($dags); echo "$dags $timi
"; // TITILL EF EINHVER if (strlen($efni) > 0) { echo "$efni
"; } $texti = nl2br($texti); echo "$texti"; echo "
Þetta lagði "; // NAFN OG NETFANG if ($veffang != "" && $veffang != "http://") { echo ""; } echo "$nafn"; if ($veffang != "" && $veffang != "http://") { echo ""; } echo " í belginn
"; echo "
"; } while($row = mysql_fetch_array($result)); } } else { echo "Enginn hefur lagt orð í belg!"; echo ""; } mysql_free_result($result); } /*#################*/ function add_comment ($id) { echo "

Leggðu orð í belg

"; $today = date("Y-m-d"); echo "
Nafn
Netfang (birtist ekki á vef)
Veffang
Fyrirsögn
Orð í belg:
"; } /*#################*/ /*#################*/ function Delete_Comment($comment_id) { $query = "DELETE FROM comments_t WHERE comment_id='$comment_id' LIMIT 1"; $result = mysql_query($query); if(!$result){ return mysql_error(); } else { return 1; } echo $query; } /*#################*/ function warn_comment ($comment_id) { $query = "SELECT * FROM comments_t WHERE comment_id='$comment_id'"; $result = mysql_query($query); if ($row = mysql_fetch_array($result)) { $comment_id = mysql_result($result,0,"comment_id"); $comment_dags = mysql_result($result,0,"comment_dags"); $comment_nafn = mysql_result($result,0,"comment_nafn"); $comment_netfang = mysql_result($result,0,"comment_netfang"); $comment_veffang = mysql_result($result,0,"comment_veffang"); $comment_efni = mysql_result($result,0,"comment_efni"); $comment_texti = mysql_result($result,0,"comment_texti"); } else { echo "Villa við að ná í upplýsingar :("; } echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo " "; echo "
Eyða athugasemd
Viltu alveg örugglega eyða þessu úr orðabelgnum?
    NEI
Nafn $comment_nafn
Titill $comment_efni
$comment_texti
"; mysql_free_result($result); } /*#################*/ function get_comment () { $query = "SELECT * FROM comments_t ORDER BY comment_dags DESC, comment_id DESC"; $result = mysql_query($query); echo "
"; echo ""; $fjoldi = mysql_num_rows($result); echo "Alls $fjoldi færslur í orðabelgnum"; if ($row = mysql_fetch_array($result)) { do { echo ""; echo ""; echo ""; echo ""; echo "\n"; } while($row = mysql_fetch_array($result)); echo "
Athugasemdir
"; $dags = $row["comment_dags"]; //$dags = new_date($dags); echo "$dags"; echo ""; print $row["comment_nafn"]; echo ""; echo ""; if ($row["comment_efni"] == "") { echo "enginn titill"; } else { print strip_tags($row["comment_efni"]); } echo "Eyða
"; } mysql_free_result($result); } /*#################*/ function lesa_comment ($id) { $query = "SELECT * FROM comments_t WHERE comment_id='$id'"; $result = mysql_query($query); if ($row = mysql_fetch_array($result)) { $comment_id = mysql_result($result,0,"comment_id"); $g_dags = mysql_result($result,0,"comment_dags"); $g_nafn = mysql_result($result,0,"comment_nafn"); $g_netfang = mysql_result($result,0,"comment_netfang"); $g_veffang = mysql_result($result,0,"comment_veffang"); $g_efni = mysql_result($result,0,"comment_efni"); $g_texti = mysql_result($result,0,"comment_texti"); $faersla = mysql_result($result,0,"blog_id"); } else { echo "Villa við að ná í upplýsingar :("; } echo "
"; echo ""; echo " "; $faersla = $row["blog_id"]; $query2 = "SELECT blog_id, blog_title, blog_date FROM dagbok_t WHERE blog_id=$faersla"; $result2 = mysql_query($query2); $dagurinn = mysql_result($result2,0,"blog_date"); $titillinn = mysql_result($result2,0,"blog_title"); if ($titillinn == "") { $titillinn = "án titils"; } list($a,$b,$c) = explode("-", $dagurinn); echo "Þetta var við færsluna $titillinn"; echo "
Nafn $g_nafn
Netfang $g_netfang
Veffang $g_veffang
Titill $g_efni
$g_texti
"; mysql_free_result($result); } /* function edit_gestabok ($linkid) { $query = "SELECT * FROM links_t WHERE link_id=$linkid "; $result = mysql_query($query); if ($row = mysql_fetch_array($result)) { $link_id = mysql_result($result,0,"link_id"); $linkname = mysql_result($result,0,"linkname"); $url = mysql_result($result,0,"url"); $text = mysql_result($result,0,"text"); $sortfield = mysql_result($result,0,"sortfield"); } else { echo "Error in retrieving link info from database"; } echo "
"; echo ""; echo ""; echo ""; echo ""; echo " "; echo "
Edit link
Website name
URL
Text:
Order in list
"; mysql_free_result($result); } */ /*#################*/ /* function add_gestabok () { echo "
"; echo ""; echo ""; echo ""; echo " "; echo "
Add link
Website name
URL
Text:
Order in list
"; mysql_free_result($result); } */ /*#################*/ ?>
Nýjustu myndirnar
Mynd af handahófi
Eldri naflaskoðanir