您的位置:论坛首页 >> 软件论坛论坛 

一个简单的留言本程序

楼主: 2008-9-9 9:24:31
游客
 编辑  删除  回复  收藏  留言  好友   置顶   取消精华

原文:一个简单的留言本程序




Bookie 1.0



/*
Bookie Copyright 2000 Brian Ross
Version 1.0
brian@music4free.com
AIM: DeadBrain3
ICQ: 15273600
http://brian.zero-gravity.org/php/

How to install:
1. Edit the variables below to fit your needs.
2. Create the datafile that you showed in $path and chomd to it 777.
*/

$path = "/usr/home/brian/public_html/php-bin/guestbook.dat"; //path to datafile
$file = "guestbook.php3"; //name this of script

if ($name . $comments != "") {
$date = date( "l, F j Y, h:i a");
$message = "
bordercolor=\"#FF0000\">
" . stripslashes($name) .
"
-- " . stripslashes($date) . "
" .
stripslashes($comments) . "

";
$fp = fopen($path, "a");
fwrite ($fp, $message);
fclose ($fp);
print "

The Following Was Successfully Added To The Guestbook:

"; //html
print "


" . stripslashes($name) . " -- " . stripslashes($date) .
"
" . stripslashes($comments) . "

"; //html
print "

Click Here To Return To The Guestbook

"; //html
print "



"; //html
print "Powered By Bookie 1.0
";
}

else {
include($path);
print "


Post Your Own Comments:
"; //html
print "
bordercolor=#FF0000>
Name:

Comments:

class=button>
"; //html
print "
"; //html
print "


"; //html
print "Powered By Bookie 1.0
"; //html
}
?>

 


回复帖子 RE: 一个简单的留言本程序

 1、第1个回帖者得3分,第2个回帖者得2分,其余得1个积分!

 2、如是求助帖,前10位有效回帖用户每人再各加10分!

 3、如果乱回求助帖,让原帖作者很不满意,他有权收回积分,系统也同时对您惩罚,扣除10个积分

帐号:
用户名 密码 (已登录用户可不填)  注册新用户
妮称:
帐号妮称二选一,填妮称,无需注册,不得积分
内容:


撤消 恢复 粗体 斜体 下划线 左对齐 居中 右对齐 超级链接 取消超级链接 插入网上图片,支持格式为:gif、jpg、png、bmp 使用帮助 上传图片
表情符号:


附加码:
(附加码: 9584 )