/web/test/chat/shoutit/ShoutBoxFiles/ShoutAdmin.php |
---|
0,0 → 1,136 |
<?php |
session_start(); |
include 'shoutoptions.php'; |
#used for the database variables |
include 'shoutfunctions.php'; |
#used for lefts() cuts down on the message if over 400. |
#Just in case people decide to let the limit be higher than that |
?> |
<html><head> |
<title>Admin Section</title> |
<link href="shout.css" rel="stylesheet" type="text/css" /> |
</head> |
<body> |
<?php |
if($_SESSION['level']=='Admin'){ |
#if the session variable level is set to Admin |
echo '<a href="logout.php">Logout?</a><br />'; |
$db = mysql_connect("$dbHost", "$dbUser", "$dbPass") or die("Unable to connect!"); |
#connect to the database |
mysql_select_db($dbname,$db); |
#select the database |
if ($_GET['ban']!=NULL) |
#if the variable Ban is not null |
{ |
$IP = $_GET['ban']; |
#since we sent an IP we're calling our variable $IP |
echo 'Banned, <br />'; |
$i=0; |
$requete = "SELECT IP FROM ShoutBoxBanned WHERE IP='$IP'"; |
$result = mysql_query ($requete,$db); |
if ($pollart = mysql_fetch_object($result)!=NULL) |
{ |
#If he's already been banned, let's not add him again |
$i=1; |
} |
if($i==0){ |
$sql="INSERT INTO ShoutBoxBanned (IP) VALUES ('$IP')"; |
#insert the guy into the shoutbox banned table |
mysql_query($sql, $db); |
#our query |
} |
} |
if ($_GET['unban']!=NULL) |
#if the variable unban is not null |
{ |
$unban = $_GET['unban']; |
#get the unban, it's an IP, but I called it unban |
$requete2 = "DELETE FROM ShoutBoxBanned WHERE ID='$unban'"; |
#our query to delete him from the database |
mysql_query ($requete2,$db); |
#executing query |
} |
if ($_GET['del']!=NULL) |
#if del does no equal null |
{ |
$del = $_GET['del']; |
#get our variable |
$requete2 = "DELETE FROM ShoutBox WHERE ID='$del'"; |
#our query to delete the message |
mysql_query ($requete2,$db); |
#executing it |
} |
$db = mysql_connect("$dbHost", "$dbUser", "$dbPass") or die("Unable to connect!"); |
#connecting to database |
mysql_select_db($dbname,$db); |
#select the database |
$requete = "SELECT ID, Name, Message, IP FROM ShoutBox ORDER BY Date DESC"; |
#our query |
$result = mysql_query ($requete,$db); |
#executing the query |
echo '<h4>Messages</h4>'; |
$i=0; |
#we're using it as a switch |
while ($pollart = mysql_fetch_object($result)) |
#while there are rows |
{ |
if (($Alternate==1)&&($i==0)) |
#will only display if i is 0 and alternate mode, set in shoutoptions, is on |
{ |
echo '<div class="shoutentry2">'; |
echo $pollart->Name.' - <a href="'.$_SERVER['SCRIPT_NAME'].'?del='.$pollart->ID.'">Delete Message</a> - <a href="'.$_SERVER['SCRIPT_NAME'].'?ban='.$pollart->IP.'">Ban User</a><br />'.lefts($pollart->Message, 400).'<br /></div>'; |
$i=1; |
} |
else { |
echo '<div class="shoutentry">'; |
echo $pollart->Name.' - <a href="'.$_SERVER['SCRIPT_NAME'].'?del='.$pollart->ID.'">Delete Message</a> - <a href="'.$_SERVER['SCRIPT_NAME'].'?ban='.$pollart->IP.'">Ban User</a><br />'.lefts($pollart->Message, 400).'<br /></div>'; |
$i=0; |
} |
} |
mysql_free_result($result); |
#free the result... sometimes I forget this... it's not needed, when it finishes it frees it anyhow |
$requete = "SELECT ID,IP FROM ShoutBoxBanned ORDER BY IP DESC"; |
#query to select the IP and IDs of who has been banned |
$result = mysql_query ($requete,$db); |
#query that query |
echo '<h4>Current Banned IPs</h4>'; |
while ($pollart = mysql_fetch_object($result)) |
{ |
echo $pollart->IP.' <a href="'.$_SERVER['SCRIPT_NAME'].'?unban='.$pollart->ID.'">Unban</a><br />'; |
} |
mysql_free_result($result); |
} |
else |
{ |
echo 'Sorry, you don\'t have clearance to view this page.'; |
#if they're not logged in |
} |
?> |
</body> |
</html> |
/web/test/chat/shoutit/ShoutBoxFiles/ShoutBox.php |
---|
0,0 → 1,238 |
<?php |
#Shout It! Version 1.0 By Tim Lovett of www.alphibia.com |
#You may not take credit for the code... |
#You may redistribute if you keep the original zip intact |
# www.weborum.com <- if you have any questions regarding the script. |
#The smilies are free from an open directory so I have included them. |
#http://members.shaw.ca/wenpigsfly/smileys/index.htm |
#Some others were made by friends |
#One was made by me. |
#None were stolen, that open directory grants usage of theirs. :-) |
#If you want any more smilies feel free to go there. |
include 'ShoutBoxFiles/shoutoptions.php'; |
#include the shoutoptions.php file with admin's options... |
include 'ShoutBoxFiles/shoutfunctions.php'; |
#includes all of the functions required |
$Outside = 0; |
$IP = $_SERVER["REMOTE_ADDR"]; |
#logs user IP (used for many different parts) |
if ((isset($_GET['SelfDel']))&&($SelfDelete==1)) |
#if selfdel is set and the admin has turned on selfdeleting |
{ |
$DelID = dbInsans($_GET['SelfDel']); |
#sets DelID to the SelfDel, it holds the ID of the one you want to delete |
$ShoutDisplay = $ShowNormal; |
#will only get rid of ones being shown |
$db = mysql_connect("$dbHost","$dbUser","$dbPass"); |
#connect to database |
mysql_select_db($dbname,$db); |
#select database |
$requete = "SELECT * FROM ShoutBox ORDER BY Date DESC LIMIT 0,$ShoutDisplay"; |
#We want them only to be able to delete from the group that's up there now... |
#not find the ID of one of their older archived and delete doing this protects that |
#because instead of just grabbing the row, we're grabbing the shown ones and |
#checking to see if we find the ID, if we find the ID and the IPs match, it's nuked |
$result = mysql_query ($requete,$db); |
while ($article = mysql_fetch_object($result)) |
#while we scroll through current ones |
{ |
if($DelID==$article->ID) |
#if ID is in the current ones |
{ |
if($IP==$article->IP) |
#if user owns the ID (if IPs match.) |
{ |
$requete2 = "DELETE FROM ShoutBox WHERE ID='$DelID'"; |
#delete the item where the ID is the DelID |
mysql_query ($requete2,$db); |
#query the database with the query... |
} |
else |
echo '<span class="shoutentry">Your IP does not match.</span>'; |
#the IP does not match... |
} |
} |
} |
#the following no script is required for legal reasons |
?> |
<noscript> |
For a free easily customizable shout box/tag board script, head to <a href="www.alphibia.com">www.alphibia.com</a>. |
</noscript> |
<?php |
if (isset($_POST['shoutsubmit'])) |
#if the user has clicked the submit button |
{ |
$Name = lefts(dbInsans($_POST['ShoutName']),$NameCutOff); |
# Users Name, it's cut off at the name cutoff, useful for formatting restrictions |
$URL = dbInsans($_POST['ShoutURL']); |
#for URL/Email |
$Date = time(); |
#Time user is posting... |
$Message = dbInsans(lefts($_POST['Message'], $MessageCutOff)); |
#User's message... lefts cuts it off and dbInsans protects againsts hackers |
#the next few pieces of code check the user IP against database at ID and the date |
$r=0; |
#We're going to use the variable r as a switch to determine if they're in the database. |
$db = mysql_connect("$dbHost","$dbUser","$dbPass"); |
#connecting to the database area |
mysql_select_db($dbname,$db); |
#selecting our database |
$requete = "SELECT Date FROM ShoutBox WHERE IP='$IP' ORDER By Date Desc LIMIT 1"; |
#A query to pull the last date from the owner of this IP |
$result = mysql_query ($requete,$db); |
#Should return ips of voters |
$article = mysql_fetch_object($result); |
#since it's only 1 item we want, the first |
$u=0;$y=0; |
if ($Message==NULL) |
$u=1; #if it's empty... |
if (($Date-$article->Date)<$ShoutWait) |
$u=1; #if the article is posted too soon from last |
#That was flood control. |
#Check and see if user is banned. :-X |
$requete = "SELECT IP FROM ShoutBoxBanned WHERE IP='$IP'"; |
#A query to pull our guy if he's there |
$result = mysql_query ($requete,$db); |
#Should return ip if he's there |
$article = mysql_fetch_object($result); |
if ($article->IP!=NULL) |
$y=1; #if it's not empty, he's there |
if ($u==0) |
#if the message wasn't null and he isn't flooding |
{ |
if($y==0) |
#if he's not banned |
{ |
#the following sets his cookies |
?> |
<script language="JavaScript" type="text/javascript"> |
var now = new Date(); |
now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000); |
setCookie("ShoutName", "<?php echo $Name;?>", now); |
setCookie("ShoutURL", "<?php echo $URL;?>", now); |
</script> |
<?php |
$sql = "INSERT INTO ShoutBox (Date, URL, IP, Name, Message) VALUES ('$Date', '$URL', '$IP', '$Name', '$Message')"; |
#Creates the insert query string. |
mysql_query($sql, $db); |
#Queries the database and adds the user. |
} |
else |
{ |
echo '<span class="shoutentry">Sorry the admin banned you from posting.</span><br />'; |
#let him know he's been banned |
} |
} |
else |
{ |
echo '<span class="shoutentry">Flood Protection is enabled, sorry.</span><br />'; |
#if he's sending empty messages or flooding, he gets this |
} |
} |
#Code to delete after rows... |
$db = mysql_connect("$dbHost","$dbUser","$dbPass"); |
#connecting to the database area |
mysql_select_db($dbname,$db); |
#selecting our database |
$MaxRows2 = $MaxRows-1; |
#used to create limit |
$requete = "SELECT Date FROM ShoutBox ORDER By Date Desc LIMIT $MaxRows2,$MaxRows"; |
#grabs the $MaxRow(set in useroptions)'s entry |
$result = mysql_query ($requete,$db); |
#Should return the MaxRow's date |
$article = mysql_fetch_object($result); |
#Only need one article so not looping |
$Last = $article->Date; |
#We grab his date |
$requete2 = "DELETE FROM ShoutBox WHERE Date<'$Last'"; |
#deletes anything before that entry... |
mysql_query ($requete2,$db); |
#queries the query |
$ShoutDisplay = $ShowNormal; |
#Set the display to normal, when entries is called ShoutDisplay is used to determine |
#how many to show... |
if ($IFRAME==1) |
echo '<iframe class="shoutiframe" src="ShoutBoxFiles/shoutiframe.php"></iframe>'; |
else |
include 'ShoutBoxFiles/shoutentries.php'; |
#include the entries |
?> |
<a class="shoutlink" href="javascript:shoutbox('ShoutBoxFiles/shoutboxarch.php')">Display Archived Shouts</a> |
<br /> |
<form method="post" name="shoutbox" action="<?php echo $_SERVER['SCRIPT_NAME'];?>"> |
<span class="shoutinput">Name : </span><br /><input type="text" name="ShoutName" /><br /> |
<br /> |
<span class="shoutinput">Email/URL : </span><br /><input type="text" name="ShoutURL" /><br /> |
<br /> |
<span class="shoutinput">Message : </span><br /> |
<textarea name="Message" rows="3" cols="18" class="shouttextarea" onkeyup="TrackCount(this,'textcount',<?php echo $MessageCutOff;?>)" onkeypress="LimitText(this,<?php echo $MessageCutOff;?>)"></textarea><br /> |
<span class="shoutinput">Characters remaining: </span> <input type="text" name="textcount" size="3" |
value="<?php echo $MessageCutOff;?>" /><br /> |
<input type="submit" name="shoutsubmit" value="Submit" /> <a class="shoutlink" href="javascript:shoutbox('ShoutBoxFiles/shoutboxpopup.php')">Shout-Code!</a> |
</form> |
<script language="JavaScript" type="text/javascript"> |
var cookievalu = getCookie("ShoutName"); |
if (cookievalu!=null) |
document.shoutbox.ShoutName.value = cookievalu; |
else |
document.shoutbox.ShoutName.value =""; |
var cookieval = getCookie("ShoutURL"); |
if (cookieval!=null){ |
document.shoutbox.ShoutURL.value = cookieval; |
} |
else |
document.shoutbox.ShoutURL.value =""; |
</script> |
</div> |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/ShoutAdmin.php |
---|
0,0 → 1,19 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 12:51:06 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_author:SR|KAKLIK\\Jakub |
vti_modifiedby:SR|KAKLIK\\Jakub |
vti_timecreated:TR|31 Jul 2005 12:51:06 -0000 |
vti_cacheddtm:TX|31 Jul 2005 12:51:06 -0000 |
vti_filesize:IR|3640 |
vti_cachedtitle:SR|Admin Section |
vti_cachedbodystyle:SR|<body> |
vti_cachedlinkinfo:VX|Q|shout.css |
vti_cachedsvcrellinks:VX|FQUS|chat/shoutit/ShoutBoxFiles/shout.css |
vti_cachedneedsrewrite:BR|false |
vti_cachedhasbots:BR|false |
vti_cachedhastheme:BR|false |
vti_cachedhasborder:BR|false |
vti_charset:SR|windows-1250 |
vti_title:SR|Admin Section |
vti_backlinkinfo:VX| |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/ShoutBox.php |
---|
0,0 → 1,16 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 12:51:07 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_backlinkinfo:VX|content2.htm |
vti_author:SR|KAKLIK\\Jakub |
vti_modifiedby:SR|KAKLIK\\Jakub |
vti_timecreated:TR|31 Jul 2005 12:51:07 -0000 |
vti_cacheddtm:TX|31 Jul 2005 12:51:07 -0000 |
vti_filesize:IR|7565 |
vti_cachedlinkinfo:VX|H|www.alphibia.com H|javascript:shoutbox('ShoutBoxFiles/shoutboxarch.php') A|< H|javascript:shoutbox('ShoutBoxFiles/shoutboxpopup.php') |
vti_cachedsvcrellinks:VX|NHUS|chat/shoutit/ShoutBoxFiles/www.alphibia.com SHUS|javascript:shoutbox('ShoutBoxFiles/shoutboxarch.php') DAUS|chat/shoutit/ShoutBoxFiles/< SHUS|javascript:shoutbox('ShoutBoxFiles/shoutboxpopup.php') |
vti_cachedneedsrewrite:BR|false |
vti_cachedhasbots:BR|false |
vti_cachedhastheme:BR|false |
vti_cachedhasborder:BR|false |
vti_charset:SR|windows-1250 |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/colors.txt |
---|
0,0 → 1,6 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 12:51:05 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_cacheddtm:TX|31 Jul 2005 12:51:05 -0000 |
vti_filesize:IR|114 |
vti_backlinkinfo:VX| |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/login.php |
---|
0,0 → 1,14 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 12:51:05 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_backlinkinfo:VX|chat/shoutit/ShoutLogin.php |
vti_author:SR|KAKLIK\\Jakub |
vti_modifiedby:SR|KAKLIK\\Jakub |
vti_timecreated:TR|31 Jul 2005 12:51:05 -0000 |
vti_cacheddtm:TX|31 Jul 2005 12:51:05 -0000 |
vti_filesize:IR|1352 |
vti_cachedneedsrewrite:BR|false |
vti_cachedhasbots:BR|false |
vti_cachedhastheme:BR|false |
vti_cachedhasborder:BR|false |
vti_charset:SR|windows-1250 |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/logout.php |
---|
0,0 → 1,14 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 12:51:06 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_author:SR|KAKLIK\\Jakub |
vti_modifiedby:SR|KAKLIK\\Jakub |
vti_timecreated:TR|31 Jul 2005 12:51:06 -0000 |
vti_cacheddtm:TX|31 Jul 2005 12:51:06 -0000 |
vti_filesize:IR|414 |
vti_cachedneedsrewrite:BR|false |
vti_cachedhasbots:BR|false |
vti_cachedhastheme:BR|false |
vti_cachedhasborder:BR|false |
vti_charset:SR|windows-1250 |
vti_backlinkinfo:VX| |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/shout.css |
---|
0,0 → 1,9 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 12:51:06 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_backlinkinfo:VX|chat/shoutit/ShoutBoxFiles/shoutboxarch.php chat/shoutit/ShoutBoxFiles/ShoutAdmin.php chat/shoutit/ShoutBoxFiles/shoutiframe.php chat/shoutit/ShoutLogin.php |
vti_author:SR|KAKLIK\\Jakub |
vti_modifiedby:SR|KAKLIK\\Jakub |
vti_timecreated:TR|31 Jul 2005 12:51:06 -0000 |
vti_cacheddtm:TX|31 Jul 2005 12:51:06 -0000 |
vti_filesize:IR|837 |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/shoutboxarch.php |
---|
0,0 → 1,17 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 12:51:07 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_author:SR|KAKLIK\\Jakub |
vti_modifiedby:SR|KAKLIK\\Jakub |
vti_timecreated:TR|31 Jul 2005 12:51:07 -0000 |
vti_cacheddtm:TX|31 Jul 2005 12:51:07 -0000 |
vti_filesize:IR|638 |
vti_cachedbodystyle:SR|<body> |
vti_cachedlinkinfo:VX|Q|shout.css |
vti_cachedsvcrellinks:VX|FQUS|chat/shoutit/ShoutBoxFiles/shout.css |
vti_cachedneedsrewrite:BR|false |
vti_cachedhasbots:BR|false |
vti_cachedhastheme:BR|false |
vti_cachedhasborder:BR|false |
vti_charset:SR|windows-1250 |
vti_backlinkinfo:VX| |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/shoutboxpopup.php |
---|
0,0 → 1,17 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 12:51:07 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_author:SR|KAKLIK\\Jakub |
vti_modifiedby:SR|KAKLIK\\Jakub |
vti_timecreated:TR|31 Jul 2005 12:51:07 -0000 |
vti_cacheddtm:TX|31 Jul 2005 12:51:07 -0000 |
vti_filesize:IR|3890 |
vti_cachedbodystyle:SR|<body> |
vti_cachedlinkinfo:VX|H|javascript:Deporter('[b][/b]') H|javascript:Deporter('[b][/b]') H|javascript:Deporter('[u][/u]') H|javascript:Deporter('[u][/u]') H|javascript:Deporter('[i][/i]') H|javascript:Deporter('[i][/i]') |
vti_cachedsvcrellinks:VX|SHUS|javascript:Deporter('[b][/b]') SHUS|javascript:Deporter('[b][/b]') SHUS|javascript:Deporter('[u][/u]') SHUS|javascript:Deporter('[u][/u]') SHUS|javascript:Deporter('[i][/i]') SHUS|javascript:Deporter('[i][/i]') |
vti_cachedneedsrewrite:BR|false |
vti_cachedhasbots:BR|false |
vti_cachedhastheme:BR|false |
vti_cachedhasborder:BR|false |
vti_charset:SR|windows-1250 |
vti_backlinkinfo:VX| |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/shoutentries.php |
---|
0,0 → 1,14 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 12:51:07 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_author:SR|KAKLIK\\Jakub |
vti_modifiedby:SR|KAKLIK\\Jakub |
vti_timecreated:TR|31 Jul 2005 12:51:07 -0000 |
vti_cacheddtm:TX|31 Jul 2005 12:51:07 -0000 |
vti_filesize:IR|4263 |
vti_cachedneedsrewrite:BR|false |
vti_cachedhasbots:BR|false |
vti_cachedhastheme:BR|false |
vti_cachedhasborder:BR|false |
vti_charset:SR|windows-1250 |
vti_backlinkinfo:VX| |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/shoutfunctions.php |
---|
0,0 → 1,16 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 12:51:08 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_author:SR|KAKLIK\\Jakub |
vti_modifiedby:SR|KAKLIK\\Jakub |
vti_timecreated:TR|31 Jul 2005 12:51:08 -0000 |
vti_cacheddtm:TX|31 Jul 2005 12:51:08 -0000 |
vti_filesize:IR|10977 |
vti_cachedlinkinfo:VX|H|www.alphibia.com |
vti_cachedsvcrellinks:VX|NHUS|chat/shoutit/ShoutBoxFiles/www.alphibia.com |
vti_cachedneedsrewrite:BR|false |
vti_cachedhasbots:BR|false |
vti_cachedhastheme:BR|false |
vti_cachedhasborder:BR|false |
vti_charset:SR|windows-1250 |
vti_backlinkinfo:VX| |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/shoutiframe.php |
---|
0,0 → 1,17 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 12:51:08 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_author:SR|KAKLIK\\Jakub |
vti_modifiedby:SR|KAKLIK\\Jakub |
vti_timecreated:TR|31 Jul 2005 12:51:08 -0000 |
vti_cacheddtm:TX|31 Jul 2005 12:51:08 -0000 |
vti_filesize:IR|651 |
vti_cachedbodystyle:SR|<body> |
vti_cachedlinkinfo:VX|Q|shout.css |
vti_cachedsvcrellinks:VX|FQUS|chat/shoutit/ShoutBoxFiles/shout.css |
vti_cachedneedsrewrite:BR|false |
vti_cachedhasbots:BR|false |
vti_cachedhastheme:BR|false |
vti_cachedhasborder:BR|false |
vti_charset:SR|windows-1250 |
vti_backlinkinfo:VX| |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/shoutoptions.php |
---|
0,0 → 1,15 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 13:06:44 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_author:SR|KAKLIK\\Jakub |
vti_modifiedby:SR|KAKLIK\\Jakub |
vti_timecreated:TR|31 Jul 2005 12:51:08 -0000 |
vti_backlinkinfo:VX| |
vti_nexttolasttimemodified:TW|31 Jul 2005 12:51:08 -0000 |
vti_cacheddtm:TX|31 Jul 2005 13:06:44 -0000 |
vti_filesize:IR|1511 |
vti_cachedneedsrewrite:BR|false |
vti_cachedhasbots:BR|false |
vti_cachedhastheme:BR|false |
vti_cachedhasborder:BR|false |
vti_charset:SR|windows-1250 |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/smilies.txt |
---|
0,0 → 1,6 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 12:51:08 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_cacheddtm:TX|31 Jul 2005 12:51:08 -0000 |
vti_filesize:IR|713 |
vti_backlinkinfo:VX| |
/web/test/chat/shoutit/ShoutBoxFiles/_vti_cnf/swears.txt |
---|
0,0 → 1,6 |
vti_encoding:SR|utf8-nl |
vti_timelastmodified:TR|31 Jul 2005 12:51:08 -0000 |
vti_extenderversion:SR|6.0.2.5516 |
vti_cacheddtm:TX|31 Jul 2005 12:51:08 -0000 |
vti_filesize:IR|201 |
vti_backlinkinfo:VX| |
/web/test/chat/shoutit/ShoutBoxFiles/colors.txt |
---|
0,0 → 1,8 |
blue | blue |
red | red |
purple | purple |
orange | orange |
yellow | yellow |
grey | grey |
green | green |
teal | #099 |
/web/test/chat/shoutit/ShoutBoxFiles/login.php |
---|
0,0 → 1,51 |
<?php |
session_start(); |
#required when using sessions to put that at the top of each page |
include 'shoutfunctions.php'; |
#used for dbinsans |
include 'shoutoptions.php'; |
#used for database vars |
mysql_connect("$dbHost", "$dbUser", "$dbPass") or die("Unable to connect!"); |
#connect |
mysql_select_db ($dbname); |
#select the database |
$PW = md5(dbinsans($_POST['password'])); |
#md5 encryption on password |
$User = dbinsans($_POST['username']); |
#only does the hacker hole closing on username |
$result = mysql_query("SELECT * FROM ShoutAdmin WHERE username='$User' AND password='$PW'"); |
#creates and executes query returns result |
$row =mysql_fetch_array($result); |
#fetches a row |
if ($row['password']!= md5($_POST['password'])){ |
#if the passwords don't match |
} else { |
$r=1; |
#we're using it to tell we got a match |
$_SESSION['username'] = $row['username']; |
#set the session variable username to the users name |
$_SESSION['password'] = $row['password']; |
#set the session variable password to the users password |
$_SESSION['level'] = $row['level']; |
#set the session variable level to the level |
} |
if ($r!=1) |
echo 'Sorry, your password is incorrect. Remember, it\'s case sensitive.'; |
else |
echo 'Thank you for logging in, <a href="ShoutAdmin.php">Click Here</a> to continue.'; |
?> |
/web/test/chat/shoutit/ShoutBoxFiles/logout.php |
---|
0,0 → 1,14 |
<?php |
session_start(); |
session_destroy(); |
$_SESSION = array(); |
#That cleans out the session variables and ends the session |
$title = 'Logged Out'; |
echo '<html><head><title>'; |
echo $title; |
echo '</title>'; |
echo '</head><body>'; |
echo '<br />Thank you, you have been logged out. Please come back later.'; |
echo '<br /><a href="../ShoutLogin.php">Click Here</a> to log back in.'; |
echo '</body></html>'; |
?> |
/web/test/chat/shoutit/ShoutBoxFiles/shout.css |
---|
0,0 → 1,50 |
.shoutinput{ FONT-SIZE: 11px; |
COLOR: #003366;} |
.shoutiframe {} |
a.shoutlink |
{ |
FONT-SIZE: 11px; |
COLOR: #003366; |
FONT-FAMILY: Arial; |
TEXT-DECORATION: none |
} |
a.shoutlink:hover |
{ |
FONT-SIZE: 11px; |
COLOR: black; |
FONT-FAMILY: Arial; |
TEXT-DECORATION: none |
} |
.fullshout |
{ |
padding: 0 10px 0 10px;background-color:#FFF; |
} |
.shoutentry{ |
width:100%;background-color:#FFF;FONT-SIZE: 10px;word-wrap:break-word; |
} |
a.shoutname{ |
FONT-SIZE: 14px;TEXT-DECORATION: none;background-color:#FFF; |
} |
a.shoutname:hover |
{ |
COLOR: black; |
} |
.shoutmessage{} |
.shoutmessage2{} |
.shoutentry2{ |
width:100%;background-color:#FFC;FONT-SIZE: 10px;word-wrap:break-word; |
} |
a.shoutname2 |
{ |
FONT-SIZE: 14px;TEXT-DECORATION: none;background-color:#FFC; |
} |
a.shoutname:hover{ |
COLOR: black; |
} |
/web/test/chat/shoutit/ShoutBoxFiles/shoutboxarch.php |
---|
0,0 → 1,24 |
<html><head><link href="shout.css" rel="stylesheet" type="text/css" /> |
</head><body> |
<?php |
$Outside = 1; |
include 'shoutoptions.php'; |
#User info file |
#(contains variables these functions and entries function with) |
include 'shoutfunctions.php'; |
#ShoutFunctions file, contains functions used in this script. |
$ShoutDisplay = $ShowArchived; |
#ShowArchived is a variable in the shoutoptions page. |
#ShoutDisplay is a variable called in the the shoutentries page |
#ShoutDisplay determines how many are shown |
include 'shoutentries.php'; |
echo '</div>'; |
#closes the fullshout div opened in shout entries |
?> |
</body></html> |
/web/test/chat/shoutit/ShoutBoxFiles/shoutboxpopup.php |
---|
0,0 → 1,122 |
<html><head> |
<style type="text/css"> |
td.header {background-color:#FFF; font-weight:700;text-align:center;} |
td.cells {background-color:#FFF;width:50%;text-align:center} |
img {border:0;} |
a |
{ |
FONT-SIZE: 11px; |
COLOR: #003366; |
FONT-FAMILY: Arial; |
TEXT-DECORATION: none |
} |
a:hover |
{ |
FONT-SIZE: 11px; |
COLOR: black; |
FONT-FAMILY: Arial; |
TEXT-DECORATION: none |
} |
</style> |
<script language="JavaScript" type="text/javascript"> |
<!--// Displays Deports a value... :-) //--> |
function Deporter(value) |
{ |
opener.document.shoutbox.Message.value += ' ' + value + ' '; |
} |
</script> |
</head> |
<body> |
<table style="background-color:#CCC;width:100%" cellpadding="1"> |
<?php |
include 'shoutoptions.php'; |
#includes the user options |
if ($smilies==1) |
#checks to see if smilies is turned on, if so it begins the if statement |
{ |
?> |
<tr> |
<td colspan="2" class="header">Smilies</td> |
</tr> |
<?php |
$file = file("smilies.txt"); |
#open the smilies file |
foreach($file as $smile) |
#When a file is opened in PHP, every line is turned into an array object |
#for each loops through the array foreach($nameofarray as $whatthisrowwillbecalled) |
#it goes through until the array is fully shown |
{ |
echo '<tr><td class="cells">'; #some formatting... |
list($old,$new) = explode("\|/", $smile); |
#In this array object when it finds \|/ it seperates the left and right of it |
#it turns them each into a variable, very useful PHP function |
$old = trim($old); |
#trims off the spaces before and after |
echo '<a href="javascript:Deporter(\''.$old.'\')">'.$old.'</a></td><td class="cells">'; |
# displays our Deporter code deporting the old version of the smilie |
#it can be clicked. |
$new = trim($new); |
#trims off the spaces before and after |
echo '<a href="javascript:Deporter(\''.$old.'\')"><img src="../'.$directory.'/'.$new.'" alt="" /></a></td></tr>'; |
#does the same as the old version, but it shows a picture to click |
} |
echo '<tr><td colspan="2" style="background-color:#FFF;"> </td></tr>'; |
#the brace following this closes the if statement about the smilies |
#the echo above will display an empty row for display purposes if the smilies ran |
} |
?> |
<tr> |
<td colspan="2" class="header">Shout-Code</td> |
</tr> |
<tr><td class="cells"><a href="javascript:Deporter('[b][/b]')">[b]Bold[/b]</a></td><td class="cells"><a href="javascript:Deporter('[b][/b]')"><b>Bold</b></a></td></tr> |
<tr><td class="cells"><a href="javascript:Deporter('[u][/u]')">[u]Underline[/u]</a></td><td class="cells"><a href="javascript:Deporter('[u][/u]')"><u>Underline</u></a></td></tr> |
<tr><td class="cells"><a href="javascript:Deporter('[i][/i]')">[i]Italics[/i]</a></td><td class="cells"><a href="javascript:Deporter('[i][/i]')"><i>Italics</i></a></td></tr> |
<?php |
#the above tds are BB code I did by hand, there aren't too many, so I figured I'd do it |
if ($colors==1) |
#similiar to the smilies only runs if colors is on |
{ |
echo '<tr><td colspan="2" style="background-color:#FFF;"> </td></tr>'; |
#only adds this extra empty row if the colors are on |
?> |
<tr> |
<td colspan="2" class="header">Colors</td> |
</tr> |
<?php |
$file = file("colors.txt"); |
#opens the file |
foreach($file as $color) |
#like the smilie one, read there to understand |
{ |
list($old,$new) = explode("|", $color); |
#similiar to the smilies one, but this one breaks apart at the | |
$old = trim($old); |
#spaces are removed |
$new = trim($new); |
#spaces are removed |
echo '<tr><td class="cells"><a href="javascript:Deporter(\'[color='.$old.'][/color]\')">[color='.$old.']'.$old.'[/color]</a></td><td class="cells"><a href="javascript:Deporter(\'[color='.$old.'][/color]\')"><span style="color:'.$new.';">'.$old.'</span></a></tr>'; |
#I did them both on the same line, but it's similar to the smilies one |
} |
} |
?> |
</body> |
</html> |
/web/test/chat/shoutit/ShoutBoxFiles/shoutentries.php |
---|
0,0 → 1,136 |
<?php |
$db = mysql_connect("$dbHost","$dbUser","$dbPass"); |
#connect to the database |
mysql_select_db($dbname,$db); |
#select our database |
$requete = "SELECT * FROM ShoutBox ORDER BY Date DESC LIMIT 0,$ShoutDisplay"; |
#query that grabs all the columns from shoutbox |
#it uses the shoutdisplay variable set before the include to limit how many rows |
#descending by date because it gives the latests dates |
$result = mysql_query ($requete,$db); |
#result of query |
echo '<div class="fullshout"> '; |
#This is a little design this div wraps around the whole table. |
echo '<div class="halfshout"> <br />'; |
#This is a little design this div wraps around all but the form. |
$i=0; |
#we're using this variable to create the alternating rows |
while ($article = mysql_fetch_object($result)) |
#looping through our result $article is the row we're on |
{ |
$today = date("F j, Y, g:i a", $article->Date); |
#Sets up the date |
$URL = $article->URL; |
#grabs the URL/email of poster from the database |
if (mailcheck($URL)) |
#defined in the shoutfunctions.php regular expression check |
#determines if this is an email address |
{ |
$ShoutURL = '<a'; |
#first part of anchor |
if (($Alternate==1)&&($i==0)) |
$ShoutURL .= ' class="shoutname2"'; |
else |
$ShoutURL .= ' class="shoutname"'; |
#if alternate is on and i is 0, otherwise regular |
$ShoutURL .=' href="mailto:'.$URL.'"'; |
#Finishes the beginning anchor tag |
} |
else if (URLcheck($URL)) |
#regular expression to determine if url and if starts with http:// |
#function found in phpfunctions.php |
{ |
$ShoutURL = '<a'; |
if (($Alternate==1)&&($i==0)) |
$ShoutURL .= ' class="shoutname2"'; |
else |
$ShoutURL .= ' class="shoutname"'; |
$ShoutURL .=' href="'.$URL.'"'; |
} |
else if ($URL!=NULL) |
#as long as URL isn't empty let's just assume they forgot http:// |
{ |
$ShoutURL = '<a'; |
if (($Alternate==1)&&($i==0)) |
$ShoutURL .= ' class="shoutname2"'; |
else |
$ShoutURL .= ' class="shoutname"'; |
$ShoutURL .=' href="http://'.$URL.'"'; |
} |
else { |
#empty url, we'll give them an empty javascript command |
$ShoutURL = '<a'; |
if (($Alternate==1)&&($i==0)) |
$ShoutURL .= ' class="shoutname2"'; |
else |
$ShoutURL .= ' class="shoutname"'; |
$ShoutURL .= ' href="javascript:()" onclick="return false;" onkeypress="return false;"'; |
} |
if (($Alternate==1)&&($i==0)) |
#will only display if i is 0 and alternate mode, set in shoutoptions, is on |
{ |
echo '<div class="shoutentry2">'.$ShoutURL.' title="'.$today.'">'.stripslashes($article->Name).'</a>'; |
echo '<div class="shoutmessage2">'; |
if ($WordWrap!=0) #only wraps if set |
echo webcode(wrap_text(stripslashes($article->Message),$WordWrap)); |
else |
echo webcode(stripslashes($article->Message)); |
echo '</div>'; |
#webcode() is a function of mine to add smilies color and bb depending on if they're on |
#strip slashes removes the \ that often are used to protect the database when messages are inward |
#it's safe because now they're out in the open |
if ($SelfDelete==1) |
#if in phpoptions.php self delete is on |
{ |
if ($article->IP==$IP) |
echo '<a href="'.$_SERVER['SCRIPT_NAME'].'?SelfDel='.$article->ID.'">Delete this entry?</a>'; |
#this if checks if this user owns the message |
#if so it gives them the option of self deleting their post |
#in case you care, $_SERVER['SCRIPT_NAME'] is the main script running |
#the one before includes, I set the $IP before calling this include |
} |
echo '</div><br />'; |
$i=1; |
#set i to 1 so it will alternate, remember this only turns on if $Alternate=1 |
} |
else { |
#normal execution |
echo '<div class="shoutentry">'.$ShoutURL.' title="'.$today.'">'.stripslashes($article->Name).'</a>'; |
echo '<div class="shoutmessage">'; |
if ($WordWrap!=0) |
echo webcode(wrap_text(stripslashes($article->Message),$WordWrap)); |
else |
echo webcode(stripslashes($article->Message)); |
echo '</div>'; |
if ($SelfDelete==1) |
#same as above |
{ |
if ($article->IP==$IP) |
echo '<a href="'.$_SERVER['SCRIPT_NAME'].'?SelfDel='.$article->ID.'">Delete this entry?</a>'; |
} |
echo '</div><br />'; |
$i=0; |
} |
} |
echo '</div>'; |
#closes halfshout div |
?> |
/web/test/chat/shoutit/ShoutBoxFiles/shoutfunctions.php |
---|
0,0 → 1,335 |
<?php |
#function is used to protect users from hackers. |
#it filters out a lot of the bad things they can do. |
function dbinsans($text) { |
$text = strip_tags ($text, ""); |
$text = str_replace(chr(10),"",$text); |
$text = str_replace(chr(13), "<br>", $text); |
$text = str_replace("\"",""",$text); |
$text = str_replace("'","'",$text); |
$text = addslashes($text); |
return($text); |
} |
function stri_replace($find,$replace,$string) |
{ |
#function thanks to bradhuizenga @ softhome.net |
#he posted it on php.net |
#My server, and many of yours, won't have the PHP str_ireplace function... |
#This one he made stri_replace, will allow us to do replaces without care to case |
if(!is_array($find)) $find = array($find); |
if(!is_array($replace)) |
{ |
if(!is_array($find)) $replace = array($replace); |
else |
{ |
// this will duplicate the string into an array the size of $find |
$c = count($find); |
$rString = $replace; |
unset($replace); |
for ($i = 0; $i < $c; $i++) |
{ |
$replace[$i] = $rString; |
} |
} |
} |
foreach($find as $fKey => $fItem) |
{ |
$between = explode(strtolower($fItem),strtolower($string)); |
$pos = 0; |
foreach($between as $bKey => $bItem) |
{ |
$between[$bKey] = substr($string,$pos,strlen($bItem)); |
$pos += strlen($bItem) + strlen($fItem); |
} |
$string = implode($replace[$fKey],$between); |
} |
return($string); |
} |
/* |
Found at http://www.zend.com/codex.php?id=220&single=1 |
This function wraps text to the given number of characters. It will only |
wrap on word boundaries, and removes any resulting leading whitespace. |
It also converts all whitespcae characters (tab, cr, space) to a space. |
It accepts two arguments: |
$text - the text to be wrapped |
$wrap - the number of characters at which to wrap |
It returns the wrapped text unless $text is null, then it returns void; |
or $wrap is not an integer, then it returns $text untouched. |
*/ |
function wrap_text($text, $wrap) { |
if (!isset($text)) return; |
#I hate to edit that line from their code, I didn't have the function they |
#Were using, this is equal to what they had though... |
if (!is_integer($wrap)) return $text; |
$text_array = explode("\n", $text); |
$i = $j = 0; |
while ($i < sizeof($text_array)) { |
$text_array[$i] = preg_replace("/\s/", " ", $text_array[$i]); |
$length = strlen($text_array[$i]); |
if ($length <= $wrap) { |
$new_text_array[$j] = $text_array[$i]; |
$i++; |
} |
else { |
$tmp = substr($text_array[$i], 0, $wrap); |
$spacePos = strrpos($tmp, " "); |
if ($spacePos > 0) { |
$new_text_array[$j] = substr($text_array[$i], 0, $spacePos+1); |
$new_text_array[$j] = ltrim($new_text_array[$j]); |
$text_array[$i] = substr($text_array[$i], $spacePos+1); |
} |
else { |
$new_text_array[$j] = $tmp; |
$text_array[$i] = substr($text_array[$i], $wrap); |
} |
} |
$j++; |
} |
return (implode("\n", $new_text_array)); |
} |
function Swear_Replace(){ |
#a little function I crafted :-) |
$swearstring = 4; |
#how big do we want the swear to show up? |
#like arse to #$%^ that's 4. arse to $%^&* is 5 |
$seeder=0; |
if($seeder != 1){ |
srand((double)microtime()*1000000); |
#seeds the random value |
$seeder = 1; |
#only do it once, so giving it a value |
} |
$result=""; |
$chars = "!@#$%^*"; |
for($i=0; $i<$swearstring; $i++){ |
#uses the char array and the length |
$result .= substr($chars,rand(0,strlen($chars)-1),1); |
#randomly picks one character between the first, last in char array |
} |
return $result; |
#returns string of #$%^ like characters |
} |
function webcode($text) { |
#My baby! :-) This does all the switching, BB, Swears, Smilies, all here |
global $Outside; |
if ($Outside == 1) |
include 'shoutoptions.php'; |
else |
include 'ShoutBoxFiles/shoutoptions.php'; |
if ($swear==1) |
#if swear is activiated in phpoptions.php |
{ |
if ($Outside== 1) |
$file = file("swears.txt"); |
else |
$file = file("ShoutBoxFiles/swears.txt"); |
#opens the swears.txt, every line is turned into an object in an array |
#we called the array $file |
foreach($file as $swear) |
#for each object in file we give loop through setting that object to $swear |
{ |
$swear = trim($swear); |
#get rid of the spaces |
$random = Swear_Replace(); |
#calls the Swear_Replace() I made and fills it with junk !@#$%^&* |
$text = stri_replace($swear,$random,$text); |
#replaces the swear with the junk |
} |
} |
$text = stri_replace("[Alphibia]","http://www.Alphibia.com",$text); |
#a little plug here, don't worry it is only added if people type [Alphibia] |
#like that will happen... for legal reasons, don't remove this >:o |
$text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", |
"<a href=\"\\0\">\\0</a>", $text); |
#This is the regular expression that changes a link beginning with http:// into a link |
$text = stri_replace("[Version]","Version 1.0",$text); |
#current version, in case people care, will be useful if I release more and you need help |
$text = stri_replace(" weborum "," <a href=\"http://forum.weborum.com\">Weborum</a> ", $text); |
#Plug, will turn Weborum with a space before and after into a link. |
$text = stri_replace("weborum ","<a href=\"http://forum.weborum.com\">Weborum</a> ", $text); |
#Plug, will turn weborum followed by a space into a link |
$text = stri_replace(" weborum"," <a href=\"http://forum.weborum.com\">Weborum</a>", $text); |
#Plug, will turn a space followed by weborum into a link |
#feel free to add your own plugs, but don't remove the above for legal reasons. |
if ($smilies==1) |
#if smilies is turned on |
{ |
if ($Outside== 1) |
$file = file("smilies.txt"); |
else |
$file = file("ShoutBoxFiles/smilies.txt"); |
#opens the file with smilies and turns it into an array like swears |
foreach($file as $smile) |
#read the swears one for more info, works the same |
{ |
list($old,$new) = explode("\|/", $smile); |
#this turns anything before the \|/ into a var and anything after into another |
$old = trim($old); |
#gets rid of the spaces before and after |
$new = trim($new); |
#gets rid of the spaces before and after |
if ($Outside== 1) |
$text = stri_replace($old,'<img src="../'.$directory.'/'.$new.'" alt="" />',$text); |
else |
$text = stri_replace($old,'<img src="'.$directory.'/'.$new.'" alt="" />',$text); |
#replaces it with the smilie :-) |
} |
} |
if ($colors==1) |
#if colors is turned on |
{ |
if ($Outside== 1) |
$file = file("colors.txt"); |
else |
$file = file("ShoutBoxFiles/colors.txt"); |
#opens the colors and turns it into an array... |
foreach($file as $color) |
#same as the swears one... |
{ |
list($old,$new) = explode("|", $color); |
#same as smilies except doing it at the | instead of \|/ |
$old = trim($old); |
#gets rid of the spaces before and after |
$new = trim($new); |
#gets rid of the spaces before and after |
$text = stri_replace('[color='.$old.']','<span style="color:'.$new.';">',$text); |
#replaces [color=this] with <span style="color:that;"> |
} |
$text = stri_replace("[/color]","</span>",$text); |
#replaces all occurences of [/color] with </span> |
} |
$text = stri_replace("[b]","<b>",$text); |
$text = stri_replace("[/b]","</b>",$text); |
$text = stri_replace("[u]","<u>",$text); |
$text = stri_replace("[/u]","</u>",$text); |
$text = stri_replace("[i]","<i>",$text); |
$text = stri_replace("[/i]","</i>",$text); |
#BB code... simple replaces |
return($text); |
#returns the outputted text |
} |
function lefts( $varb, $num ){ |
#another function... this one cuts off anything after a certain amount of characters... |
#useful with hacker kids who want to create their own post to your page and fudge it up |
#this stops them :-) |
$dnum = intval($num); |
if (strlen($varb)>$dnum){ |
$nvarb = substr($varb, 0, $dnum+3); |
} |
else if (strlen($varb)<$dnum){ |
$nvarb=$varb; |
} |
return $nvarb; |
} |
function mailcheck($emailadr){ |
#regular expression... used in the entries file returns 1 if it finds it |
return eregi("^[a-zA-Z0-9_\.-]+@[a-zA-Z0-9\.-]+\.[a-zA-Z]{2,4}$", $emailadr); |
} |
function URLcheck($URL){ |
#regular expression... used in the entries file returns 1 if it finds it |
return eregi("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", $URL); |
} |
#The following functions are in javascript... used for cookie manipulation |
#two are also used for the countdown box, and one is used to open popups. |
#the noscript is required for legal reasons |
?> |
<noscript> |
For a free easily customizable shout box/tag board script, head to <a href="www.alphibia.com">www.alphibia.com</a>. |
</noscript> |
<script language="JavaScript" type="text/javascript"> |
function setCookie(name, value, expires, path, domain, secure) { |
var curCookie = name + "=" + escape(value) + |
((expires) ? "; expires=" + expires.toGMTString() : "") + |
((path) ? "; path=" + path : "") + |
((domain) ? "; domain=" + domain : "") + |
((secure) ? "; secure" : ""); |
document.cookie = curCookie; |
} |
function getCookie(name) { |
var dc = document.cookie; |
var prefix = name + "="; |
var begin = dc.indexOf("; " + prefix); |
if (begin == -1) { |
begin = dc.indexOf(prefix); |
if (begin != 0) return null; |
} else |
begin += 2; |
var end = document.cookie.indexOf(";", begin); |
if (end == -1) |
end = dc.length; |
return unescape(dc.substring(begin + prefix.length, end)); |
} |
function TrackCount(fieldObj,countFieldName,maxChars) |
{ |
var countField = eval("fieldObj.form."+countFieldName); |
var diff = maxChars - fieldObj.value.length; |
// Need to check & enforce limit here also in case user pastes data |
if (diff < 0) |
{ |
fieldObj.value = fieldObj.value.substring(0,maxChars); |
diff = maxChars - fieldObj.value.length; |
} |
countField.value = diff; |
} |
function shoutbox(url){ |
winpops=window.open(url,"","width=400,height=338,scrollbars,resizable,") |
} |
function LimitText(fieldObj,maxChars) |
{ |
var result = true; |
if (fieldObj.value.length >= maxChars) |
result = false; |
if (window.event) |
window.event.returnValue = result; |
return result; |
} |
</script> |
/web/test/chat/shoutit/ShoutBoxFiles/shoutiframe.php |
---|
0,0 → 1,26 |
<html><head><link href="shout.css" rel="stylesheet" type="text/css" /> |
</head><body> |
<?php |
$IP = $_SERVER["REMOTE_ADDR"]; |
#logs user IP (used for many different parts) |
$Outside = 1; |
include 'shoutoptions.php'; |
#User info file |
#(contains variables these functions and entries function with) |
include 'shoutfunctions.php'; |
#ShoutFunctions file, contains functions used in this script. |
$ShoutDisplay = $ShowNormal; |
#ShowDisplay is a variable in the shoutoptions page. |
#ShoutDisplay is a variable called in the the shoutentries page |
#ShoutDisplay determines how many are shown |
include 'shoutentries.php'; |
?> |
</body></html> |
/web/test/chat/shoutit/ShoutBoxFiles/shoutoptions.php |
---|
0,0 → 1,66 |
<?php |
#Database Options... |
$dbHost ="localhost"; |
#Your db host |
$dbUser = "chaosdell"; |
#username |
$dbPass ="sesvul"; |
#Pass |
$dbname ="shoutit"; |
#Name of the database. |
#User Options... |
$ShoutWait = 30; |
#Seconds between posts. Flood Control. Turn to 0 seconds to turn off. |
$smilies = 1; |
#smiley support 1=yes |
$colors = 1; |
#color support 1=yes |
$swear = 1; |
#swear filter 1=yes |
$SelfDelete = 1; |
#if 1 allows people to delete their own entries while they are in the normal mode |
$directory = "smilies/"; |
#Smiley folder, if you used my zip to unzip you don't have to worry about this |
#Display Options |
$IFRAME = 0; #Setting to 1 will turn on IFrame Mode |
$WordWrap = 0; |
#If 0 no wordwrap is used, this helps with keeping people from writing long strings |
#The long strings would really mess up the page... |
#Set it to how many characters max you want to display per line... |
#I suggest guess and checking until you get it right. Just make a really long line. |
$Alternate = 1; |
#if 1 varies the CSS behind each piece of entry. |
$NameCutOff = 14; |
#how many characters before name is cut off? |
$MessageCutOff = 250; |
#Characters max determines how many characters a user can type... |
$ShowNormal = 4; |
#how many entries do you want to show on your main page |
$ShowArchived = 20; |
#how many archived entries do you want to show |
$MaxRows = 40; |
#Delete after this many rows. This helps keep the database from being cluttered. |
#End Options |
?> |
/web/test/chat/shoutit/ShoutBoxFiles/smilies.txt |
---|
0,0 → 1,32 |
8-) \|/ agent.gif |
8) \|/ shades.gif |
:|/ \|/ sp_ike.gif |
>:( \|/ angry.gif |
:-D \|/ laugh.gif |
:D \|/ biggrin.gif |
;-D \|/ biggrin2.gif |
:p \|/ bleh.gif |
:-p \|/ bleh.gif |
8/ \|/ blink.gif |
:-* \|/ blush.gif |
;) \|/ wink.gif |
;-) \|/ wink.gif |
:snorkle: \|/ bubbles.gif |
:-/ \|/ confused.gif |
:cool: \|/ cool.gif |
:'( \|/ cry2.gif |
:cigar: \|/ cigar.gif |
:cowboy: \|/ cowboy.gif |
:timo: \|/ goodnight.gif |
:squeeze: \|/ pinch.gif |
:x \|/ sick.gif |
:-x \|/ sick.gif |
:-) \|/ smile.gif |
:) \|/ smile.gif |
:zzz: \|/ sleepysmiley03.gif |
:thumbsdown: \|/ thumbsdownsmileyanim.gif |
:thumbsup: \|/ thumbsupsmileyanim.gif |
:drunk: \|/ timo.gif |
:w00t: \|/ w00t.gif |
:weird: \|/ weirdsmiley.gif |
:whistle: \|/ whistle.gif |
/web/test/chat/shoutit/ShoutBoxFiles/swears.txt |
---|
0,0 → 1,27 |
mother-fucker |
bollocks |
fucking |
fucker |
wanker |
nigger |
nigga |
prick |
fanny |
bitch |
cock |
fuck |
twat |
wank |
shit |
cunt |
fag |
chink |
wop |
pansy |
gook |
gringo |
jig |
goyim |
kike |
papist |
pussy |