| px | top | add code | search | signup | login | help |
<HTML>
<HEAD>
<TITLE> Bookie 1.0 </TITLE>
<style type="text/css">
.loc {font-size: 9pt; font-family: verdana; color: #ffffff;}
a {font-family: arial; color: red;}
a:hover {font-family: arial; color: #ffffff;}
.txt {font-size: 9pt; font-family: arial; color: #ffffff;}
.lat {font-size: 9pt; font-family: arial; color: #ffffff;}
td {font-size: 9pt; font-family: arial; color: #ffffff;}
INPUT.button { BACKGROUND-COLOR: #000000; BORDER-BOTTOM: #FF0000 0px solid; BORDER-LEFT: #FF0000 0px solid; BORDER-RIGHT: #FF0000 0px solid; BORDER-TOP: #FF0000 0px solid; font-size: 9pt; font-family: arial; color: #ffffff; font-weight: bold}
</style>
</HEAD>
<body bgcolor="#000000" text="#FFFFFF" style="font-family: Verdana; font-size: 8pt">
<?php
/*
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
$url = "http://brian.zero-gravity.org/php-bin/guestbook.php3"; //url to script
if ($name . $comments != "") {
$date = date( "l, F j Y, h:i a");
$message = "<center><table border=\"2\" cellpadding=\"9\" cellspacing=\"0\" width=\"400\" bordercolor=\"#FF0000\"><tr><td width=\"100%\"><B>" . stripslashes($name) . "</B> -- " . stripslashes($date) . "</td></tr><tr><td width=\"100%\">" . stripslashes($comments) . "</td></tr></table></center><p>";
$fp = fopen($path,"a");
fwrite ($fp, $message);
fclose ($fp);
print "<center>The Following Was Successfully Added To The Guestbook:</center><p>\n"; //html
print "<center><table border=\"2\" cellpadding=\"9\" cellspacing=\"0\" width=\"400\" bordercolor=\"#FF0000\"><tr><td><B>" . stripslashes($name) . "</B> -- " . stripslashes($date) . "</td></tr><tr><td>" . stripslashes($comments) . "</td></tr></table></center><p>\n"; //html
print "<center><a href=\"$url\">Click Here To Return To The Guestbook</a><p>\n"; //html
print "<hr width=300 size=1 height=1 noshade color=\"#ffffff\"><br>\n"; //html
print "<size=\"1\">Powered By <a href=\"http://brian.zero-gravity.org/php/\">Bookie 1.0</a></font><br>\n"; //html
}
else {
include($path);
print "<p><br><center><b>Post Your Own Comments:</b><br>\n"; //html
print "<form method=\"POST\" action=\"$url\"><center><table border=\"2\" cellpadding=\"9\" cellspacing=\"0\" width=\"400\" bordercolor=\"#FF0000\"><tr><td>Name: </td><td><center><input type=\"text\" name=\"name\" size=\"30\"></center></td></tr><tr><td>Comments: </td><td><center><TEXTAREA name=\"comments\" rows=5 cols=25 wrap=virtual></TEXTAREA></center></td></tr><tr><td colspan=\"2\"><center><input type=\"submit\" value=\"-Post-\" class=\"button\"> <input type=\"reset\" value=\"-Reset-\" class=\"button\"></center></td></tr></table></form>\n"; //html
print "</center>\n"; //html
print "<center><hr width=300 size=1 height=1 noshade color=\"#ffffff\"><br>\n"; //html
print "Powered By <a href=\"http://brian.zero-gravity.org/php/\">Bookie 1.0</a><br>\n"; //html
}
?>
</body></html>
Comments or questions?
PX is running PHP 5.2.11
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.