<style> a:link,a:visited{ text-decoration:none; } </style>
<?
// SHOW THE DATE AND TIME IN MESSAGES?
$show_date="no";
$smiles="yes";
$smile=array(
":D",
":S",
";(",
":)",
":@",
":(",
":P",
":O",
";)"
);
$image=array(
"<img src=biggrin.gif>",
"<img src=bzz.gif",
"<img src=cry.gif>",
"<img src=happy.gif>",
"<img src=mad.gif>",
"<img src=sad.gif>",
"<img src=thoung.gif>",
"<img src=wow.gif>",
"<img src=blinker.gif>"
);
/////////////////
## FONT COLORS ##
/////////////////
$timecolor="#4F4F4F";
$namecolor="#4FC6FF";
$message_color="#808080";
$input_font_color="#4FC6FF";
///////////////////////
## SCROLL BAR COLORS (IE 5.5+ ONLY) ##
///////////////////////
$face="#363636";
$shadow="363636";
$highlight="363636";
$_3dlight="363636";
$darkshadow="363636";
$track="#363636";
$arrow="#808080";
/////////////////
## LINK COLORS ##
/////////////////
$link_color="#808080";
$active_link="#808080";
$visited_link="#808080";
$hover_link="#4FC6FF";
///////////////////////
## BACKGROUND COLORS ##
///////////////////////
$bgcolor="#363636";
$input_bgcolor="#363636";
//////////////////////////////////////////
## ALTERNATING BACKGROUND TABLE COLORS ##
//////////////////////////////////////////
$alt_table1="#2D2D2D";
$alt_table2="#363636";
//////////////////////////////////
## FILE NAME WHERE DATA IS HELD ##
//////////////////////////////////
$filename="shout.txt";
//////////////////////////////////
##### END OF COLOR CONFIGURATION #####
///////////////////////////////////
///////////////////////////////////////////////////////////
#### BEGIN OF CSS CONFIGURATION. DO NOT CHANGE THE PHP ####
#### WITHIN THE CSS UNLESS YOU KNOW WHAT YOU ARE ####
#### DOING. ONLY CHANGE BORDERS, FONTS, AND SIZES. ####
///////////////////////////////////////////////////////////
$fp=fopen($filename, "r");
echo "<body bgcolor=".$bgcolor." topmargin=0 leftmargin=0 rightmargin=0>
<style>
table {
font-family: Verdana; color: ".$message_color."; font-size: 10
}
a:link {
font-family: Verdana; color:".$link_color." ;font-size: 10px; font-style: Regular;
}
a:active {
font-family: Verdana; color:".$active_link."; font-size: 10px; font-style: Regular;
}
a:visited {
font-family: Verdana; color:".$visited_link."; font-size: 10px; font-style: Regular;
}
a:hover {
font-family: Verdana; color:".$hover_link."; font-size: 10px; font-style: Regular;
}
input {
font-family: Verdana; font-size: 10px; color: ".$input_font_color."; background-color:".$input_bgcolor."; border: solid 1px; border-color: #4F4F4F
}
body {
scrollbar-face-color: ".$face.";
scrollbar-shadow-color: ".$shadow.";
scrollbar-highlight-color: ".$highlight.";
scrollbar-3dlight-color: ".$_3dlight.";
scrollbar-darkshadow-color: ".$darkshadow.";
scrollbar-track-color: ".$track.";
scrollbar-arrow-color: ".$arrow."; }
</style>";
///////////////////////////////////
#### END OF CSS CONFIGURATION ####
//////////////////////////////////
//////////////////////////////////////////////////
#### DO NOT CHANGE ANYTHING BEYOND THIS POINT ####
#### UNLESS YOU KNOW WHAT YOU ARE DOING ####
//////////////////////////////////////////////////
echo "<form method=get action=shout.php>
<table width=50% border=0>
<tr>
<td>
Name/website:<br>
<input type=text size=20 name=name maxlength=20>
</td>
<td>
</tr>
</table>
<table width=50% border=0>
<tr>
<td>
Message:<br>
<input type=text name=comment size=20 maxlength=500>
</td>
</tr>
<tr>
<td>
<input type=submit value=Shout!>
</td>
</tr>
</form>";
if(filesize($filename)==0)
{
}
else
{
while (!feof($fp))
{
$entries=fgetcsv($fp, 900, "\t");
$entries[0]=strip_tags($entries[0]);
$entries[1]=strip_tags($entries[1]);
$entries[2]=strip_tags($entries[2]);
$entries[3]=strip_tags($entries[3]);
$color=$color+1;
if ($smiles=="yes")
{
$entries[2]=str_replace($smile,$image,$entries[2]);
}
$num=$color/2;
$y=(integer)$num;
$entries[0]=stripslashes($entries[0]);
$entries[1]=stripslashes($entries[1]);
$entries[2]=stripslashes($entries[2]);
$entries[3]=stripslashes($entries[3]);
if($num==$y)
{
$echo_date = "<div align=left><left><table width=100% border=0 bgcolor=".$alt_table2."><tr><td><center><font color=".$timecolor."><u>".$entries[3]."</u></font></left></td></tr></table></center></div>";
if ($show_date == "yes")
{
echo $echo_date;
}
echo "<div align=center><center><table width=100% border=0 bgcolor=".$alt_table2."><tr>";
}
if($num<>$y)
{
$echo_date = "<div align=center><center><table width=100% border=0 bgcolor=".$alt_table1."><tr><td><center><font color=".$timecolor."><u>".$entries[3]."</u></font></center></td></tr></table></center></div>";
if ($show_date == "yes")
{
echo $echo_date;
}
echo "<div align=center><center><table width=100% border=0 bgcolor=".$alt_table1."><tr>";
}
if($entries[1]=="
http://" || $entries[1]=="")
{
echo "<td width=100% valign=top><font color=".$namecolor.">".$entries[0]."</font>: ";
$commentsA= explode(" ", $entries[2]);
for($x=0;$x<count($commentsA);$x++)
{
if(substr($commentsA[$x],0,4) == "www." || substr($commentsA[$x],0,7) == "
http://")
{
$replace=$commentsA[$x];
if(substr($commentsA[$x],0,7) == "
http://")
{
$r_w="<a href=".$commentsA[$x]." target=_blank>".$commentsA[$x]."</a>";
}
else
{
$r_w="<a href=http://".$commentsA[$x]." target=_blank>".$commentsA[$x]."</a>";
}
$commentsB=str_replace($replace,$r_w,$commentsA[$x]);
echo $commentsB." ";
}
else
{
echo $commentsA[$x]." ";
}
}
echo "</td></tr>";
}
else
{
echo "<td width=100% valign=top><b><a href=".$entries[1]." target=_blank>".$entries[0]."</a>  </b>";
$commentsA= explode(" ", $entries[2]);
for($x=0;$x<count($commentsA);$x++)
{
if(substr($commentsA[$x],0,4) == "www." || substr($commentsA[$x],0,7) == "
http://")
{
$replace=$commentsA[$x];
if(substr($commentsA[$x],0,7) == "
http://")
{
$r_w="<a href=".$commentsA[$x]." target=_blank>".$commentsA[$x]."</a>";
}
else
{
$r_w="<a href=http://".$commentsA[$x]." target=_blank>".$commentsA[$x]."</a>";
}
$commentsB=str_replace($replace,$r_w,$commentsA[$x]);
echo $commentsB." ";
}
else
{
echo $commentsA[$x]." ";
}
}
echo "</td></tr>";
}
echo "</table></center></div>";
}
fclose($fp);
}
?>