Subversion Repositories svnkaklik

Compare Revisions

No changes between revisions

Ignore whitespace Rev 5 → Rev 6

/web/test/chat/phpchat/Here for help.url
0,0 → 1,3
[InternetShortcut]
URL=http://jnet.hopto.org/serendipity/index.php?/archives/4-PHP-Chat.html
Modified=C020D5C9770FC501CA
/web/test/chat/phpchat/Thumbs.db
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/web/test/chat/phpchat/_vti_cnf/Here for help.url
0,0 → 1,8
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|10 Feb 2005 19:53:08 -0000
vti_extenderversion:SR|6.0.2.5516
vti_cacheddtm:TX|10 Feb 2005 19:53:08 -0000
vti_filesize:IR|124
vti_backlinkinfo:VX|
vti_syncwith_192.168.177.137\:21/www:TX|10 Feb 2005 19:53:08 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/_vti_cnf/Thumbs.db
0,0 → 1,8
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|06 Feb 2005 17:33:16 -0000
vti_extenderversion:SR|6.0.2.5516
vti_cacheddtm:TX|06 Feb 2005 17:33:16 -0000
vti_filesize:IR|5120
vti_backlinkinfo:VX|
vti_syncwith_192.168.177.137\:21/www:TX|06 Feb 2005 17:33:16 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/_vti_cnf/chatdisplay.php
0,0 → 1,18
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|29 Jan 2005 20:23:42 -0000
vti_extenderversion:SR|6.0.2.5516
vti_author:SR|KAKLIK\\Jakub
vti_modifiedby:SR|KAKLIK\\Jakub
vti_timecreated:TR|29 Jan 2005 20:23:42 -0000
vti_cacheddtm:TX|29 Jan 2005 20:23:42 -0000
vti_filesize:IR|1191
vti_cachedbodystyle:SR|<body bgcolor="#ff097558">
vti_cachedneedsrewrite:BR|false
vti_cachedhasbots:BR|false
vti_cachedhastheme:BR|false
vti_cachedhasborder:BR|false
vti_metatags:VR|HTTP-EQUIV=refresh 3
vti_charset:SR|windows-1250
vti_backlinkinfo:VX|chat/phpchat/index.htm
vti_syncwith_192.168.177.137\:21/www:TX|29 Jan 2005 20:23:42 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/_vti_cnf/config.php
0,0 → 1,17
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|28 Jul 2005 14:25:10 -0000
vti_extenderversion:SR|6.0.2.5516
vti_author:SR|KAKLIK\\Jakub
vti_modifiedby:SR|KAKLIK\\Jakub
vti_timecreated:TR|10 Feb 2005 19:07:56 -0000
vti_backlinkinfo:VX|
vti_nexttolasttimemodified:TW|10 Feb 2005 19:07:56 -0000
vti_cacheddtm:TX|28 Jul 2005 14:25:10 -0000
vti_filesize:IR|468
vti_cachedneedsrewrite:BR|false
vti_cachedhasbots:BR|false
vti_cachedhastheme:BR|false
vti_cachedhasborder:BR|false
vti_charset:SR|windows-1250
vti_syncwith_192.168.177.137\:21/www:TX|28 Jul 2005 14:25:10 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/_vti_cnf/importsql.sql
0,0 → 1,8
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|10 Feb 2005 19:29:48 -0000
vti_extenderversion:SR|6.0.2.5516
vti_cacheddtm:TX|10 Feb 2005 19:29:48 -0000
vti_filesize:IR|914
vti_backlinkinfo:VX|
vti_syncwith_192.168.177.137\:21/www:TX|10 Feb 2005 19:29:48 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/_vti_cnf/index.htm
0,0 → 1,24
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|12 Feb 2005 07:14:08 -0000
vti_extenderversion:SR|6.0.2.5516
vti_author:SR|KAKLIK\\Jakub
vti_modifiedby:SR|KAKLIK\\Jakub
vti_timecreated:TR|12 Feb 2005 07:14:08 -0000
vti_cacheddtm:TX|12 Feb 2005 07:14:08 -0000
vti_filesize:IR|844
vti_cachedtitle:SR|PHPChatup
vti_cachedbodystyle:SR|<body>
vti_cachedlinkinfo:VX|S|chatdisplay.php S|shoutbox.php
vti_cachedsvcrellinks:VX|FSUS|chat/phpchat/chatdisplay.php FSUS|chat/phpchat/shoutbox.php
vti_cachedneedsrewrite:BR|false
vti_cachedhasbots:BR|false
vti_cachedhastheme:BR|false
vti_cachedhasborder:BR|false
vti_metatags:VR|GENERATOR Microsoft\\ FrontPage\\ 5.0 ProgId FrontPage.Editor.Document HTTP-EQUIV=Content-Type text/html;\\ charset=windows-1252
vti_charset:SR|windows-1252
vti_progid:SR|FrontPage.Editor.Document
vti_generator:SR|Microsoft FrontPage 5.0
vti_title:SR|PHPChatup
vti_backlinkinfo:VX|
vti_syncwith_192.168.177.137\:21/www:TX|12 Feb 2005 07:14:08 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/_vti_cnf/index.php
0,0 → 1,22
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|05 May 2005 18:53:44 -0000
vti_extenderversion:SR|6.0.2.5516
vti_author:SR|KAKLIK\\Jakub
vti_modifiedby:SR|KAKLIK\\Jakub
vti_timecreated:TR|05 May 2005 18:53:44 -0000
vti_cacheddtm:TX|05 May 2005 18:53:44 -0000
vti_filesize:IR|2388
vti_cachedtitle:SR|PHPChatUp for John Knowles
vti_cachedbodystyle:SR|<body>
vti_cachedlinkinfo:VX|S|http://home.swiftdsl.com.au/~callum_jones/skater.jpg S|shout.php S|images/smilies/icon_biggrin.gif S|images/smilies/icon_smilie.gif S|images/smilies/icon_sad.gif S|images/smilies/thumbsdown.gif S|images/smilies/thumbsup.gif
vti_cachedsvcrellinks:VX|NSHS|http://home.swiftdsl.com.au/~callum_jones/skater.jpg NSUS|chat/phpchat/shout.php FSUS|chat/phpchat/images/smilies/icon_biggrin.gif FSUS|chat/phpchat/images/smilies/icon_smilie.gif FSUS|chat/phpchat/images/smilies/icon_sad.gif FSUS|chat/phpchat/images/smilies/thumbsdown.gif FSUS|chat/phpchat/images/smilies/thumbsup.gif
vti_cachedneedsrewrite:BR|false
vti_cachedhasbots:BR|false
vti_cachedhastheme:BR|false
vti_cachedhasborder:BR|false
vti_metatags:VR|HTTP-EQUIV=Content-Type text/html;\\ charset=iso-8859-1
vti_charset:SR|iso-8859-1
vti_title:SR|PHPChatUp for John Knowles
vti_backlinkinfo:VX|index.htm
vti_syncwith_192.168.177.137\:21/www:TX|05 May 2005 18:53:44 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/_vti_cnf/shoutbox.php
0,0 → 1,16
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|10 Feb 2005 19:06:10 -0000
vti_extenderversion:SR|6.0.2.5516
vti_author:SR|KAKLIK\\Jakub
vti_modifiedby:SR|KAKLIK\\Jakub
vti_timecreated:TR|10 Feb 2005 19:06:10 -0000
vti_cacheddtm:TX|10 Feb 2005 19:06:10 -0000
vti_filesize:IR|3129
vti_cachedneedsrewrite:BR|false
vti_cachedhasbots:BR|false
vti_cachedhastheme:BR|false
vti_cachedhasborder:BR|false
vti_charset:SR|windows-1250
vti_backlinkinfo:VX|chat/phpchat/index.htm
vti_syncwith_192.168.177.137\:21/www:TX|10 Feb 2005 19:06:10 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/chatdisplay.php
0,0 → 1,35
<body bgcolor="#ff097558">
 
