",$data[$i]); if (@ $array[$out[0]] != "") $line = ereg_replace("<".$out[0].">",$array[$out[0]],$line); } fclose($fp); return $line; } /* if (($command=="post") && (trim($post['msg']) != "")) { if (substr_count($post['msg'],"http://") > 1) exit("No URL spam please."); $post['aname'] = ADMIN_NAME; $post['aemail'] = ADMIN_EMAIL; $post['remote_addr'] = getenv("REMOTE_ADDR"); $post['date'] = date(DATE_FORMAT); $post['msg'] = nl2br(htmlspecialchars($post['msg'])); if (NOTIFY_GUEST) { $to = "$post[gname] <$post[gemail]>"; $from = "$post[aname] <$post[aemail]>"; $subject = "Thank you for signed the guest book of ".HOST_NAME."."; if ( THANK_TEMPLATE != "") $txt = formatmail(THANK_TEMPLATE,$post); else $txt = formatmail("default.tmp",$post); //mail($to,$subject,$txt,"FROM: $from"); } if (NOTIFY_ADMIN) { $from = "$post[gname] <$post[gemail]>"; $to = "$post[aname] <$post[aemail]>"; $subject = "Guest book signed from $post[gname]."; if ( ADMIN_TEMPLATE != "") $txt = formatmail(ADMIN_TEMPLATE,$post); else $txt = formatmail("default.tmp",$post); mail($to,$subject,$txt,"FROM: $from"); } // Save to guest book if ( POST_TEMPLATE != "") $txt = formattext(POST_TEMPLATE,$post); else $txt = formmattext("default.tmp",$post); $fp = fopen("body.inc","a+"); if ($fp==0) die("Error open [body.inc]\n Please check the file permission."); fputs($fp,$txt); fclose($fp); } */ ?> KP-Guest Book 1.0.

KP-Guest Book 1.0.

PHP Script By Krerk Piromsopa.

 

Due to a large number of SPAMs, this section is closed.
Please direct all comments to krerk.p <at> chula [dot] ac [dot] th.


KP-Guest Book 1.0 on []
http://www.vwin.co.th