<?
/* database info, or include a config.php file
a config file would just contain the info from $db_host through the mysql_select_db ... )); */
include('config.php');
 
/* Set the query and get the last 15 posts, change LIMIT 15 to what ever you want, or just remove it. */
$sql = mysql_query("SELECT * FROM shoutbox ORDER BY id DESC LIMIT 15");
echo "<table>";
while($r=mysql_fetch_array($sql)){
/* this checks to see if the poster had an email address */
if(!$r['email']){ $mail = ""; }else{
$mail = "<a href=mailto:$r[email]></a>";
}
/* this checsk to see if hte user had a website */
if(!$r['site']){ $site = "$r[author]"; }else{
$site = "<a href=$r[site]>$r[author]</a>";
}
/* To modify the way the shouts are displayed, edit this.
date is formated by gmdate() (same as date()), so check php.net to change the way the date's displayed */
echo "<tr>
<td><font face=\"Arial\" color=\"Blue\">
<b>$mail $site</b> ".gmdate("", $r['date'])."
<br>$r[message]
</font>
<hr></td>
</tr>";
}
echo "</table>";
 
?>
 
<meta http-equiv="refresh" content="3">
/web/test/chat/phpchat/config.php
0,0 → 1,11
<?
/* database info, or include a config.php file
a config file would just contain the info from $db_host through the mysql_select_db ... )); */
$db_host = 'localhost'; #change to your host
$db_user = 'chaosdell'; #change to your user name
$db_password = 'sesvul'; #change to your password
$db_name = 'phpchat'; #change to your db name
 
mysql_connect($db_host,$db_user,$db_password) or die(mysql_error());
mysql_select_db($db_name) or die(mysql_error());
?>
/web/test/chat/phpchat/images/smilies/Thumbs.db
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/web/test/chat/phpchat/images/smilies/_vti_cnf/Thumbs.db
0,0 → 1,8
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|05 May 2005 19:05:32 -0000
vti_extenderversion:SR|6.0.2.5516
vti_cacheddtm:TX|05 May 2005 19:05:32 -0000
vti_filesize:IR|8192
vti_backlinkinfo:VX|
vti_syncwith_192.168.177.137\:21/www:TX|05 May 2005 19:05:32 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/images/smilies/_vti_cnf/icon_biggrin.gif
0,0 → 1,11
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|17 Feb 2005 18:55:38 -0000
vti_extenderversion:SR|6.0.2.5516
vti_author:SR|KAKLIK\\Jakub
vti_modifiedby:SR|KAKLIK\\Jakub
vti_timecreated:TR|17 Feb 2005 18:55:38 -0000
vti_cacheddtm:TX|17 Feb 2005 18:55:38 -0000
vti_filesize:IR|202
vti_backlinkinfo:VX|chat/phpchat/index.php
vti_syncwith_192.168.177.137\:21/www:TX|17 Feb 2005 18:55:38 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/images/smilies/_vti_cnf/icon_sad.gif
0,0 → 1,11
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|29 Jan 2005 20:28:28 -0000
vti_extenderversion:SR|6.0.2.5516
vti_author:SR|KAKLIK\\Jakub
vti_modifiedby:SR|KAKLIK\\Jakub
vti_timecreated:TR|29 Jan 2005 20:28:28 -0000
vti_cacheddtm:TX|29 Jan 2005 20:28:28 -0000
vti_filesize:IR|169
vti_backlinkinfo:VX|chat/phpchat/index.php
vti_syncwith_192.168.177.137\:21/www:TX|29 Jan 2005 20:28:28 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/images/smilies/_vti_cnf/icon_smilie.gif
0,0 → 1,11
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|29 Jan 2005 20:26:00 -0000
vti_extenderversion:SR|6.0.2.5516
vti_author:SR|KAKLIK\\Jakub
vti_modifiedby:SR|KAKLIK\\Jakub
vti_timecreated:TR|29 Jan 2005 20:26:00 -0000
vti_cacheddtm:TX|29 Jan 2005 20:26:00 -0000
vti_filesize:IR|754
vti_backlinkinfo:VX|chat/phpchat/index.php
vti_syncwith_192.168.177.137\:21/www:TX|29 Jan 2005 20:26:00 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/images/smilies/_vti_cnf/thumbsdown.gif
0,0 → 1,11
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|05 May 2005 18:37:40 -0000
vti_extenderversion:SR|6.0.2.5516
vti_author:SR|KAKLIK\\Jakub
vti_modifiedby:SR|KAKLIK\\Jakub
vti_timecreated:TR|05 May 2005 18:37:40 -0000
vti_cacheddtm:TX|05 May 2005 18:37:40 -0000
vti_filesize:IR|676
vti_backlinkinfo:VX|chat/phpchat/index.php
vti_syncwith_192.168.177.137\:21/www:TX|05 May 2005 18:37:40 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/images/smilies/_vti_cnf/thumbsup.gif
0,0 → 1,11
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|05 May 2005 18:40:22 -0000
vti_extenderversion:SR|6.0.2.5516
vti_author:SR|KAKLIK\\Jakub
vti_modifiedby:SR|KAKLIK\\Jakub
vti_timecreated:TR|05 May 2005 18:40:22 -0000
vti_cacheddtm:TX|05 May 2005 18:40:22 -0000
vti_filesize:IR|673
vti_backlinkinfo:VX|chat/phpchat/index.php
vti_syncwith_192.168.177.137\:21/www:TX|05 May 2005 18:40:22 -0000
vti_syncofs_192.168.177.137\:21/www:TW|31 Jul 2004 07:23:00 -0000
/web/test/chat/phpchat/images/smilies/icon_biggrin.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/web/test/chat/phpchat/images/smilies/icon_sad.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/web/test/chat/phpchat/images/smilies/icon_smilie.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/web/test/chat/phpchat/images/smilies/thumbsdown.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/web/test/chat/phpchat/images/smilies/thumbsup.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/web/test/chat/phpchat/importsql.sql
0,0 → 1,34
-- phpMyAdmin SQL Dump
-- version 2.6.0-pl3
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 10, 2005 at 09:21 PM
-- Server version: 4.0.23
-- PHP Version: 4.3.10
--
-- Database: `mydb`
--
 
-- --------------------------------------------------------
 
--
-- Table structure for table `shoutbox`
--
 
CREATE TABLE `shoutbox` (
`id` int(11) NOT NULL auto_increment,
`message` text NOT NULL,
`author` varchar(20) NOT NULL default '',
`email` varchar(50) NOT NULL default '',
`date` varchar(20) NOT NULL default '',
`ip` varchar(20) NOT NULL default '',
`lastpost` varchar(20) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM PACK_KEYS=0 AUTO_INCREMENT=26 ;
 
--
-- Dumping data for table `shoutbox`
--
 
INSERT INTO `shoutbox` VALUES (13, 'welcome to the installation', 'clear this in your phpMyAdmin', '', '', '203.36.44.14', '');
/web/test/chat/phpchat/index.htm
0,0 → 1,23
<html>
 
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>PHPChatup</title>
</head>
 
<body>
 
<div style="width: 694; height: 337; border-style: ridge; padding-left: 1; padding-right: 4; background-color: #008284">
<p align="center"><font color="#FFFF00">
<iframe name="I1" width="657" height="297" src="chatdisplay.php">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe></font>
</div>
<p align="center"><iframe name="I2" width="274" height="150" src="shoutbox.php">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe></p>
 
</body>
</html>
/web/test/chat/phpchat/index.php
0,0 → 1,36
<body background="http://home.swiftdsl.com.au/~callum_jones/skater.jpg">
<html>
<head>
<title>PHPChatUp for John Knowles</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
 
<body>
 
<div id="Layer1" style="position:absolute; left:50px; top:13px; width:639px; height:320px; z-index:1"><IFRAME SRC="shout.php" WIDTH=600 HEIGHT=600> TITLE="Display text"></IFRAME></div>
<div id="Layer2" style="position:absolute; left:698px; top:17px; width:265px; height:129px; z-index:2"><? include("shoutbox.php") ?></div>
<div id="Layer3" style="position:absolute; left:699px; top:154px; width:262px; height:176px; z-index:3">
<p><font size="2" face="Arial, Helvetica, sans-serif">Welcome to the Chat script
for Skateandsuch.5u.com. The messages are trunicated every 15 lines.</font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><strong>Emoticons:</strong></font></p>
<p><font size="1" face="Arial, Helvetica, sans-serif"> <font size="2">:d = <img src="images/smilies/icon_biggrin.gif" width="15" height="15"></font></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">:) =<img src="images/smilies/icon_smilie.gif" width="20" height="20"></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">:( =<img src="images/smilies/icon_sad.gif" width="15" height="15"></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">(d)=<img src="images/smilies/thumbsdown.gif" width="27" height="17"></font></p>
<p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">(u)=<img src="images/smilies/thumbsup.gif" width="25" height="18"></font></p>
</div>
<div id="Layer4" style="position:absolute; left:701px; top:475px; width:223px; height:95px; z-index:4"><font face="Verdana, Arial, Helvetica, sans-serif"><strong>This
Chat system is proudly brought to you by Callum Jones of JNetwork. Enjoy!</strong></font></div>
</body>
 
</html>
/web/test/chat/phpchat/shoutbox.php
0,0 → 1,75
<?
$author = trim($_POST['author']);
$email = trim($_POST['email']);
$site = trim($_POST['site']);
 
preg_match("#http://[(www.|)a-z0-9(-|_|)a-z0-9]*.[a-z]*#i", $site, $sit);
$message = str_replace("\n", "<br>", ltrim(rtrim($_POST['message'])));
 
 
/* this "include" item relates to where the db config page is, no need to change it if you haven't moved it */
include('config.php');
 
$message = str_replace("\n", "<br />", ltrim(rtrim($_POST['message'])));
 
if($_POST['submit']) {
$back = "<a href=\"javascript: history.back(-2)\">Back</a>";
if($author == 'Name' || $author == 'user' || $author == 'spam' || !$author){
die("Error! : No name entered.<br>
$back");
}
if(($site) && (!$sit)){
die("Error! : Enter a valid website with 'http://' or no site at all.<br>
$back");
}
if($message == 'Message' || !$message){
die("Error! : No message entered<br>
$back");
}
 
/* strip html tag's, allow only <br> and <a> tags
if you wish to add more tags simple add the tag right after <a> (make sure to use a space after <a>)
you can do it to more then just the message also */
$message = strip_tags($message, '<br> <a>');
$email = strip_tags($email);
$author = strip_tags($author);
 
/* check message length change "200" to change the limit (includeing spaces) */
$message_length = strlen(stripslashes($message));
if($message_length > 200){
die("Messages must be shorter then 200 characters. Your message is: $message_length characters");
}
 
/* this the smilie tag area for each new one you want to add follow the example show below you then must also edit index.htm
"THING_USER_TYPES_IN" => " IMG_LOCATION ",
"ANOTHER_THING" => " ANOTHER_IMAGE "
commas between the smilies, spaces in the quotes with the <img> so they are bunched up or right ontop of text. */
$smiles = array(":)" => " <img src=/images/smilies/icon_smilie.gif> ",
":(" => " <img src=/images/smilies/icon_sad.gif> ",
":D" => " <img src=/images/smilies/icon_biggrin.gif> ");
$message = strtr($message, $smiles);
 
 
/* this inserts everything into the database then closes the connect to prevent hacking. */
mysql_query("INSERT INTO shoutbox (message, author, email, date, ip)
VALUES ('$message','$author','$email','$date','$_SERVER[REMOTE_ADDR]')");
mysql_close();
 
/* thank you page, redirects 5 seconds after the page is loaded. Change the <meta> tag's "content=5" to the number of seconds you want */
echo "Your chat entry has been submitted, the top window will display your new entry shortly<BR>
<a href=shoutbox.php>Return Home</A><meta http-equiv=refresh content=5;URL=shoutbox.php>";
}else{
 
echo "<form method=POST name=shoutbox action=shoutbox.php>
<input name=author type=text value=Name maxlength=15><br>
<textarea name=message cols=18>Message</textarea><br>
<input type=submit name=submit value=Submit>
</form>
<a href=/>Return Home</a>";
}
#OPTIONAL, to save file size, delete the orange comments
?>