1
mirror of https://github.com/jakejarvis/jbb.git synced 2025-04-26 06:45:22 -04:00

first commit

This commit is contained in:
Jake Jarvis 2018-10-18 12:42:02 -04:00
commit 59d1ee3c22
No known key found for this signature in database
GPG Key ID: D36CB66F4002B25B
105 changed files with 3773 additions and 0 deletions

21
admin/admin.php Executable file
View File

@ -0,0 +1,21 @@
<HTML>
<HEAD>
<BASE TARGET="main">
<STYLE TYPE="text/css">
a:link {font-family:Verdana; font-color:navyblue;}
</STYLE>
</HEAD>
<BODY>
<FONT FACE="Verdana" SIZE="-1">
<?php
$act = $act . ".php";
if ( $act == "" || !file_exists($act) ) {
$act = "main.php";
}
include("$act");
?>
</FONT>
</BODY>
</HTML>

38
admin/agreement.php Executable file
View File

@ -0,0 +1,38 @@
<TABLE WIDTH="100%" HEIGHT="10%">
<TR>
<TD BACKGROUND="images/logobkgbig.gif"><FONT FACE="Verdana" SIZE="72" COLOR="white"><CENTER><B>Edit User Agreement</B></CENTER></FONT>
</TD>
</TR>
</TABLE>
<FONT FACE="Verdana">
<?php
include ('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Could not connect to server $sqlServer");
mysql_select_db ($sqlDatabase, $conn)
or die ("Could not connect to database $sqlDatabase");
$query = "SELECT * FROM jbb_preferences";
$result = mysql_query ($query)
or die ($query);
$agreement = mysql_fetch_object($result);
echo "<CENTER>
<FORM ACTION=\"agreement_submit.php\">
<BR>To edit the user agreement, please enter the desired changes below, and submit.</FONT><BR><BR>
<TEXTAREA ROWS=\"15\" COLS=\"55\" NAME=\"agreement\">$agreement->aggrement</textarea><BR><INPUT TYPE=\"submit\" VALUE=\"Sumbit\"><INPUT TYPE=\"reset\" VALUE=\"Reset Changes\"></FORM>
</CENTER>";
?>

21
admin/agreement_submit.php Executable file
View File

@ -0,0 +1,21 @@
<?php
include('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase, $conn)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query2 = "UPDATE jbb_preferences
SET aggrement = '$agreement'";
$result2 = mysql_query ($query2)
or die ($query2);
echo "<CENTER>Thank you for editing the user agreement. Now taking you to the administration home.<BR><A HREF=\"admin.php\">(Click here if you do not wish to wait.)</A></CENTER>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=admin.php\">";
?>

21
admin/edit_forum_submit.php Executable file
View File

@ -0,0 +1,21 @@
<?php
include('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase, $conn)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query2 = "UPDATE jbb_forums
SET name = '$name' , description = '$description'
WHERE forumID ='$forumID'";
$result2 = mysql_query ($query2)
or die ($query2);
echo "<CENTER>Thank you for editing this post. Now taking you to the administration cpanel index.<BR><A HREF=\"admin.php\">(Click here if you do not wish to wait.)</A></CENTER>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=admin.php\">";
?>

81
admin/error_log Executable file
View File

@ -0,0 +1,81 @@
[21-Aug-2003 14:49:55] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/formation/admin/admin.php on line 17
[21-Aug-2003 14:49:55] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/formation/admin/admin.php on line 17
[21-Aug-2003 14:49:56] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/formation/admin/admin.php on line 17
[21-Aug-2003 14:49:56] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/formation/admin/admin.php on line 17
[21-Aug-2003 14:49:57] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/formation/admin/admin.php on line 17
[21-Aug-2003 14:49:57] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/formation/admin/admin.php on line 17
[21-Aug-2003 19:57:57] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:57:57] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:57:59] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:57:59] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:58:04] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:58:04] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:58:05] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:58:05] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:58:07] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:58:07] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:58:08] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:58:08] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:58:09] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:58:09] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:58:19] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 19:58:19] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 21:40:14] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 21:40:14] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 21:40:15] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 21:40:15] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 21:40:17] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 21:40:17] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 21:40:19] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 21:40:19] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 22:21:35] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 22:21:35] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 22:21:37] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 22:21:37] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 22:21:38] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 22:21:38] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 22:21:59] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 22:21:59] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 22:22:02] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[21-Aug-2003 22:22:02] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/admin/admin.php on line 17
[23-Aug-2003 17:57:41] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 17:57:41] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 18:58:37] PHP Warning: main(./conf.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/potatosrock/forumlist.php on line 28
[23-Aug-2003 18:58:37] PHP Warning: main(): Failed opening './conf.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/potatosrock/forumlist.php on line 28
[23-Aug-2003 18:58:37] PHP Warning: mysql_connect(): Access denied for user: 'jarvis@localhost' (Using password: NO) in /home/jarvis/public_html/jbb/potatosrock/forumlist.php on line 30
[23-Aug-2003 18:59:04] PHP Warning: main(./conf.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/potatosrock/manage.php on line 28
[23-Aug-2003 18:59:04] PHP Warning: main(): Failed opening './conf.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/potatosrock/manage.php on line 28
[23-Aug-2003 18:59:04] PHP Warning: mysql_connect(): Access denied for user: 'jarvis@localhost' (Using password: NO) in /home/jarvis/public_html/jbb/potatosrock/manage.php on line 30
[23-Aug-2003 18:59:16] PHP Warning: main(./conf.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/potatosrock/manage.php on line 28
[23-Aug-2003 18:59:16] PHP Warning: main(): Failed opening './conf.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/potatosrock/manage.php on line 28
[23-Aug-2003 18:59:16] PHP Warning: mysql_connect(): Access denied for user: 'jarvis@localhost' (Using password: NO) in /home/jarvis/public_html/jbb/potatosrock/manage.php on line 30
[23-Aug-2003 19:28:00] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:28:00] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:28:02] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:28:02] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:28:37] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:28:37] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:29:13] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:29:13] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:30:00] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:30:00] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:30:03] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:30:03] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:31:05] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:31:05] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:31:11] PHP Warning: main(forumlist.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[23-Aug-2003 19:31:11] PHP Warning: main(): Failed opening 'forumlist.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/potatosrock/admin.php on line 17
[21-Sep-2003 00:01:28] PHP Warning: main(conf.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 15
[21-Sep-2003 00:01:28] PHP Warning: main(): Failed opening 'conf.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 15
[21-Sep-2003 00:01:28] PHP Warning: mysql_connect(): Access denied for user: 'jarvis@localhost' (Using password: NO) in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 17
[21-Sep-2003 00:02:00] PHP Warning: main(./conf.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 15
[21-Sep-2003 00:02:00] PHP Warning: main(): Failed opening './conf.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 15
[21-Sep-2003 00:02:00] PHP Warning: mysql_connect(): Access denied for user: 'jarvis@localhost' (Using password: NO) in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 17
[21-Sep-2003 00:02:05] PHP Warning: main(./conf.php): failed to open stream: No such file or directory in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 15
[21-Sep-2003 00:02:05] PHP Warning: main(): Failed opening './conf.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 15
[21-Sep-2003 00:02:05] PHP Warning: mysql_connect(): Access denied for user: 'jarvis@localhost' (Using password: NO) in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 17
[21-Sep-2003 00:05:47] PHP Parse error: parse error, expecting `','' or `';'' in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 31
[21-Sep-2003 00:05:49] PHP Parse error: parse error, expecting `','' or `';'' in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 31
[21-Sep-2003 00:10:52] PHP Parse error: parse error, expecting `','' or `';'' in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 31
[21-Sep-2003 00:11:33] PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 31
[21-Sep-2003 00:11:33] PHP Parse error: parse error, expecting `','' or `';'' in /home/jarvis/public_html/jbb/ADMIN/agreement.php on line 31

22
admin/forum_delete_submit.php Executable file
View File

@ -0,0 +1,22 @@
<?php
include('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase, $conn)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query2 = "DELETE FROM jbb_forums
WHERE forumID ='$forumID'";
$result2 = mysql_query ($query2)
or die ($query2);
echo "<CENTER>The post was successfully deleted. Now taking you to the administration cp index.<BR><A HREF=\"admin.php\">(Click here if you do not wish to wait.)</A></CENTER>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=admin.php\">";
}
?>

16
admin/forumdelete.php Executable file
View File

@ -0,0 +1,16 @@
<?php
echo "
<CENTER><TABLE WIDTH=\"80%\">
<TR>
<TD ALIGN=\"center\">Are you sure you want to delete this forum?<BR><BR><FORM ACTION=\"admin.php?act=forum_delete_submit&forumID=$forumID\" METHOD=\"post\"><INPUT TYPE=\"submit\" VALUE=\"Yes\"></FORM><FORM ACTION=\"admin.php\" METHOD=\"post\"><INPUT TYPE=\"submit\" VALUE=\"No\"></FORM></TD>
</TR>
</TABLE></CENTER>";
?>

43
admin/forumedit.php Executable file
View File

@ -0,0 +1,43 @@
<INPUT TYPE="hidden" name="forumID" value="$forums->forumID">
<?php
include('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase, $conn)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query3 = "SELECT * FROM jbb_forums WHERE forumID = '$forumID'";
$result3 = mysql_query($query3)
or die ($query3);
while ($forums = mysql_fetch_object($result3)) {
echo "
<FORM ACTION=\"admin.php?act=edit_forum_submit&forumID=$forumID\" METHOD=\"post\">
<TABLE WIDTH=\"80%\">
<TR>
<TD>Rename Forum:</TD>
<TD><B><INPUT TYPE=\"text\" NAME=\"name\" SIZE=\"40\" VALUE=\"$forums->name\"></b>
</TR>
<TR>
<TD>Edit Forum Description:</TD>
<TD><INPUT TYPE=\"text\" NAME=\"description\" SIZE=\"40\" VALUE=\"$forums->description\">
</TR>
<TR>
<TD COLSPAN=\"2\" ALIGN=\"center\">
<BR><BR><CENTER><INPUT TYPE=\"submit\" VALUE=\"Edit Forum\"><INPUT TYPE=\"hidden\" NAME=\"forumID\" VALUE=\"$forumID\"><INPUT TYPE=\"hidden\" NAME=\"topicID\" VALUE=\"$topicID\"></CENTER>
</TD>
</TR>
</TABLE>
</FORM>";
}
?>

BIN
admin/images/logobkgbig.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

27
admin/index.php Executable file
View File

@ -0,0 +1,27 @@
<?php
include('../conf.php');
require('../functions.php');
session_start()
?>
<?php
if ($ck_userID == "") {
echo "<meta http-equiv=\"refresh\" content=\"0; url=./login.php\">";
} else {
echo "
<HTML>
<HEAD>
<FRAMESET COLS=\"205,*\" BORDER=\"0\">
<FRAME NAME=\"left\" SRC=\"admin.php?act=left\" RESIZE=\"no\">
<FRAME NAME=\"main\" SRC=\"admin.php?act=main\" RESIZE=\"no\">
</FRAMESET>
</HEAD>
</HTML>";
}
?>

20
admin/left.php Executable file
View File

@ -0,0 +1,20 @@
<BR>
<B>Jellybean's Bulletin Board</B><BR>
-| <A HREF="http://jbb.drowninwires.net/support" TARGET="_blank">Support</A><BR>
<strike>-| <A HREF="admin.php#" TARGET="_blank">Upgrade</A><BR></strike>
<strike>-| <A HREF="admin.php#" TARGET="_blank">JBB Plus</A><BR><BR></strike>
<B>Settings</B><BR>
-| <A HREF="admin.php?act=options">Board Options</A><BR>
<strike>-| <A HREF="admin.php#">Advanced Options</A></strike><BR>
-| <A HREF="admin.php?act=agreement">User Aggrement</A><BR><BR>
<B>Categories & Forums</B><BR>
-| <A HREF="admin.php?act=manage">Manage</A><BR>
-| <A HREF="admin.php?act=newcat">New Category</A><BR>
-| <A HREF="admin.php?act=newforum">New Forum</A><BR>
<strike> -| <A HREF="admin.php#">Moderators</A></strike><BR><BR>
<B>Users</B><BR>
-| <A HREF="admin.php?act=usrmodify">Modify</A><BR>
<strike>-| <A HREF="admin.php?act=usrgroups">Groups</A><BR><BR></strike>
<B>Modules</B><BR>
<strike>-| <A HREF="admin.php#">Install</A><BR></strike>
<strike>-| <A HREF="admin.php#" TARGET="_blank">Mod Database</A></strike>

24
admin/login.php Executable file
View File

@ -0,0 +1,24 @@
<BODY TOPMARGIN="0">
<CENTER><TABLE WIDTH="600">
<TR>
<TD ALIGN="center"><IMG SRC="../images/logo.gif"></TD>
</TR>
<TR>
<TD>
<BR>
<FONT COLOR="red" FACE="veranda" SIZE="-2">You must log in in order to enter the administration control panel!</FONT>
</TD>
</TR>
<TR>
<TD><BR><BR>
<FONT FACE="verdana" size="-1"><FORM ACTION="login_submit.php" METHOD="post">
Username: <INPUT TYPE="text" NAME="username"><BR>
Password: <INPUT TYPE="password" NAME="password"><BR><BR>
<INPUT TYPE="submit" VALUE="Log In">
</FORM>
</FONT>
</TD>
</TR>
</TABLE>
</CENTER>
</BODY>

46
admin/login_submit.php Executable file
View File

@ -0,0 +1,46 @@
<?php
include('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query = "SELECT * FROM jbb_users WHERE groupID = '1' AND username = '$username' AND password = '$password'";
$result = mysql_query ($query)
or die ($query);
$url = "index.php?";
foreach ($_GET as $variable => $value) {
$url .= "$variable=$value&";
}
if ( mysql_numrows ($result) > "0") {
$user = mysql_fetch_object ($result);
session_id($user->userID);
session_start();
$_SESSION["ck_userID"] = $user->userID;
$_SESSION["ck_username"] = $user->username;
echo "
<HTML>
<HEAD>
<META HTTP-EQUIV=\"refresh\" CONTENT=\"0;URL=$url\">
</HEAD>
</HTML>
";
} else {
echo "
<HTML>
<HEAD>
<META HTTP-EQUIV=\"refresh\" CONTENT=\"0;URL=login.php\">
</HEAD>
<BODY onLoad=\"alert('Wrong password. Please try again.')\">
</BODY>
</HTML>
";
}
?>

6
admin/main.php Executable file
View File

@ -0,0 +1,6 @@
<CENTER><TABLE>
<TR>
<TD BACKGROUND="logobkgbig.gif"><FONT FACE="Verdana" SIZE="+2" COLOR="white">Welcome to the JBB Administration Control Panel!</FONT></TD>
</TR>
</TABLE>
</CENTER>

121
admin/manage.php Executable file
View File

@ -0,0 +1,121 @@
<BR><BR>
<CENTER>
<TABLE WIDTH="640" BGCOLOR="#254493" BORDER="0" BORDERCOLOR="#FFFFFF" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD WIDTH="33">
</TD>
<TD WIDTH="200" VALIGN="top" align="center" BGCOLOR="#254493">
<FONT COLOR="#FFFFFF">Forum</FONT>
</TD>
<TD WIDTH="120" VALIGN="top" align="center" BGCOLOR="#254493">
<FONT COLOR="#FFFFFF">Threads</FONT>
</TD>
<TD WIDTH="120" VALIGN="top" align="center" BGCOLOR="#254493">
<FONT COLOR="#FFFFFF">Replies</FONT>
</TD>
<TD WIDTH="120" VALIGN="top" align="center" BGCOLOR="#254493">
<FONT COLOR="#FFFFFF">Moderators</FONT>
</TD>
<TD WIDTH="120" VALIGN="top" align="center" BGCOLOR="#254493">
<FONT COLOR="#FFFFFF">Forum Options</FONT>
</TD>
</TR>
<?php
include ('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Could not connect to server $sqlServer");
mysql_select_db ($sqlDatabase, $conn)
or die ("Could not connect to database $sqlDatabase");
$query2 = "SELECT * FROM jbb_categories";
$result2 = mysql_query ($query2)
or die ($query2);
while ($categories = mysql_fetch_object($result2)) {
$query = "SELECT * FROM jbb_forums WHERE catID = $categories->catID";
$result = mysql_query ($query)
or die ($query);
echo "
<TR>
<TD COLSPAN=\"6\" BGCOLOR=\"#BBCCDD\">
<B>$categories->name</B>
</TD>
</TR>
<TR>
<TD COLSPAN=\"6\" BGCOLOR=\"#EDF3F9\">
</TD>
</TR>
";
while ($forums = mysql_fetch_object($result)) {
$query1="SELECT topicID FROM jbb_topics WHERE forumID = $forums->forumID";
$result20 = mysql_query($query1)
or die ($query1);
$forumThreadCount=mysql_numrows($result20);
$query2="SELECT replyID FROM jbb_replies WHERE forumID = $forums->forumID";
$result30 = mysql_query($query2)
or die ($query2);
$forumReplyCount=mysql_numrows($result30);
echo "
<TR BGCOLOR=\"#FFFFFF\" HEIGHT=\"45\">
<TD WIDTH=\"33\" VALIGN=\"middle\" BGCOLOR=\"#FFFFFF\">
</TD>
<TD VALIGN=\"top\" ALIGN=\"left\" WIDTH=\"200\" BGCOLOR=\"#FFFFFF\">
<B><A HREF=\"admin.php#\">$forums->name</A></B><BR>$forums->description
</TD>
<TD WIDTH=\"120\" VALIGN=\"middle\" ALIGN=\"center\" BGCOLOR=\"#FFFFFF\">
$forumThreadCount
</TD>
<TD WIDTH=\"120\" VALIGN=\"middle\" ALIGN=\"center\" BGCOLOR=\"#FFFFFF\">
$forumReplyCount
</TD>
<TD WIDTH=\"120\" VALIGN=\"middle\" ALIGN=\"center\" BGCOLOR=\"#FFFFFF\">
$forumModerators
</TD>
<TD WIDTH=\"120\" VALIGN=\"middle\" align=\"center\">
<A HREF=\"admin.php?act=forumedit&forumID=$forums->forumID\">Edit</a> | <A HREF=\"admin.php?act=forumdelete&forumID=$forums->forumID\">Delete</a>
</TD>
</TR>
<TR>
<TD COLSPAN=\"6\" HEIGHT=\"5\" BGCOLOR=\"#EDF3F9\">
</TD>
</TR>
";
}
}
?>
</TABLE>

18
admin/newcat.php Executable file
View File

@ -0,0 +1,18 @@
<?php
echo "<TABLE WIDTH=\"100%\" HEIGHT=\"10%\">
<TR>
<TD BACKGROUND=\"images/logobkgbig.gif\"><FONT FACE=\"Verdana\" SIZE=\"72\" COLOR=\"white\"><CENTER><B>Create New Category</B></CENTER></FONT>
</TD>
</TR>
</TABLE>
<FONT FACE=\"Verdana\">
<FORM ACTION=\"newcat_submit.php\">
<BR>To create a new category, please enter the desired name below and submit.<BR><BR><CENTER><INPUT TYPE=\"text\" NAME=\"category\"><BR><INPUT TYPE=\"submit\" VALUE=\"Create\"></CENTER>
</FORM>
</FONT>";
?>

19
admin/newcat_submit.php Executable file
View File

@ -0,0 +1,19 @@
<?php
include('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query = "INSERT INTO jbb_categories (name) VALUES ('$category')";
$result = mysql_query ($query)
or die ($query);
echo "<CENTER>Thank you for editing the user agreement. Now taking you to the administration home.<BR><A HREF=\"admin.php\">(Click here if you do not wish to wait.)</A></CENTER>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=admin.php\">";
?>

49
admin/newforum.php Executable file
View File

@ -0,0 +1,49 @@
<TABLE WIDTH="100%" HEIGHT="10%">
<TR>
<TD BACKGROUND="images/logobkgbig.gif"><FONT FACE="Verdana" SIZE="72" COLOR="white"><CENTER><B>Create New Forum</B></CENTER></FONT>
</TD>
</TR>
</TABLE>
<?php
include ('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Could not connect to server $sqlServer");
mysql_select_db ($sqlDatabase, $conn)
or die ("Could not connect to database $sqlDatabase");
$query2 = "SELECT * FROM jbb_categories";
$result2 = mysql_query ($query2)
or die ($query2);
echo "<FONT FACE=\"Verdana\">
<FORM ACTION=\"newforum_submit.php\" method=\"post\">
<BR>To create a new forum, please enter the desired name and description below and submit.<BR><BR><CENTER><b>Forum Name</b><BR><INPUT TYPE=\"text\" NAME=\"forum\"><BR><BR>
<b>Select Category for forum to be inserted into</b><BR>
<SELECT NAME=\"selectcat\">";
while ($cat = mysql_fetch_object($result2)) {
echo "
<OPTION VALUE=\"$cat->catID\">$cat->name</OPTION>";
}
echo "</SELECT><BR>
<BR><BR><b>Description</b><br><TEXTAREA NAME=\"desc\" COLS=\"40\" ROWS=\"5\"></textarea><BR><INPUT TYPE=\"submit\" VALUE=\"Create\"><INPUT TYPE=\"reset\" VALUE=\"Reset Input\"></CENTER>
</FORM>
</FONT>";
?>

18
admin/newforum_submit.php Executable file
View File

@ -0,0 +1,18 @@
<?php
include('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query = "INSERT INTO jbb_forums (name, description, catID) VALUES ('$forum','$desc','$selectcat')";
$result = mysql_query ($query)
or die ($query);
echo "<CENTER>Thank you for editing the user agreement. Now taking you to the administration home.<BR><A HREF=\"admin.php\">(Click here if you do not wish to wait.)</A></CENTER>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=admin.php\">";
?>

32
admin/options.php Executable file
View File

@ -0,0 +1,32 @@
<?php
include('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query = "SELECT * FROM jbb_preferences";
$result = mysql_query ($query)
or die ($query);
$prefs = mysql_fetch_object ($result);
echo "<CENTER>
<TABLE WIDTH=\"100%\"><FORM ACTION=\"admin.php?act=options_submit\" METHOD=\"post\">
<TR><TD>
Board Name: <INPUT TYPE=\"text\" NAME=\"boardname\" VALUE=\"$prefs->boardName\"><BR></TD>
</TR><TR><TD>
Board URL: <INPUT TYPE=\"text\" NAME=\"boardURL\" VALUE=\"$prefs->boardURL\"><BR></TD>
</TR><TR><TD>
Board Email Address: <INPUT TYPE=\"text\" NAME=\"boardemail\" VALUE=\"$prefs->boardEmail\"></TD>
</TR><TR><TD>
<INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\"Update\"></CENTER>
";
?>

21
admin/options_submit.php Executable file
View File

@ -0,0 +1,21 @@
<?php
include('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase, $conn)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query2 = "UPDATE jbb_preferences
SET boardName = '$boardname' , boardURL = '$boardURL'
WHERE boardEmail ='$boardemail'";
$result2 = mysql_query ($query2)
or die ($query2);
echo "<CENTER>Thank you for editing this post. Now taking you to the administration cpanel index.<BR><A HREF=\"admin.php\">(Click here if you do not wish to wait.)</A></CENTER>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=admin.php\">";
?>

81
admin/usrgroups.php Executable file
View File

@ -0,0 +1,81 @@
***Not available in Beta 1.2. Now showing progress.
<BR><BR>
<CENTER>
<TABLE WIDTH="640" BGCOLOR="#254493" BORDER="0" BORDERCOLOR="#FFFFFF" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD WIDTH="33">
</TD>
<TD WIDTH="200" VALIGN="top" align="center" BGCOLOR="#254493">
<FONT COLOR="#FFFFFF">User ID</FONT>
</TD>
<TD WIDTH="120" VALIGN="top" align="center" BGCOLOR="#254493">
<FONT COLOR="#FFFFFF">Username</FONT>
</TD>
<TD WIDTH="120" VALIGN="top" align="center" BGCOLOR="#254493">
<FONT COLOR="#FFFFFF">Group</FONT>
</TD>
</TR>
<?php
include ('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Could not connect to server $sqlServer");
mysql_select_db ($sqlDatabase, $conn)
or die ("Could not connect to database $sqlDatabase");
$query2 = "SELECT * FROM jbb_users WHERE userID > '1'";
$result2 = mysql_query ($query2)
or die ($query2);
while ($users = mysql_fetch_object($result2)) {
$query = "SELECT * FROM jbb_users WHERE userID = $users->userID";
$result = mysql_query ($query)
or die ($query);
echo "
<TR>
<TD></TD>
<TD COLSPAN=\"1\" BGCOLOR=\"#BBCCDD\">
<B>$users->userID</B>
</TD>
<TD COLSPAN=\"1\" BGCOLOR=\"#EDF3F9\">
<B>$users->username</B>
</TD>
<TD COLSPAN=\"1\" BGCOLOR=\"#EDF3F9\">
<B><SELECT NAME=\"select\">
<OPTION>Member</OPTION>
<OPTION>Administrator</OPTION>
</SELECT></B>
</TD>
</TR>
";
}
?>
</TABLE>

78
admin/usrmodify.php Executable file
View File

@ -0,0 +1,78 @@
<BR><BR>
<CENTER>
<TABLE WIDTH="640" BGCOLOR="#254493" BORDER="0" BORDERCOLOR="#FFFFFF" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD WIDTH="33">
</TD>
<TD WIDTH="200" VALIGN="top" align="center" BGCOLOR="#254493">
<FONT COLOR="#FFFFFF">User ID</FONT>
</TD>
<TD WIDTH="120" VALIGN="top" align="center" BGCOLOR="#254493">
<FONT COLOR="#FFFFFF">Username</FONT>
</TD>
<TD WIDTH="120" VALIGN="top" align="center" BGCOLOR="#254493">
<FONT COLOR="#FFFFFF">Password</FONT>
</TD>
<TD WIDTH="120" VALIGN="top" align="center" BGCOLOR="#254493">
<FONT COLOR="#FFFFFF">Other Options</FONT>
</TD>
</TR>
<?php
include ('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Could not connect to server $sqlServer");
mysql_select_db ($sqlDatabase, $conn)
or die ("Could not connect to database $sqlDatabase");
$query2 = "SELECT * FROM jbb_users";
$result2 = mysql_query ($query2)
or die ($query2);
while ($users = mysql_fetch_object($result2)) {
$query = "SELECT * FROM jbb_users WHERE userID = $users->userID";
$result = mysql_query ($query)
or die ($query);
echo "
<TR>
<TD></TD>
<TD COLSPAN=\"1\" BGCOLOR=\"#BBCCDD\">
<B>$users->userID</B>
</TD>
<TD COLSPAN=\"1\" BGCOLOR=\"#EDF3F9\">
<B>$users->username</B>
</TD>
<TD COLSPAN=\"1\" BGCOLOR=\"#EDF3F9\">
<B>$users->password</B>
</TD>
<TD COLSPAN=\"1\" BGCOLOR=\"#EDF3F9\">
<A HREF=\"admin.php?act=usrops&userID=$users->userID\">Click here</a> <B></B>
</TD>
</TR>
";
}
?>
</TABLE>

171
admin/usrops.php Executable file
View File

@ -0,0 +1,171 @@
<?php
include('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase, $conn)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query3 = "SELECT * FROM jbb_users WHERE userID = '$userID'";
$result3 = mysql_query($query3)
or die ($query3);
$usercp = mysql_fetch_object($result3);
echo "
<FORM ACTION=\"admin.php?act=usrops_submit&userID=$userID\" METHOD=\"post\">
<TABLE WIDTH=\"100%\">
<TR>
<TD>
Username:
</TD>
<TD>
<b>$usercp->username</b>
</TD>
</TR>
<TR>
<TD>
Email:
</TD>
<TD>
<INPUT TYPE=\"text\" NAME=\"usermail\" VALUE=\"$usercp->email\">
</TD>
</TR>
<TR>
<TD>
First Name:
</TD>
<TD>
<INPUT TYPE=\"text\" NAME=\"firstn\" VALUE=\"$usercp->firstName\">
</TD>
</TR>
<TR>
<TD>
Last Name:
</TD>
<TD>
<INPUT TYPE=\"text\" NAME=\"lastn\" VALUE=\"$usercp->lastName\">
</TD>
</TR>
<TR>
<TD>
Avatar:
</TD>
<TD>
<INPUT TYPE=\"text\" NAME=\"usravatar\" VALUE=\"$usercp->avatar\">
</TD>
</TR>
<TR>
<TD>
Member Title:
</TD>
<TD>
<INPUT TYPE=\"text\" NAME=\"usrtitle\" VALUE=\"$usercp->title\">
</TD>
</TR>
<TR>
<TD>
AIM:
</TD>
<TD>
<INPUT TYPE=\"text\" NAME=\"usraim\" VALUE=\"$usercp->aim\">
</TD>
</TR>
<TR>
<TD>
MSN:
</TD>
<TD>
<INPUT TYPE=\"text\" NAME=\"usrmsn\" VALUE=\"$usercp->msn\">
</TD>
</TR>
<TR>
<TD>
YIM:
</TD>
<TD>
<INPUT TYPE=\"text\" NAME=\"usryim\" VALUE=\"$usercp->yim\">
</TD>
</TR>
<TR>
<TD>
Interests:
</TD>
<TD>
<INPUT TYPE=\"text\" NAME=\"usrintrests\" VALUE=\"$usercp->intrests\">
</TD>
</TR>
<TR>
<TD>
Website:
</TD>
<TD>
<INPUT TYPE=\"text\" NAME=\"usrwebsite\" VALUE=\"$usercp->website\">
</TD>
</TR>
<TR>
<TD>
Location:
</TD>
<TD>
<INPUT TYPE=\"text\" NAME=\"location\" VALUE=\"$usercp->location\">
</TD>
</TR>
<TR>
<TD>
Bio:
</TD>
<TD>
<INPUT TYPE=\"text\" NAME=\"bio\" VALUE=\"$usercp->bio\">
</TD>
</TR>
<TR>
<TD>
Signature:
</TD>
<TD>
<TEXTAREA NAME=\"sig\"></textarea>
</TD>
</TR>
<TR>
<TD ALIGN=\"right\">
<BR><INPUT TYPE=\"submit\" VALUE=\"Update\">
</TD>
</TR>
</TABLE></FORM>";
?>

22
admin/usrops_submit.php Executable file
View File

@ -0,0 +1,22 @@
<?php
include('../conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase, $conn)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query2 = "UPDATE jbb_users
SET email = '$usermail' , firstName = '$firstn' , lastName = '$lastn' , avatar = '$usravatar' , title = '$usrtitle' , aim = '$usraim' , msn = '$usrmsn' , yim = '$usryim' , intrests = '$usrintrests' , siteURL = '$usrwebsite' , location = '$location' , bio = '$bio' , sig = '$sig'
WHERE userID ='$ck_userID'";
$result2 = mysql_query ($query2)
or die ($query2);
echo "<CENTER>Thank you for changing your user settings. Now taking you to the administration cp.<BR><A HREF=\"admin.php\">(Click here if you do not wish to wait.)</A></CENTER>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=admin.php\">";
?>

6
conf.php Executable file
View File

@ -0,0 +1,6 @@
<?php
$sqlServer = ""; // 99% of the time: localhost
$sqlUsername = ""; // Your mySQL Username
$sqlPassword = ""; // Your mySQL Password
$sqlDatabase = ""; // Your mySQL Database
?>

19
delete_reply.php Executable file
View File

@ -0,0 +1,19 @@
<?php
if ($ck_groupID == "1") {
if ($ck_userID == "") {
echo "<B>You cannot delete this post</B> for one of several reasons. You need to login before you can delete a post. Please do so below. If you are logged in, then you may not have permission to delete a post in this forum.";
} else {
echo "
<CENTER><TABLE WIDTH=\"80%\">
<TR>
<TD ALIGN=\"center\">Are you sure you want to delete this post?<BR><BR><FORM ACTION=\"index.php?act=delete_reply_submit&replyID=$replyID\" METHOD=\"post\"><INPUT TYPE=\"submit\" VALUE=\"Yes\"></FORM><FORM ACTION=\"index.php\" METHOD=\"post\"><INPUT TYPE=\"submit\" VALUE=\"No\"></FORM></TD>
</TR>
</TABLE></CENTER>";
} } else { echo "<CENTER>We're sorry, <b>you do not have permission to delete this post</b>.</CENTER>"; }
?>

18
delete_reply_submit.php Executable file
View File

@ -0,0 +1,18 @@
<?php
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase, $conn)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query2 = "DELETE FROM jbb_replies
WHERE replyID ='$replyID'";
$result2 = mysql_query ($query2)
or die ($query2);
echo "<CENTER>The post was successfully deleted. Now taking you to your topic.<BR><A HREF=\"index.php?act=topic_view&topicID=$topicID\">(Click here if you do not wish to wait.)</A></CENTER>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=index.php?act=topic_view&topicID=$topicID\">";
?>

145
edit_reply.php Executable file
View File

@ -0,0 +1,145 @@
<SCRIPT type="text/javascript">
function make_bold() {var bold_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:edit_reply.message.value+=" [b]" + bold_text + "[/b]";}
function make_underlined() {var u_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:edit_reply.message.value+=" [u]" + u_text + "[/u]";}
function make_italics() {var italic_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:edit_reply.message.value+=" [i]" + italic_text + "[/i]";}
function make_strikethrough() {var s_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:edit_reply.message.value+=" [s]" + s_text + "[/s]";}
function make_link() {var link = prompt ("Insert the URL of the website that you would like to link to below.","Type it here");
var link_text = prompt ("Insert the text that you would like to have displayed as a link below.","Type it here");
javascript:edit_reply.message.value+=" [URL=" + link + ":]" + link_text + "[/URL]";}
function fontcolor() {var colortext = prompt ("Insert the text that you want to be formatted below.","Type it here");
var color = prompt ("Insert the color that you would like the text to be.","Type it here");
javascript:edit_reply.message.value+=" [FONT COLOR=" + color + ":]" + colortext + "[/FONT]";}
function fontsize() {var sizetext = prompt ("Insert the text that you want to be formatted below.","Type it here");
var size = prompt ("Insert the size that you would like the text to be (-3, -2, -1, +1, +2, or +3 (+3 being the largest, -3 being the smallest)).","Type it here");
javascript:edit_reply.message.value+=" [FONT SIZE=" + size + ":]" + sizetext + "[/FONT]";}
</SCRIPT>
<?php
$query3 = "SELECT * FROM jbb_replies WHERE replyID = '$replyID'";
$result3 = mysql_query($query3)
or die ($query3);
$edit_reply = mysql_fetch_object($result3);
if ($ck_groupID == "1") {
if ($ck_userID == "") {
echo "<B>You cannot edit this post</B> for one of several reasons. You need to login before you can edit a post. Please do so below. If you are logged in, then you may not have permission to edit a post in this forum.";
} else {
echo "
<FORM ACTION=\"index.php?act=edit_reply_submit&replyID=$replyID\" METHOD=\"post\" NAME=\"edit_reply\">
<TABLE WIDTH=\"80%\">
<TR>
<TD COLSPAN=\"2\">
<INPUT type=\"button\" style=\"font-weight:bold;\" value=\" B \" onClick=\"make_bold();\">
<INPUT type=\"button\" style=\"font-style:oblique;\" value=\" I \" onClick=\"make_italics();\">
<INPUT type=\"button\" style=\"text-decoration:underline;\" value=\" U \" onClick=\"make_underlined();\">
<INPUT type=\"button\" value=\" S \" onClick=\"make_strikethrough();\">
<INPUT type=\"button\" value=\" URL \" onClick=\"make_link();\">
<INPUT type=\"button\" value=\" FONT COLOR \" onClick=\"fontcolor();\">
<INPUT type=\"button\" value=\" FONT SIZE \" onClick=\"fontsize();\">
</TD>
</TR>
<TR>
<TD ALIGN=\"center\" VALIGN=\"top\">
<BR>
<TABLE CELLSPACING=\"10\">
<TR>
<TD COLSPAN=\"3\" ALIGN=\"center\">
<B>Emoticons</B>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_reply.message.value+=' :)';\"><img src=\"images/emoticons/smile.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_reply.message.value+=' :D';\"><img src=\"images/emoticons/bigsmile.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_reply.message.value+=' :(';\"><img src=\"images/emoticons/frown.gif\" BORDER=\"0\"></a>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\"><a onclick=\"javascript:edit_reply.messaget.value+=' :crying:';\"><img src=\"images/emoticons/crying.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_reply.message.value+=' :blush:';\"><img src=\"images/emoticons/blush.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_reply.message.value+=' :?';\"><img src=\"images/emoticons/confused.gif\" BORDER=\"0\"></a>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_reply.message.value+=' B)';\"><img src=\"images/emoticons/cool.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_reply.message.value+=' :O';\"><img src=\"images/emoticons/surprised.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_reply.message.value+=' :P';\"><img src=\"images/emoticons/tongue.gif\" BORDER=\"0\"></a>
</TD></TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_reply.message.value+=' :angel:';\"><img src=\"images/emoticons/innocent.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_reply.message.value+=' ;)';\"><img src=\"images/emoticons/wink.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_reply.message.value+=' :0';\"><img src=\"images/emoticons/whoa.gif\" BORDER=\"0\"></a>
</TD>
</TR>
</TABLE>
</TD>
<TD>
<TEXTAREA ROWS=\"15\" COLS=\"70\" NAME=\"message\">$edit_reply->message</TEXTAREA>
</TD>
</TR>
<TR>
<TD COLSPAN=\"2\" ALIGN=\"center\">
<BR><BR><CENTER><INPUT TYPE=\"submit\" VALUE=\"Edit Reply\"><INPUT TYPE=\"hidden\" NAME=\"forumID\" VALUE=\"$forumID\"><INPUT TYPE=\"hidden\" NAME=\"topicID\" VALUE=\"$topicID\"><INPUT TYPE=\"hidden\" NAME=\"replyID\" VALUE=\"$replyID\"></CENTER>
</TD>
</TR>
</TABLE>
</FORM>";
} } else { echo "<CENTER>We're sorry, <b>you do not have permission to edit this post</b>.</CENTER>"; }
?>

21
edit_reply_submit.php Executable file
View File

@ -0,0 +1,21 @@
<?php
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase, $conn)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query2 = "UPDATE jbb_replies
SET message = '$message'
WHERE replyID ='$replyID'";
$result2 = mysql_query ($query2)
or die ($query2);
echo "<CENTER>Thank you for editing this post. Now taking you to your topic.<BR><A HREF=\"index.php?act=topic_view&topicID=$topicID\">(Click here if you do not wish to wait.)</A></CENTER>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=index.php?act=topic_view&topicID=$topicID\">";
?>

152
edit_topic.php Executable file
View File

@ -0,0 +1,152 @@
<SCRIPT type="text/javascript">
function make_bold() {var bold_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:edit_topic.firstPost.value+=" [b]" + bold_text + "[/b]";}
function make_underlined() {var u_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:edit_topic.firstPost.value+=" [u]" + u_text + "[/u]";}
function make_italics() {var italic_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:edit_topic.firstPost.value+=" [i]" + italic_text + "[/i]";}
function make_strikethrough() {var s_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:edit_topic.firstPost.value+=" [s]" + s_text + "[/s]";}
function make_link() {var link = prompt ("Insert the URL of the website that you would like to link to below.","Type it here");
var link_text = prompt ("Insert the text that you would like to have displayed as a link below.","Type it here");
javascript:edit_topic.firstPost.value+=" [URL=" + link + ":]" + link_text + "[/URL]";}
function fontcolor() {var colortext = prompt ("Insert the text that you want to be formatted below.","Type it here");
var color = prompt ("Insert the color that you would like the text to be.","Type it here");
javascript:edit_topic.firstPost.value+=" [FONT COLOR=" + color + ":]" + colortext + "[/FONT]";}
function fontsize() {var sizetext = prompt ("Insert the text that you want to be formatted below.","Type it here");
var size = prompt ("Insert the size that you would like the text to be (-3, -2, -1, +1, +2, or +3 (+3 being the largest, -3 being the smallest)).","Type it here");
javascript:edit_topic.firstPost.value+=" [FONT SIZE=" + size + ":]" + sizetext + "[/FONT]";}
</SCRIPT>
<?php
$query3 = "SELECT * FROM jbb_topics WHERE topicID = '$topicID'";
$result3 = mysql_query($query3)
or die ($query3);
$edit_topic = mysql_fetch_object($result3);
if ($ck_groupID == "1") {
if ($ck_userID == "") {
echo "<B>You cannot edit this post</B> for one of several reasons. You need to login before you can edit a post. Please do so below. If you are logged in, then you may not have permission to edit a post in this forum.";
} else {
echo "
<FORM ACTION=\"index.php?act=edit_topic_submit&topicID=$topicID\" METHOD=\"post\" NAME=\"edit_topic\">
<TABLE WIDTH=\"80%\">
<TR>
<TD>Topic Title:</TD>
<TD><B>$edit_topic->subject</b>
</TR>
<TR>
<TD>Edit Topic Description:</TD>
<TD><INPUT TYPE=\"text\" NAME=\"description\" SIZE=\"40\" VALUE=\"$edit_topic->description\">
</TR>
<TR>
<TD COLSPAN=\"2\" ALIGN=\"center\">
<INPUT type=\"button\" style=\"font-weight:bold;\" value=\" B \" onClick=\"make_bold();\">
<INPUT type=\"button\" style=\"font-style:oblique;\" value=\" I \" onClick=\"make_italics();\">
<INPUT type=\"button\" style=\"text-decoration:underline;\" value=\" U \" onClick=\"make_underlined();\">
<INPUT type=\"button\" value=\" S \" onClick=\"make_strikethrough();\">
<INPUT type=\"button\" value=\" URL \" onClick=\"make_link();\">
<INPUT type=\"button\" value=\" FONT COLOR \" onClick=\"fontcolor();\">
<INPUT type=\"button\" value=\" FONT SIZE \" onClick=\"fontsize();\">
</TD>
</TR>
<TR>
<TD ALIGN=\"center\" VALIGN=\"top\">
<BR>
<TABLE CELLSPACING=\"10\">
<TR>
<TD COLSPAN=\"3\" ALIGN=\"center\">
<B>Emoticons</B>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_topic.firstPost.value+=' :)';\"><img src=\"images/emoticons/smile.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_topic.firstPost.value+=' :D';\"><img src=\"images/emoticons/bigsmile.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_topic.firstPost.value+=' :(';\"><img src=\"images/emoticons/frown.gif\" BORDER=\"0\"></a>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\"><a onclick=\"javascript:edit_topic.firstPost.value+=' :crying:';\"><img src=\"images/emoticons/crying.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_topic.firstPost.value+=' :blush:';\"><img src=\"images/emoticons/blush.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_topic.firstPost.value+=' :?';\"><img src=\"images/emoticons/confused.gif\" BORDER=\"0\"></a>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_topic.firstPost.value+=' B)';\"><img src=\"images/emoticons/cool.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_topic.firstPost.value+=' :O';\"><img src=\"images/emoticons/surprised.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_topic.firstPost.value+=' :P';\"><img src=\"images/emoticons/tongue.gif\" BORDER=\"0\"></a>
</TD></TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_topic.firstPost.value+=' :angel:';\"><img src=\"images/emoticons/innocent.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_topic.firstPost.value+=' ;)';\"><img src=\"images/emoticons/wink.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:edit_topic.firstPost.value+=' :0';\"><img src=\"images/emoticons/whoa.gif\" BORDER=\"0\"></a>
</TD>
</TR>
</TABLE>
</TD>
<TD>
<TEXTAREA ROWS=\"15\" COLS=\"70\" NAME=\"firstPost\">$edit_topic->firstPost</TEXTAREA>
</TD>
</TR>
<TR>
<TD COLSPAN=\"2\" ALIGN=\"center\">
<BR><BR><CENTER><INPUT TYPE=\"submit\" VALUE=\"Edit Topic\"><INPUT TYPE=\"hidden\" NAME=\"forumID\" VALUE=\"$forumID\"><INPUT TYPE=\"hidden\" NAME=\"topicID\" VALUE=\"$topicID\"></CENTER>
</TD>
</TR>
</TABLE>
</FORM>";
} } else { echo "<CENTER>We're sorry, <b>you do not have permission to edit this post</b>.</CENTER>"; }
?>

20
edit_topic_submit.php Executable file
View File

@ -0,0 +1,20 @@
<?php
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase, $conn)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query2 = "UPDATE jbb_topics
SET description = '$description' , firstPost = '$firstPost'
WHERE topicID ='$topicID'";
$result2 = mysql_query ($query2)
or die ($query2);
echo "<CENTER>Thank you for editing this post. Now taking you to your topic.<BR><A HREF=\"index.php?act=topic_view&topicID=$topicID\">(Click here if you do not wish to wait.)</A></CENTER>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=index.php?act=topic_view&topicID=$topicID\">";
?>

110
forumlist.php Executable file
View File

@ -0,0 +1,110 @@
<BR><BR>
<CENTER>
<TABLE WIDTH="100%" BGCOLOR="#008CAD" BORDER="0" BORDERCOLOR="#FFFFFF" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD WIDTH="33">
</TD>
<TD WIDTH="200" VALIGN="top" align="center" BGCOLOR="#008CAD">
<FONT COLOR="#FFFFFF">Forum</FONT>
</TD>
<TD WIDTH="120" VALIGN="top" align="center" BGCOLOR="#008CAD">
<FONT COLOR="#FFFFFF">Threads</FONT>
</TD>
<TD WIDTH="120" VALIGN="top" align="center" BGCOLOR="#008CAD">
<FONT COLOR="#FFFFFF">Replies</FONT>
</TD>
<TD WIDTH="120" VALIGN="top" align="center" BGCOLOR="#008CAD">
<FONT COLOR="#FFFFFF">Moderators</FONT>
</TD>
</TR>
<?php
include ('conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Could not connect to server $sqlServer");
mysql_select_db ($sqlDatabase, $conn)
or die ("Could not connect to database $sqlDatabase");
$query2 = "SELECT * FROM jbb_categories";
$result2 = mysql_query ($query2)
or die ($query2);
while ($categories = mysql_fetch_object($result2)) {
$query = "SELECT * FROM jbb_forums WHERE catID = $categories->catID";
$result = mysql_query ($query)
or die ($query);
echo "
<TR>
<TD COLSPAN=\"5\" BGCOLOR=\"#005A6B\">
<B>$categories->name</B>
</TD>
</TR>
<TR>
<TD COLSPAN=\"5\" BGCOLOR=\"#EDF3F9\">
</TD>
</TR>
";
while ($forums = mysql_fetch_object($result)) {
$query1="SELECT topicID FROM jbb_topics WHERE forumID = $forums->forumID";
$result20 = mysql_query($query1)
or die ($query1);
$forumThreadCount=mysql_numrows($result20);
$query2="SELECT replyID FROM jbb_replies WHERE forumID = $forums->forumID";
$result30 = mysql_query($query2)
or die ($query2);
$forumReplyCount=mysql_numrows($result30);
echo "
<TR BGCOLOR=\"#FFFFFF\" HEIGHT=\"45\">
<TD WIDTH=\"55\" VALIGN=\"middle\" BGCOLOR=\"#FFFFFF\">
&nbsp;<IMG SRC=\"images/forum.gif\">&nbsp;
</TD>
<TD VALIGN=\"top\" ALIGN=\"left\" WIDTH=\"200\" BGCOLOR=\"#FFFFFF\">
<B><A HREF=\"index.php?act=topiclist&forumID=$forums->forumID\">$forums->name</A></B><BR>$forums->description
</TD>
<TD WIDTH=\"120\" VALIGN=\"middle\" ALIGN=\"center\" BGCOLOR=\"#FFFFFF\">
$forumThreadCount
</TD>
<TD WIDTH=\"120\" VALIGN=\"middle\" ALIGN=\"center\" BGCOLOR=\"#FFFFFF\">
$forumReplyCount
</TD>
<TD WIDTH=\"120\" VALIGN=\"middle\" ALIGN=\"center\" BGCOLOR=\"#FFFFFF\">
$forumModerators
</TD>
</TR>
<TR>
<TD COLSPAN=\"5\" HEIGHT=\"5\" BGCOLOR=\"#FFFFFF\">
</TD>
</TR>
";
}
}
?>
</TABLE>

482
functions.php Executable file
View File

@ -0,0 +1,482 @@
<?php
function showTopic($topicID) {
$query30 = "SELECT * FROM jbb_topics WHERE topicID = '$topicID'";
$result30 = mysql_query ($query30)
or die ($query30);
while ($topic = mysql_fetch_object($result30)) {
$query40 = "SELECT * FROM jbb_users WHERE userID = '$topic->userID'";
$result20 = mysql_query($query40)
or die ($query40);
$user = mysql_fetch_object($result20);
$topicval = $topic->firstPost;
$replacement = '<IMG SRC=images/emoticons/smile.gif>';
$replacement2 = '<IMG SRC=images/emoticons/bigsmile.gif>';
$replacement3 = '<IMG SRC=images/emoticons/frown.gif>';
$replacement4 = '<IMG SRC=images/emoticons/crying.gif>';
$replacement5 = '<IMG SRC=images/emoticons/blush.gif>';
$replacement6 = '<IMG SRC=images/emoticons/confused.gif>';
$replacement7 = '<IMG SRC=images/emoticons/cool.gif>';
$replacement8 = '<IMG SRC=images/emoticons/surprised.gif>';
$replacement9 = '<IMG SRC=images/emoticons/tongue.gif>';
$replacement10 = '<IMG SRC=images/emoticons/innocent.gif>';
$replacement11 = ' <IMG SRC=images/emoticons/wink.gif>';
$replacement12 = '<IMG SRC=images/emoticons/whoa.gif>';
$replacement13 = '<b>';
$replacement14 = '</b>';
$replacement15 = '<u>';
$replacement16 = '</u>';
$replacement17 = '<i>';
$replacement18 = '</i>';
$replacement19 = '<s>';
$replacement20 = '</s>';
$replacement21 = '<a href="';
$replacement22 = '">';
$replacement23 = '</a>';
$replacement24 = '<FONT COLOR="';
$replacement25 = '</FONT>';
$replacement26 = '<FONT SIZE="';
$replacement27 = '<BR>';
$topicval = str_replace(':)', $replacement, $topicval);
$topicval = str_replace(':D', $replacement2, $topicval);
$topicval = str_replace(':(', $replacement3, $topicval);
$topicval = str_replace(':crying:', $replacement4, $topicval);
$topicval = str_replace(':blush:', $replacement5, $topicval);
$topicval = str_replace(':?', $replacement6, $topicval);
$topicval = str_replace('B)', $replacement7, $topicval);
$topicval = str_replace(':O', $replacement8, $topicval);
$topicval = str_replace(':P', $replacement9, $topicval);
$topicval = str_replace(':angel:', $replacement10, $topicval);
$topicval = str_replace(';)', $replacement11, $topicval);
$topicval = str_replace(':0', $replacement12, $topicval);
$topicval = str_replace('[b]', $replacement13, $topicval);
$topicval = str_replace('[/b]', $replacement14, $topicval);
$topicval = str_replace('[u]', $replacement15, $topicval);
$topicval = str_replace('[/u]', $replacement16, $topicval);
$topicval = str_replace('[i]', $replacement17, $topicval);
$topicval = str_replace('[/i]', $replacement18, $topicval);
$topicval = str_replace('[s]', $replacement19, $topicval);
$topicval = str_replace('[/s]', $replacement20, $topicval);
$topicval = str_replace('[URL=', $replacement21, $topicval);
$topicval = str_replace(':]', $replacement22, $topicval);
$topicval = str_replace('[/URL]', $replacement23, $topicval);
$topicval = str_replace('[FONT COLOR=', $replacement24, $topicval);
$topicval = str_replace('[/FONT]', $replacement25, $topicval);
$topicval = str_replace('[FONT SIZE=', $replacement26, $topicval);
$topicval = str_replace('
', $replacement27, $topicval);
echo "
<TABLE WIDTH=\"100%\" HEIGHT=\"100%\">
<TR>
<TD>
</TD>
<TD>
<B>Posted:</B> $topic->postTime
</TD>
<TD>
</TD>
</TR>
<TR>
<TD WIDTH=\"100\">
<B>$user->username</B>
<BR>
$user->title
<BR><BR>
<IMG SRC=\"$user->avatar\">
<BR><BR>
</TD>
<TD COLSPAN=\"2\" VALIGN=\"top\">
<BR>$topicval
</TD>
</TR>
<TR>
<TD>
</TD>
<TD ALIGN=\"left\">
<A HREF=\"index.php?act=user_profile&userID=$user->userID\"><IMG SRC=\"images/profile.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\"></A>
<A HREF=\"index.php?act=private&userID=$user->userID\"><IMG SRC=\"images/pm.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\"></A>";
if ($user->email == "") {
echo "";
} else {
echo "<A HREF=\"mailto:$user->email\"><IMG SRC=\"images/email.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\"></A>";
}
if ($user->siteURL == "") {
echo "";
} else {
echo "<A HREF=\"$user->siteURL\"><IMG SRC=\"images/www.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\"></A>";
}
if ($user->aim == "") {
echo "";
} else {
echo "<A HREF=\"aim:goim?screenname=$user->aim&message=Hey, $user->firstName!\"><IMG SRC=\"images/aim.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\">";
}
if ($user->msnm == "") {
echo "";
} else {
echo "<A HREF=\"javascript:MsgrApp.LaunchIMUI('$user->msnm');\"><IMG SRC=\"images/msnm.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\"></A>";
}
if ($user->yim == "") {
echo "";
} else {
echo "<A HREF=\"http://edit.yahoo.com/config/send_webmesg?.target=$user->yim&amp;.src=pg\"><IMG SRC=\"images/yim.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\"></A>";
}
echo " </TD>
<TD ALIGN=\"right\">
<A HREF=\"index.php?act=edit_topic&topicID=$topic->topicID\">Edit</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</TD>
</TR>
</TABLE>
<HR COLOR=\"#C0C0C0\" SIZE=\"1\" WIDTH=\"75%\">";
}
}
function showReply($replyID, $topicID) {
$query50 = "SELECT * FROM jbb_replies WHERE replyID = '$replyID'";
$result50 = mysql_query($query50)
or die ($query50);
$reply = mysql_fetch_object($result50);
$query60 = "SELECT * FROM jbb_users WHERE userID = '$reply->userID'";
$result60 = mysql_query($query60)
or die ($query60);
$user = mysql_fetch_object($result60);
$query7 = "SELECT * FROM jbb_topics WHERE userID = '$reply->userID'";
$result7 = mysql_query($query7)
or die ($query7);
$query8 = "SELECT * FROM jbb_replies WHERE userID = '$reply->userID'";
$result8 = mysql_query($query8)
or die ($query8);
$usertopics = mysql_numrows($result7);
$userreplies = mysql_numrows($result8);
$userPosts = $usertopics + $userreplies;
$replypost = $reply->message;
$query9 = "SELECT * FROM jbb_users WHERE userID = '$ck_userID'";
$result9 = mysql_query($query9)
or die ($query9);
$admin = mysql_fetch_object($result9);
$replacement = '<IMG SRC=images/emoticons/smile.gif>';
$replacement2 = '<IMG SRC=images/emoticons/bigsmile.gif>';
$replacement3 = '<IMG SRC=images/emoticons/frown.gif>';
$replacement4 = '<IMG SRC=images/emoticons/crying.gif>';
$replacement5 = '<IMG SRC=images/emoticons/blush.gif>';
$replacement6 = '<IMG SRC=images/emoticons/confused.gif>';
$replacement7 = '<IMG SRC=images/emoticons/cool.gif>';
$replacement8 = '<IMG SRC=images/emoticons/surprised.gif>';
$replacement9 = '<IMG SRC=images/emoticons/tongue.gif>';
$replacement10 = '<IMG SRC=images/emoticons/innocent.gif>';
$replacement11 = ' <IMG SRC=images/emoticons/wink.gif>';
$replacement12 = '<IMG SRC=images/emoticons/whoa.gif>';
$replacement13 = '<b>';
$replacement14 = '</b>';
$replacement15 = '<u>';
$replacement16 = '</u>';
$replacement17 = '<i>';
$replacement18 = '</i>';
$replacement19 = '<s>';
$replacement20 = '</s>';
$replacement21 = '<a href="';
$replacement22 = '">';
$replacement23 = '</a>';
$replacement24 = '<FONT COLOR="';
$replacement25 = '</FONT>';
$replacement26 = '<FONT SIZE="';
$replacement27 = '<BR>';
$replypost = str_replace(':)', $replacement, $replypost);
$replypost = str_replace(':D', $replacement2, $replypost);
$replypost = str_replace(':(', $replacement3, $replypost);
$replypost = str_replace(':crying:', $replacement4, $replypost);
$replypost = str_replace(':blush:', $replacement5, $replypost);
$replypost = str_replace(':?', $replacement6, $replypost);
$replypost = str_replace('B)', $replacement7, $replypost);
$replypost = str_replace(':O', $replacement8, $replypost);
$replypost = str_replace(':P', $replacement9, $replypost);
$replypost = str_replace(':angel:', $replacement10, $replypost);
$replypost = str_replace(';)', $replacement11, $replypost);
$replypost = str_replace(':0', $replacement12, $replypost);
$replypost = str_replace('[b]', $replacement13, $replypost);
$replypost = str_replace('[/b]', $replacement14, $replypost);
$replypost = str_replace('[u]', $replacement15, $replypost);
$replypost = str_replace('[/u]', $replacement16, $replypost);
$replypost = str_replace('[i]', $replacement17, $replypost);
$replypost = str_replace('[/i]', $replacement18, $replypost);
$replypost = str_replace('[s]', $replacement19, $replypost);
$replypost = str_replace('[/s]', $replacement20, $replypost);
$replypost = str_replace('[URL=', $replacement21, $replypost);
$replypost = str_replace(':]', $replacement22, $replypost);
$replypost = str_replace('[/URL]', $replacement23, $replypost);
$replypost = str_replace('[FONT COLOR=', $replacement24, $replypost);
$replypost = str_replace('[/FONT]', $replacement25, $replypost);
$replypost = str_replace('[FONT SIZE=', $replacement26, $replypost);
$replypost = str_replace('
', $replacement27, $replypost);
echo "
<TABLE WIDTH=\"100%\" HEIGHT=\"100%\">
<TR>
<TD>
</TD>
<TD>
<B>Posted:</B> $reply->postTime
</TD>
<TD>
</TD>
</TR>
<TR>
<TD WIDTH=\"100\">
<B>$user->username</B>
<BR>
$user->title
<BR><BR>
<IMG SRC=\"$user->avatar\">
<BR><BR>
Posts: $userPosts
<BR>
</TD>
<TD COLSPAN=\"2\" VALIGN=\"top\">
<BR>$replypost
</TD>
</TR>
<TR>
<TD VALIGN=\"top\">
</TD>
<TD ALIGN=\"left\">
<A HREF=\"index.php?act=user_profile&userID=$user->userID\"><IMG SRC=\"images/profile.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\"></A>
<A HREF=\"index.php?act=private&messenger=send&userID=$user->userID\"><IMG SRC=\"images/pm.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\"></A>";
if ($user->email == "") {
echo "";
} else {
echo "<A HREF=\"mailto:$user->email\"><IMG SRC=\"images/email.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\"></A>";
}
if ($user->siteURL == "") {
echo "";
} else {
echo "<A HREF=\"$user->siteURL\"><IMG SRC=\"images/www.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\"></A>";
}
if ($user->aim == "") {
echo "";
} else {
echo "<A HREF=\"aim:goim?screenname=$user->aim&message=Hey, $user->firstName!\"><IMG SRC=\"images/aim.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\">";
}
if ($user->msnm == "") {
echo "";
} else {
echo "<A HREF=\"javascript:MsgrApp.LaunchIMUI('$user->msnm');\"><IMG SRC=\"images/msnm.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\"></A>";
}
if ($user->yim == "") {
echo "";
} else {
echo "<A HREF=\"http://edit.yahoo.com/config/send_webmesg?.target=$user->yim&amp;.src=pg\"><IMG SRC=\"images/yim.gif\" BORDER=\"0\" WIDTH=\"53\" HEIGHT=\"17\"></A>";
}
echo " </TD>
<TD ALIGN=\"right\">
<A HREF=\"index.php?act=edit_reply&replyID=$reply->replyID&topicID=$reply->topicID\">Edit</A>&nbsp;&nbsp;<A HREF=\"index.php?act=delete_reply&replyID=$reply->replyID\">Delete</A>
</TD>
</TR>
</TABLE>
<HR COLOR=\"#C0C0C0\" SIZE=\"1\" WIDTH=\"75%\">";
}
?>

BIN
images/aim.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

BIN
images/avatars/noavatar.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

BIN
images/buttons/admincp.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
images/buttons/home.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
images/buttons/members.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
images/buttons/pming.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
images/buttons/register.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
images/buttons/user_options.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
images/email.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

BIN
images/emoticons/angry.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/emoticons/bigsmile.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
images/emoticons/blush.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/emoticons/confused.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/emoticons/cool.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
images/emoticons/crying.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
images/emoticons/frown.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/emoticons/innocent.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/emoticons/smile.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/emoticons/surprised.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
images/emoticons/tongue.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/emoticons/whoa.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/emoticons/wink.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
images/forum.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
images/logo.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
images/logo.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
images/logo.psd Executable file

Binary file not shown.

BIN
images/message.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

BIN
images/msnm.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 768 B

BIN
images/pm.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

BIN
images/profile.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 775 B

BIN
images/strip.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
images/www.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 B

BIN
images/yim.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

20
includes/aggrement.tpl Executable file
View File

@ -0,0 +1,20 @@
<?php
include('./conf.php');
$aggrement = "
JBB LICENSE AGREEMENT
If the following terms of license agreement are violated, the penalty will be as follows: Under these terms of lisence, JBB has the right to terminate invalid or illegal sessions of a JBB board, and will do so in the case that the agreement is abused. This action will be taken within a 48 hour time-limit.
RESTRICTIONS AND COPYRIGHTS
All JBB registered content (including board script, name, graphics, etc.) on all JBB boards is property of the JBB staff and founder! The bulletin board system's property cannot be copied and/or reregistered for another site! In the case that these terms are violated, look above for the penalties/consequences! Additionally, all of the JBB site's content is &copy; copyright 2003 to JBB- All rights reserved. Please contact the JBB staff for more information.
JBB RESPONSIBILITIES
By agreeing to these terms of license, you are obligating yourself to not using this bulletin board system to post and discriminative/illegal messages (posts cannot violate another members's privacy, or abuse the board administrator's agreement with it's members- if the law is violated on the board, the administrator has the right to ban, suspend , or remove the member that violated any of the restrictions set by the administration and/or law)! JBB is not responsible for any posts, or content that is displayed on the board. If the restrictions are violated the punishment of the unruly member of the board is at the board administration's discression!
Finally, this agreement cannot be made invalid or removed. Penalty for this act is stated in the JBB LICENSE AGREEMENT section of the board agreement. If more information is required before your registration, please contact the JBB Staff! Thank you for your time and cooperation.
-The JBB Staff";
?>

225
index.php Executable file
View File

@ -0,0 +1,225 @@
<?php
include('conf.php');
require('functions.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query = "SELECT * FROM jbb_preferences";
$result = mysql_query ($query)
or die ($query);
$global = mysql_fetch_object ($result);
$query2 = "SELECT * FROM jbb_visitors";
$result2 = mysql_query ($query2)
or die ($query2);
$counter = mysql_fetch_object ($result2);
session_start();
?>
<HTML>
<HEAD>
<TITLE><? echo $global->boardName ?> (Powered by JBB)</TITLE>
<STYLE TYPE="text/css">
td {font-family:Verdana; font-color:#FFFFFF; font-size:10px;}
textarea {
font:10px verdana;
color:#000000;
background:none;
border:1px solid #000000
}
input {
font:10px verdana;
color:#000000;
background:none;
border:1px solid #000000
}
select {
font:10px verdana;
color:#000000;
background:none;
border:1px solid #000000
}
a:link {text-decoration:none; color:blue;}
a:visited {text-decoration:none; color:blue;}
a:hover {color:red;}
</STYLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TOPMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0">
<CENTER>
<TABLE WIDTH="640" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD WIDTH="100%" HEIGHT="60" ALIGN="center" >
<IMG SRC="images/logo.gif" HEIGHT="80">
</TD>
</TR>
<TR>
<TD WIDTH="100%" BACKGROUND="images/strip.jpg">
<TABLE WIDTH="100%">
<TR>
<TD>
<?php
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query_users = "SELECT userID FROM jbb_users";
$result_users = mysql_query ($query_users)
or die ($query_users);
$query_topics = "SELECT topicID FROM jbb_topics";
$result_topics = mysql_query ($query_topics)
or die ($query_topics);
$query_replies = "SELECT replyID FROM jbb_replies";
$result_replies = mysql_query ($query_replies)
or die ($query_replies);
$topics = mysql_numrows($result_topics);
$replies = mysql_numrows($result_replies);
$users = mysql_numrows($result_users);
$posts = $topics + $replies;
echo "Posts: <B>$posts</B> | Users: <B>$users</B>";
?>
</TD>
<TD ALIGN="right">
<?php
if ($ck_username == "") {
echo "Welcome, Guest! Please <A HREF=\"index.php#login\">login</A> or <A HREF=\"index.php?act=register\">register</A>.";
} else {
echo "Welcome back, <B>$ck_username</B>!";
}
?>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD>
<TABLE WIDTH="100%">
<TR>
<td align="center" bgcolor="#FFFFFF"><font size="-1"><a href="index.php" style="color:white;"><img src="images/buttons/home.gif" border="0"></a></font></td>
<td align="center" bgcolor="#FFFFFF"><font size="-1"><a href="index.php?act=members" style="color:white;"><img src="images/buttons/members.gif" border="0"></a></font></td>
<td align="center" bgcolor="#FFFFFF"><font size="-1"><a href="admin/" style="color:white;" target="_blank"><img src="images/buttons/admincp.gif" border="0"></a></font></td>
<td align="center" bgcolor="#FFFFFF"><font size="-1"><a href="index.php?act=usercp" style="color:white;"><img src="images/buttons/user_options.gif" border="0"></a></font></td><td bgcolor="#FFFFFF" align="center"><font size="-1"><a href="index.php?act=pmlist" style="color:white;"><img src="images/buttons/pming.gif" border="0"></a></font></td>
<td align="center" bgcolor="#FFFFFF"><a href="index.php?act=register" style="color:white;"><font size="2"><img src="images/buttons/register.gif" border="0"></font></a></td>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD>
<BR>
<?php
$act2 = $act . ".php";
if ( $act == "" || !file_exists($act2) ) {
$act2 = "forumlist.php";
}
include("$act2");
?>
</TD>
</TR>
<?php
if ($ck_username == "") {
$url = "login_submit.php?";
foreach ($_GET as $variable => $value) {
$url .= "$variable=$value&";
}
echo "
<TR>
<TD BGCOLOR=\"#FFFFFF\" ALIGN=\"right\">
<BR><BR>
<FORM ACTION=\"$url\" METHOD=\"post\">
<TABLE>
<TR>
<TD COLSPAN=\"2\" ALIGN=\"center\" BGCOLOR=\"#008CAD\">
<FONT SIZE=\"-2\" COLOR=\"#FFFFFF\">Login:</FONT>
</TD>
</TR>
<TR>
<TD ALIGN=\"right\">
Username
</TD>
<TD ALIGN=\"right\">
<INPUT TYPE=\"text\" NAME=\"username\">
</TD>
</TR>
<TR>
<TD ALIGN=\"right\">
Password
</TD>
<TD ALIGN=\"right\">
<INPUT TYPE=\"password\" NAME=\"password\">
</TD>
</TR>
<TR>
<TD COLSPAN=\"2\" ALIGN=\"right\">
<INPUT TYPE=\"submit\" VALUE=\"Login\">
</TD>
</TR>
</TABLE>
</FORM>
</TD>
</TR>
";
} else {
echo "
<TR>
<TD BGCOLOR=\"#FFFFFF\" ALIGN=\"right\">
<BR><BR>
<A HREF=\"index.php?act=logout\">Logout</A>
</TD>
</TR>
";
}
?>
<TR>
<TD BGCOLOR="#FFFFFF" ALIGN="center">
<BR><BR><BR><BR><CENTER>&copy; to <A HREF="<?php echo $global->boardURL ?>"><? echo $global->boardName ?></A><BR>Powered by <A HREF="http://jbb.drowninwires.net">JBB</A> Beta 1.2 &copy; 2003 <A HREF="http://www.drowninwires.net">JBB, Inc.</A></CENTER>
</TD>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>

53
login_submit.php Executable file
View File

@ -0,0 +1,53 @@
<?php
include('conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query = "SELECT * FROM jbb_preferences";
$result = mysql_query ($query)
or die ($query);
$global = mysql_fetch_object ($result);
$query = "SELECT * FROM jbb_users WHERE username = '$username' AND password = '$password'";
$result = mysql_query ($query)
or die ($query);
$url = "index.php?";
foreach ($_GET as $variable => $value) {
$url .= "$variable=$value&";
}
if ( mysql_numrows ($result) > "0") {
$user = mysql_fetch_object ($result);
session_id($user->userID);
session_start();
$_SESSION["ck_userID"] = $user->userID;
$_SESSION["ck_username"] = $user->username;
$_SESSION["ck_groupID"] = $user->groupID;
echo "
<HTML>
<HEAD>
<META HTTP-EQUIV=\"refresh\" CONTENT=\"0;URL=$url\">
</HEAD>
</HTML>
";
} else {
echo "
<HTML>
<HEAD>
<META HTTP-EQUIV=\"refresh\" CONTENT=\"0;URL=index.php?act=$url\">
</HEAD>
<BODY onLoad=\"alert('Wrong password. Please try again.')\">
</BODY>
</HTML>
";
}
?>

12
logout.php Executable file
View File

@ -0,0 +1,12 @@
<?php
session_start();
session_destroy();
echo "
<HTML>
<HEAD>
<META HTTP-EQUIV=\"refresh\" CONTENT=\"0;URL=index.php\">
</HEAD>
</HTML>
";
?>

53
members.php Executable file
View File

@ -0,0 +1,53 @@
<HTML>
<TABLE BORDER="2" BORDERCOLOR="black">
<TR>
<TD ALIGN="center" WIDTH="130" BGCOLOR="#008CAD">
<B>Username</B>
</TD>
<TD ALIGN="center" WIDTH="190" BGCOLOR="#0B8F91">
<B>Email</b>
</TD>
<TD BGCOLOR="#008CAD" ALIGN="center" WIDTH="130">
<B>Aim</b>
</TR>
</TABLE>
</HMTL>
<?php
include ('conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Could not connect to server $sqlServer");
mysql_select_db ($sqlDatabase, $conn)
or die ("Could not connect to database $sqlDatabase");
$query = "SELECT * FROM jbb_users";
$result = mysql_query ($query)
or die ($query);
echo "<table>";
while ($users = mysql_fetch_object($result)) {
echo "
<TABLE CELLSPACING=\"2\">
<TR>
<TD WIDTH=\"0\">
</TD>
<TD ALIGN=\"center\" BGCOLOR=\"#008CAD\" WIDTH=\"132\">
<B>$users->username</B>
</TD>
<TD ALIGN=\"center\" WIDTH=\"190\" BGCOLOR=\"#0B8F91\">
<B><A HREF=\"mailto:$users->email\">$users->email</a></b>
</TD>
<TD BGCOLOR=\"#008CAD\" ALIGN=\"center\" WIDTH=\"132\">
<B>$users->aim</b>
</TR>
</TABLE>
";
}
?>

View File

@ -0,0 +1,9 @@
<?php
echo "<CENTER><FONT SIZE=\"+2\"> You chose the following sentence for the calculator: <b>$factora</b>+<b>$factorb</FONT></b><BR><BR>"; ?>
<?php
$calculation = $factora + "$factorb";
?>
<?php
echo "<FONT SIZE=\"+1\">The sum was <b>$calculation<b></FONT><BR><BR><A HREF=\"index.php?file=calculator_add\">New Calculation</A>" . "<br />\n";
?>

View File

@ -0,0 +1,9 @@
<?php
echo "<CENTER><FONT SIZE=\"+2\"> You chose the following sentence for the calculator: <b>$factora</b>/<b>$factorb</FONT></b><BR><BR>"; ?>
<?php
$calculation = $factora / "$factorb";
?>
<?php
echo "<FONT SIZE=\"+1\">The result was <b>$calculation<b></FONT><BR><BR><A HREF=\"index.php?file=calculator_divide\">New Calculation</A>" . "<br />\n";
?>

View File

@ -0,0 +1,9 @@
<?php
echo "<CENTER><FONT SIZE=\"+2\"> You chose the following sentence for the calculator: <b>$factora</b>*<b>$factorb</FONT></b><BR><BR>"; ?>
<?php
$calculation = $factora * "$factorb";
?>
<?php
echo "<FONT SIZE=\"+1\">The product was <b>$calculation<b></FONT><BR><BR><A HREF=\"index.php?file=calculator_multiply\">New Calculation</A>" . "<br />\n";
?>

View File

@ -0,0 +1,9 @@
<?php
echo "<CENTER><FONT SIZE=\"+2\"> You chose the following sentence for the calculator: <b>$factora</b>-<b>$factorb</FONT></b><BR><BR>"; ?>
<?php
$calculation = $factora - "$factorb";
?>
<?php
echo "<FONT SIZE=\"+1\">The result was <b>$calculation<b></FONT><BR><BR><A HREF=\"index.php?file=calculator_subtract\">New Calculation</A>" . "<br />\n";
?>

View File

@ -0,0 +1,7 @@
<form action="calculation_add_result.php" method="post">
<input type="text" name="factora" /> +
<input type="text" name="factorb" />
<input type="submit" value="calculate sum">
</form>
<?php echo "<b><font size=\"-1\">Select operation: <A HREF=\"index.php?file=calculator_add\">+</a> <A HREF=\"index.php?file=calculator_subtract\">-</a> <A HREF=\"index.php?file=calculator_multiply\">*</a> or <A HREF=\"index.php?file=calculator_divide\">/</a></b></font>"; ?>

View File

@ -0,0 +1,7 @@
<form action="index.php?file=calculation_divide_result" method="post">
<input type="text" name="factora" /> /
<input type="text" name="factorb" />
<input type="submit" value="calculate result">
</form>
<?php echo "<b><font size=\"-1\">Select operation: <A HREF=\"index.php?file=calculator_add\">+</a> <A HREF=\"index.php?file=calculator_subtract\">-</a> <A HREF=\"index.php?file=calculator_multiply\">*</a> or <A HREF=\"index.php?file=calculator_divide\">/</a></b></font>"; ?>

View File

@ -0,0 +1,7 @@
<form action="index.php?file=calculation_multiply_result" method="post">
<input type="text" name="factora" /> *
<input type="text" name="factorb" />
<input type="submit" value="calculate product">
</form>
<?php echo "<b><font size=\"-1\">Select operation: <A HREF=\"index.php?file=calculator_add\">+</a> <A HREF=\"index.php?file=calculator_subtract\">-</a> <A HREF=\"index.php?file=calculator_multiply\">*</a> or <A HREF=\"index.php?file=calculator_divide\">/</a></b></font>"; ?>

View File

@ -0,0 +1,7 @@
<form action="index.php?file=calculation_subtract_result" method="post">
<input type="text" name="factora" /> -
<input type="text" name="factorb" />
<input type="submit" value="calculate result">
</form>
<?php echo "<b><font size=\"-1\">Select operation: <A HREF=\"index.php?file=calculator_add\">+</a> <A HREF=\"index.php?file=calculator_subtract\">-</a> <A HREF=\"index.php?file=calculator_multiply\">*</a> or <A HREF=\"index.php?file=calculator_divide\">/</a></b></font>"; ?>

135
new_reply.php Executable file
View File

@ -0,0 +1,135 @@
<SCRIPT type="text/javascript">
function make_bold() {var bold_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:new_reply.message.value+=" [b]" + bold_text + "[/b]";}
function make_underlined() {var u_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:new_reply.message.value+=" [u]" + u_text + "[/u]";}
function make_italics() {var italic_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:new_reply.message.value+=" [i]" + italic_text + "[/i]";}
function make_strikethrough() {var s_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:new_reply.message.value+=" [s]" + s_text + "[/s]";}
function make_link() {var link = prompt ("Insert the URL of the website that you would like to link to below.","Type it here");
var link_text = prompt ("Insert the text that you would like to have displayed as a link below.","Type it here");
javascript:new_reply.message.value+=" [URL=" + link + ":]" + link_text + "[/URL]";}
function fontcolor() {var colortext = prompt ("Insert the text that you want to be formatted below.","Type it here");
var color = prompt ("Insert the color that you would like the text to be.","Type it here");
javascript:new_reply.message.value+=" [FONT COLOR=" + color + ":]" + colortext + "[/FONT]";}
function fontsize() {var sizetext = prompt ("Insert the text that you want to be formatted below.","Type it here");
var size = prompt ("Insert the size that you would like the text to be (-3, -2, -1, +1, +2, or +3 (+3 being the largest, -3 being the smallest)).","Type it here");
javascript:new_reply.message.value+=" [FONT SIZE=" + size + ":]" + sizetext + "[/FONT]";}
</SCRIPT>
<?php
if ($ck_userID == "") {
echo "<B>You cannot post</B> for one of several reasons. You need to login before posting. Please do so below. If you are logged in, then you may not have permission to post in this forum.";
} else {
echo "
<FORM ACTION=\"index.php?act=new_reply_submit\" METHOD=\"post\" NAME=\"new_reply\">
<TABLE WIDTH=\"80%\">
<TR>
<TD COLSPAN=\"2\" ALIGN=\"center\">
<INPUT type=\"button\" style=\"font-weight:bold;\" value=\" B \" onClick=\"make_bold();\">
<INPUT type=\"button\" style=\"font-style:oblique;\" value=\" I \" onClick=\"make_italics();\">
<INPUT type=\"button\" style=\"text-decoration:underline;\" value=\" U \" onClick=\"make_underlined();\">
<INPUT type=\"button\" value=\" S \" onClick=\"make_strikethrough();\">
<INPUT type=\"button\" value=\" URL \" onClick=\"make_link();\">
<INPUT type=\"button\" value=\" FONT COLOR \" onClick=\"fontcolor();\">
<INPUT type=\"button\" value=\" FONT SIZE \" onClick=\"fontsize();\">
</TD>
</TR>
<TR>
<TD ALIGN=\"center\" VALIGN=\"top\">
<BR>
<TABLE CELLSPACING=\"10\">
<TR>
<TD COLSPAN=\"3\" ALIGN=\"center\">
<B>Emoticons</B>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_reply.message.value+=' :)';\"><img src=\"images/emoticons/smile.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_reply.message.value+=' :D';\"><img src=\"images/emoticons/bigsmile.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_reply.message.value+=' :(';\"><img src=\"images/emoticons/frown.gif\" BORDER=\"0\"></a>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\"><a onclick=\"javascript:new_reply.message.value+=' :crying:';\"><img src=\"images/emoticons/crying.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_reply.message.value+=' :blush:';\"><img src=\"images/emoticons/blush.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_reply.message.value+=' :?';\"><img src=\"images/emoticons/confused.gif\" BORDER=\"0\"></a>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_reply.message.value+=' B)';\"><img src=\"images/emoticons/cool.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_reply.message.value+=' :O';\"><img src=\"images/emoticons/surprised.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_reply.message.value+=' :P';\"><img src=\"images/emoticons/tongue.gif\" BORDER=\"0\"></a>
</TD></TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_reply.message.value+=' :angel:';\"><img src=\"images/emoticons/innocent.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_reply.message.value+=' ;)';\"><img src=\"images/emoticons/wink.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_reply.message.value+=' :0';\"><img src=\"images/emoticons/whoa.gif\" BORDER=\"0\"></a>
</TD>
</TR>
</TABLE>
</TD>
<TD>
<TEXTAREA ROWS=\"15\" COLS=\"70\" NAME=\"message\"></TEXTAREA>
</TD>
</TR>
<TR>
<TD COLSPAN=\"2\" ALIGN=\"center\">
<BR><BR><CENTER><INPUT TYPE=\"submit\" VALUE=\"Post Reply\"><INPUT TYPE=\"hidden\" NAME=\"forumID\" VALUE=\"$forumID\"><INPUT TYPE=\"hidden\" NAME=\"topicID\" VALUE=\"$topicID\"></CENTER>
</TD>
</TR>
</TABLE>
</FORM>";
}
?>

27
new_reply_submit.php Executable file
View File

@ -0,0 +1,27 @@
<?php
include('conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$time = date("Y-m-d g:i:s");
$query = "INSERT INTO jbb_replies (topicID, forumID, userID, message, postTime) VALUES ('$topicID','$forumID','$ck_userID','$message','$time')";
$result = mysql_query ($query)
or die ($query);
$query2 = "UPDATE jbb_topics SET lastPostTime = '$time', lastPostUserID = '$ck_userID' WHERE topicID = '$topicID'";
mysql_query($query2)
or die ($query2);
echo "<CENTER>Thank you for posting. Now taking you to your topic.<BR><A HREF=\"index.php?act=topic_view&topicID=$topicID\">(Click here if you do not wish to wait.)</A></CENTER>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=index.php?act=topic_view&topicID=$topicID\">";
?>

147
new_topic.php Executable file
View File

@ -0,0 +1,147 @@
<SCRIPT type="text/javascript">
function make_bold() {var bold_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:new_topic.firstPost.value+=" [b]" + bold_text + "[/b]";}
function make_underlined() {var u_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:new_topic.firstPost.value+=" [u]" + u_text + "[/u]";}
function make_italics() {var italic_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:new_topic.firstPost.value+=" [i]" + italic_text + "[/i]";}
function make_strikethrough() {var s_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
javascript:new_topic.firstPost.value+=" [s]" + s_text + "[/s]";}
function make_link() {var link = prompt ("Insert the URL of the website that you would like to link to below.","Type it here");
var link_text = prompt ("Insert the text that you would like to have displayed as a link below.","Type it here");
javascript:new_topic.firstPost.value+=" [URL=" + link + ":]" + link_text + "[/URL]";}
function fontcolor() {var colortext = prompt ("Insert the text that you want to be formatted below.","Type it here");
var color = prompt ("Insert the color that you would like the text to be.","Type it here");
javascript:new_topic.firstPost.value+=" [FONT COLOR=" + color + ":]" + colortext + "[/FONT]";}
function fontsize() {var sizetext = prompt ("Insert the text that you want to be formatted below.","Type it here");
var size = prompt ("Insert the size that you would like the text to be (-3, -2, -1, +1, +2, or +3 (+3 being the largest, -3 being the smallest)).","Type it here");
javascript:new_topic.firstPost.value+=" [FONT SIZE=" + size + ":]" + sizetext + "[/FONT]";}
</SCRIPT>
<?php
if ($ck_userID == "") {
echo "<B>You cannot post</B> for one of several reasons. You need to login before posting. Please do so below. If you are logged in, then you may not have permission to post in this forum.";
} else {
echo "
<FORM ACTION=\"index.php?act=new_topic_submit&forumID=$forumID\" METHOD=\"post\" NAME=\"new_topic\">
<TABLE WIDTH=\"80%\">
<TR>
<TD>New Topic Title:</TD>
<TD><INPUT TYPE=\"text\" NAME=\"subject\" SIZE=\"40\">
</TR>
<TR>
<TD>New Topic Description:</TD>
<TD><INPUT TYPE=\"text\" NAME=\"desc\" SIZE=\"40\">
</TR>
<TR>
<TD COLSPAN=\"2\" ALIGN=\"center\">
<INPUT type=\"button\" style=\"font-weight:bold;\" value=\" B \" onClick=\"make_bold();\">
<INPUT type=\"button\" style=\"font-style:oblique;\" value=\" I \" onClick=\"make_italics();\">
<INPUT type=\"button\" style=\"text-decoration:underline;\" value=\" U \" onClick=\"make_underlined();\">
<INPUT type=\"button\" value=\" S \" onClick=\"make_strikethrough();\">
<INPUT type=\"button\" value=\" URL \" onClick=\"make_link();\">
<INPUT type=\"button\" value=\" FONT COLOR \" onClick=\"fontcolor();\">
<INPUT type=\"button\" value=\" FONT SIZE \" onClick=\"fontsize();\">
</TD>
</TR>
<TR>
<TD ALIGN=\"center\" VALIGN=\"top\">
<BR>
<TABLE CELLSPACING=\"10\">
<TR>
<TD COLSPAN=\"3\" ALIGN=\"center\">
<B>Emoticons</B>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_topic.firstPost.value+=' :)';\"><img src=\"images/emoticons/smile.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_topic.firstPost.value+=' :D';\"><img src=\"images/emoticons/bigsmile.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_topic.firstPost.value+=' :(';\"><img src=\"images/emoticons/frown.gif\" BORDER=\"0\"></a>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\"><a onclick=\"javascript:new_topic.firstPost.value+=' :crying:';\"><img src=\"images/emoticons/crying.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_topic.firstPost.value+=' :blush:';\"><img src=\"images/emoticons/blush.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_topic.firstPost.value+=' :?';\"><img src=\"images/emoticons/confused.gif\" BORDER=\"0\"></a>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_topic.firstPost.value+=' B)';\"><img src=\"images/emoticons/cool.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_topic.firstPost.value+=' :O';\"><img src=\"images/emoticons/surprised.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_topic.firstPost.value+=' :P';\"><img src=\"images/emoticons/tongue.gif\" BORDER=\"0\"></a>
</TD></TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_topic.firstPost.value+=' :angel:';\"><img src=\"images/emoticons/innocent.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_topic.firstPost.value+=' ;)';\"><img src=\"images/emoticons/wink.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:new_topic.firstPost.value+=' :0';\"><img src=\"images/emoticons/whoa.gif\" BORDER=\"0\"></a>
</TD>
</TR>
</TABLE>
</TD>
<TD>
<TEXTAREA ROWS=\"15\" COLS=\"70\" NAME=\"firstPost\"></TEXTAREA>
</TD>
</TR>
<TR>
<TD COLSPAN=\"2\" ALIGN=\"center\">
<BR><BR><CENTER><INPUT TYPE=\"submit\" VALUE=\"Post New Topic\"><INPUT TYPE=\"hidden\" NAME=\"forumID\" VALUE=\"$forumID\"></CENTER>
</TD>
</TR>
</TABLE>
</FORM>";
}

41
new_topic_submit.php Executable file
View File

@ -0,0 +1,41 @@
<?php
include('conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$time = date("Y-m-d g:i:s");
$query = "INSERT INTO jbb_topics (forumID, userID, subject, description, firstPost, postTime, lastPostTime, lastPostUserID) VALUES ('$forumID','$ck_userID','$subject','$desc','$firstPost','$time','$time','$ck_userID')";
$result = mysql_query ($query)
or die ($query);
$query2 = "SELECT * FROM jbb_topics WHERE topicID = '$topicID'";
$result2 = mysql_query ($query2)
or die ($query2);
$query3 = "SELECT * FROM jbb_forums WHERE forumID = '$forumID'";
$result3 = mysql_query ($query3)
or die ($query3);
$topic = mysql_fetch_object($result2);
$forum = mysql_fetch_object($result3);
$topicID = $topic->topicID;
echo "<CENTER>Thank you for posting. Now returning to \"$forum->name\".<BR><A HREF=\"index.php?act=topiclist&forumID=$forumID\">(Click here if you do not wish to wait.)</A></CENTER>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=index.php?act=topiclist&forumID=$forumID\>";
?>

124
pm_view.php Executable file
View File

@ -0,0 +1,124 @@
<CENTER><HR COLOR="#C0C0C0" SIZE="1" WIDTH="100%"></CENTER>
<INPUT TYPE="hidden" name="pmID" value="$pm->pmID">
<?php
include ('conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Could not connect to server $sqlServer");
mysql_select_db ($sqlDatabase, $conn)
or die ("Could not connect to database $sqlDatabase");
$query1 = "SELECT * FROM jbb_pm WHERE pmID = '$pmID'";
$result1 = mysql_query ($query1)
or die ($query1);
while ($pm = mysql_fetch_object($result1)) {
$replacement = '<IMG SRC=images/emoticons/smile.gif>';
$replacement2 = '<IMG SRC=images/emoticons/bigsmile.gif>';
$replacement3 = '<IMG SRC=images/emoticons/frown.gif>';
$replacement4 = '<IMG SRC=images/emoticons/crying.gif>';
$replacement5 = '<IMG SRC=images/emoticons/blush.gif>';
$replacement6 = '<IMG SRC=images/emoticons/confused.gif>';
$replacement7 = '<IMG SRC=images/emoticons/cool.gif>';
$replacement8 = '<IMG SRC=images/emoticons/surprised.gif>';
$replacement9 = '<IMG SRC=images/emoticons/tongue.gif>';
$replacement10 = '<IMG SRC=images/emoticons/innocent.gif>';
$replacement11 = ' <IMG SRC=images/emoticons/wink.gif>';
$replacement12 = '<IMG SRC=images/emoticons/whoa.gif>';
$replacement12 = '<BR>';
$pm->message = str_replace(':)', $replacement, $pm->message);
$pm->message = str_replace(':D', $replacement2, $pm->message);
$pm->message = str_replace(':(', $replacement3, $pm->message);
$pm->message = str_replace(':crying:', $replacement4, $pm->message);
$pm->message = str_replace(':blush:', $replacement5, $pm->message);
$pm->message = str_replace(':?', $replacement6, $pm->message);
$pm->message = str_replace('B)', $replacement7, $pm->message);
$pm->message = str_replace(':O', $replacement8, $pm->message);
$pm->message = str_replace(':P', $replacement9, $pm->message);
$pm->message = str_replace(':angel:', $replacement10, $pm->message);
$pm->message = str_replace(';)', $replacement11, $pm->message);
$pm->message = str_replace(':0', $replacement12, $pm->message);
$pm->message = str_replace('
', $replacement13, $pm->message);
echo "
<TR>
<TD ALIGN=\"left\">
Reading \"$pm->title\" sent by <b>$pm->sender</b>.
<BR>
<BR>
<BR>
</TD>
</TR>
<TR>
<TD ALIGN=\"left\">
$pm->message
</TD>
</TR>
<TR>
<TD ALIGN=\"right\">
<FORM ACTION=\"index.php?act=private\" METHOD=\"post\">
<INPUT TYPE=\"hidden\" NAME=\"pmusr\" VALUE=\"$pm->sender\">
<INPUT TYPE=\"submit\" VALUE=\"Reply\">
</FORM>
</TD>
</TR>
";
}
?>

65
pmlist.php Executable file
View File

@ -0,0 +1,65 @@
<DIV ALIGN="right">
<A HREF="index.php?act=private">Compose New Message</A>
</DIV>
<BR>
<TABLE WIDTH="100%">
<TR>
<TD ALIGN="center">
Private Message Title
</TD>
<TD ALIGN="center">
Sender
</TD>
</TR>
<?php
include ('conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Could not connect to server $sqlServer");
mysql_select_db ($sqlDatabase, $conn)
or die ("Could not connect to database $sqlDatabase");
$query1 = "SELECT * FROM jbb_pm WHERE username = '$ck_username'";
$result1 = mysql_query ($query1)
or die ($query1);
if (mysql_num_rows($result1) == 0) {
echo "<TR><TD ALIGN=\"center\" COLSPAN=\"5\"><I>You have no new messages</I></TD></TR>";
}
while ($pm = mysql_fetch_object($result1)) {
echo "
<TR><INPUT TYPE=\"hidden\" NAME=\"$pmID\" VALUE=\"$pm->pmID\">
<TD ALIGN=\"center\">
<A HREF=\"index.php?act=pm_view&pmID=$pm->pmID\">$pm->title</A>
<BR>
</TD>
<TD ALIGN=\"center\">
<B>$pm->sender</B>
</TD>
</TR>
";
}
?>
</TABLE>

106
private.php Executable file
View File

@ -0,0 +1,106 @@
<?php
if ($ck_userID == "") {
echo "<B>You cannot use the private messaging system</B> for one of several reasons. You need to login before private messaging. Please do so below. If you are logged in, then you may not have permission to send pms.";
} else {
echo "
<FORM ACTION=\"index.php?act=private_submit\" METHOD=\"post\" NAME=\"form\">
<TABLE WIDTH=\"80%\">
<TR>
<TD>Recipient's Username:</TD>
<TD><INPUT TYPE=\"text\" NAME=\"username\" SIZE=\"40\" VALUE=\"$pmusr\">
</TR>
<TR>
<TD>Title:</TD>
<TD><INPUT TYPE=\"text\" NAME=\"title\" SIZE=\"40\">
</TR>
<TR>
<TD COLSPAN=\"2\">
bb code buttons here
</TD>
</TR>
<TR>
<TD ALIGN=\"center\" VALIGN=\"top\">
<BR>
<TABLE CELLSPACING=\"10\">
<TR>
<TD COLSPAN=\"3\" ALIGN=\"center\">
<B>Emoticons</B>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:form.message.value+=' :)';\"><img src=\"images/emoticons/smile.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:form.message.value+=' :D';\"><img src=\"images/emoticons/bigsmile.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:form.message.value+=' :(';\"><img src=\"images/emoticons/frown.gif\" BORDER=\"0\"></a>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\"><a onclick=\"javascript:form.messaget.value+=' :crying:';\"><img src=\"images/emoticons/crying.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:form.message.value+=' :blush:';\"><img src=\"images/emoticons/blush.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:form.message.value+=' :?';\"><img src=\"images/emoticons/confused.gif\" BORDER=\"0\"></a>
</TD>
</TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:form.message.value+=' B)';\"><img src=\"images/emoticons/cool.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:form.message.value+=' :O';\"><img src=\"images/emoticons/surprised.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:form.message.value+=' :P';\"><img src=\"images/emoticons/tongue.gif\" BORDER=\"0\"></a>
</TD></TR>
<TR>
<TD ALIGN=\"center\">
<a onclick=\"javascript:form.message.value+=' :angel:';\"><img src=\"images/emoticons/innocent.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:form.message.value+=' ;)';\"><img src=\"images/emoticons/wink.gif\" BORDER=\"0\"></a>
</TD>
<TD ALIGN=\"center\">
<a onclick=\"javascript:form.message.value+=' :0';\"><img src=\"images/emoticons/whoa.gif\" BORDER=\"0\"></a>
</TD>
</TR>
</TABLE>
</TD>
<TD>
<TEXTAREA ROWS=\"15\" COLS=\"70\" NAME=\"message\"></TEXTAREA>
</TD>
</TR>
<TR>
<TD COLSPAN=\"2\" ALIGN=\"center\">
<BR><BR><CENTER><INPUT TYPE=\"submit\" VALUE=\"Send PM\"></CENTER>
</TD>
</TR>
</TABLE>
</FORM>";
}
?>

19
private_submit.php Executable file
View File

@ -0,0 +1,19 @@
<?php
include('conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query = "INSERT INTO jbb_pm (username, title, message, sender) VALUES ('$username','$title','$message','$ck_username')";
$result = mysql_query ($query)
or die ($query);
echo "<CENTER>Thank you for sending a pm to $username. Now taking you to your pm inbox.<BR><A HREF=\"index.php?act=pmlist\">(Click here if you do not wish to wait.)</A></CENTER>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=index.php?act=pmlist\>";
?>

44
register.php Executable file
View File

@ -0,0 +1,44 @@
<?php
echo "<TABLE BORDER=\"0\">
<TR>
<FORM ACTION=\"index.php?act=register_submit\" METHOD=\"post\">
<TD ALIGN=\"center\" WIDTH=\"170\"><B>Username</B><BR>Max. 30 Chars.</TD>
<TD WIDTH=\"800\"><INPUT TYPE=\"text\" NAME=\"username\" MAXLENGTH=\"30\" SIZE=\"60\">
</TR>
<TR>
<TD ALIGN=\"center\" WIDTH=\"170\"><B>Password</B><BR>Max 16 Chars.</TD>
<TD WIDTH=\"800\"><INPUT TYPE=\"password\" NAME=\"password\" MAXLENGTH=\"16\" SIZE=\"60\">
</TR>
<TR>
<TD ALIGN=\"center\" WIDTH=\"170\"><B>Email address</B><BR>This is where your confirmation is sent.</TD>
<TD WIDTH=\"800\"><INPUT TYPE=\"text\" NAME=\"email\" SIZE=\"60\">
</TR>
<TR>
<TD ALIGN=\"center\" COLSPAN=\"2\">";
include ('./conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Could not connect to server $sqlServer");
mysql_select_db ($sqlDatabase, $conn)
or die ("Could not connect to database $sqlDatabase");
$query = "SELECT * FROM jbb_preferences";
$result = mysql_query ($query)
or die ($query);
while ($agreement = mysql_fetch_object($result)) {
echo "<CENTER>
<TEXTAREA ROWS=\"15\" COLS=\"55\">$agreement->aggrement</TEXTAREA><BR>
</CENTER>";
}
echo "</TABLE><BR><BR><CENTER>
<INPUT TYPE=\"submit\" value=\"I agree to these terms and would like to continue\" NAME=\"register_submit\">
</FORM>";
?>

20
register_submit.php Executable file
View File

@ -0,0 +1,20 @@
<?php
include('conf.php');
$conn = mysql_connect ($sqlServer, $sqlUsername, $sqlPassword)
or die ("Uh oh! I could not connect to server $sqlServer.");
mysql_select_db ($sqlDatabase)
or die ("Uh oh! I could not connect to database $sqlDatabase");
$query = "INSERT INTO jbb_users (username, password, email, avatar) VALUES ('$username','$password','$email','images/avatars/noavatar.gif')";
$result = mysql_query ($query)
or die ($query);
?>
<HTML>
<HEAD>
<META HTTP-EQUIV=\"refresh\" CONTENT=\"0;URL=index.php\">
</HEAD>
</HTML>

15
setup/finish_install.php Executable file
View File

@ -0,0 +1,15 @@
<?php
echo "<CENTER><TABLE WIDTH=\"75%\">
<TR>
<TD HEIGHT=\"40\" BACKGROUND=\"images/top_strip.gif\"><FONT FACE=\"verdana\" SIZE=\"+2\" COLSPAN=\"2\">Installation Complete!</FONT></TD>
</TR>
<TR>
<TD HEIGHT=\"30\">
</TD>
</TR>
<TR>
<TD>
<FONT FACE=\"verdana\"><b>Installation Complete! Please press finish and then delete the setup files. Thank you for choosing JBB.<BR>
<A HREF=\"../index.php\"><IMG SRC=\"images/finish.gif\" BORDER=\"0\"></a></TD></TR><TABLE>";
?>

BIN
setup/images/finish.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
setup/images/minor_strip.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
setup/images/next.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
setup/images/startinstall.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
setup/images/top_strip.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
setup/images/wizard.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

14
setup/index.php Executable file
View File

@ -0,0 +1,14 @@
<CENTER><TABLE WIDTH="75%">
<TR>
<TD HEIGHT="40" BACKGROUND="images/top_strip.gif" COLSPAN="2"><FONT SIZE="+2" FACE="verdana">Welcome to the JBB Installation Wizard</FONT></TD>
</TR>
<TR>
<TD><IMG SRC="images/wizard.gif"></TD><TD><b><FONT FACE="verdana">Welcome to the JBB Installation Wizard! JBB (Jellybean's Bulleting Board) is an advanced Bulletin Board system meant to enhance your BBS experience. It includes numerous new features which make it more exciting and efficient than any other Bulletin Board. To install JBB, follow these simple steps, and the bulletin board itself will do the rest.</tD></TR>
<TR>
<TD COLSPAN="2"><FONT FACE="verdana"><b><!-- To begin the installation, click the "Start Installation" button at the bottom of the page. Then, you will be taken to a page with multiple input boxes, in which you should enter your MYSQL Server, MYSQL Database, MYSQL Username, MYSQL password, and your administrator's account information (username, password, and email address). Before filling out this form, please ensure that the file "conf.php" (located in the main directory of the forums) is CHMOD 777.--> Please start the setup by changing the seven mySQL/administrator account questions at the top of the 'sql_submit.php' file. Once you have completed filling out that information, press "next", and you will be taken to another page, on which JBB will automatically install itself in your MYSQL database. Finally, you will be redirected to another page, which will tell you to delete the setup files after you press "finish." Afterwards, please change the values to your correct mySQL information in the conf.php file in the root directory of the forums.<BR><BR><FONT COLOR="red">NOTICE: Do not delete the setup files before you click the "finish" button!</FONT><BR><BR><FONT FACE="verdana">Thank you for choosing Jellybean's Bulletin Board, we hope that you enjoy it very much!</FONT></b>
</TR>
<TR>
<TD COLSPAN="2" ALIGN="CENTER"><A HREF="sql_submit.php"><IMG SRC="images/startinstall.gif" BORDER="0"></A>
</TD>
</TR>
</TABLE>

22
setup/sql_input.php Executable file
View File

@ -0,0 +1,22 @@
<?php
echo "<CENTER><TABLE WIDTH=\"75%\">
<TR>
<TD HEIGHT=\"40\" BACKGROUND=\"images/top_strip.gif\"><FONT FACE=\"verdana\" SIZE=\"+2\" COLSPAN=\"2\">JBB MYSQL Installation</FONT></TD>
</TR>
<TR>
<TD HEIGHT=\"30\">
</TD>
</TR>
<TR>
<TD><FORM ACTION=\"sql_submit.php\" METHOD=\"post\"><FONT FACE=\"verdana\">
<b>SQL Server:</b> <INPUT TYPE=\"text\" NAME=\"sql_server\" VALUE=\"localhost\"></TD></TR><TR><TD>
<b><FONT FACE=\"verdana\">SQL Database: <INPUT TYPE=\"text\" NAME=\"sql_database\"></TD></TR><TR><TD>
<b><FONT FACE=\"verdana\">SQL Username: <INPUT TYPE=\"text\" NAME=\"sql_username\"></TD></TR><TR><TD>
<b><FONT FACE=\"verdana\">SQL Password: <INPUT TYPE=\"password\" NAME=\"sql_password\"></TD></TR><TR><TD>
<b><FONT FACE=\"verdana\">Username: <INPUT TYPE=\"text\" NAME=\"username\"><BR></TD></TR><TR><TD>
<b><FONT FACE=\"verdana\">Password: <INPUT TYPE=\"password\" NAME=\"password\"><BR></TD></TR><TR><TD>
<b><FONT FACE=\"verdana\">Email address: <INPUT TYPE=\"text\" NAME=\"email\"><BR></TD></TR><TR><TD>
<b><FONT FACE=\"verdana\"><INPUT TYPE=\"submit\" BORDER=0></TD></TR></TABLE></FONT></b></CENTER>
</FORM>";
?>

209
setup/sql_submit.php Executable file
View File

@ -0,0 +1,209 @@
<?php
$username = ""; // Admin Username
$password = ""; // Admin Password
$email = ""; // Admin Email
$sql_server = ""; // 99% of the time: localhost
$sql_username = ""; // Your mySQL Username
$sql_password = ""; // Your mySQL Password
$sql_database = ""; // Your mySQL Database
$conn = mysql_connect ($sql_server, $sql_username, $sql_password)
or die ("Uh oh! I could not connect to server $sql_server.");
mysql_select_db ($sql_database, $conn)
or die ("Uh oh! I could not connect to database $sql_database");
$query = "CREATE TABLE `jbb_categories` (
`catID` int(11) NOT NULL auto_increment,
`name` varchar(50) NOT NULL default '',
`order` int(11) NOT NULL default '0',
PRIMARY KEY (`catID`)
) TYPE=MyISAM AUTO_INCREMENT=3";
$result = mysql_query ($query)
or die ($query);
$query2 = "CREATE TABLE `jbb_emoticons` (
`emoticonID` int(11) NOT NULL auto_increment,
`skinID` tinyint(11) NOT NULL default '0',
`input` varchar(20) NOT NULL default '',
`output` varchar(255) NOT NULL default '',
PRIMARY KEY (`emoticonID`)
) TYPE=MyISAM AUTO_INCREMENT=1";
$result2 = mysql_query ($query2)
or die ($query2);
$query3 = "CREATE TABLE `jbb_forums` (
`forumID` int(11) NOT NULL auto_increment,
`catID` int(11) NOT NULL default '0',
`name` varchar(50) NOT NULL default '',
`description` text NOT NULL,
`order` int(11) NOT NULL default '0',
`restrictions` int(11) NOT NULL default '0',
PRIMARY KEY (`forumID`)
) TYPE=MyISAM AUTO_INCREMENT=6";
$result3 = mysql_query ($query3)
or die ($query3);
$query4 = "CREATE TABLE `jbb_groups` (
`groupID` int(11) NOT NULL auto_increment,
`name` text NOT NULL,
`level` int(11) NOT NULL default '0',
PRIMARY KEY (`groupID`)
) TYPE=MyISAM AUTO_INCREMENT=1";
$result4 = mysql_query ($query4)
or die ($query4);
$query5 = "CREATE TABLE `jbb_moderators` (
`modID` int(11) NOT NULL auto_increment,
`userID` int(11) NOT NULL default '0',
`accessID` int(11) NOT NULL default '0',
`forumID` int(11) NOT NULL default '0',
`level` int(11) NOT NULL default '0',
PRIMARY KEY (`modID`)
) TYPE=MyISAM AUTO_INCREMENT=1";
$result5 = mysql_query ($query5)
or die ($query5);
$query6 = "CREATE TABLE `jbb_pm` (
`username` text NOT NULL,
`title` text NOT NULL,
`message` text NOT NULL,
`sender` text NOT NULL,
`pmID` int(11) NOT NULL auto_increment,
UNIQUE KEY `pmID` (`pmID`)
) TYPE=MyISAM AUTO_INCREMENT=7";
$result6 = mysql_query ($query6)
or die ($query6);
$query7 = "CREATE TABLE `jbb_preferences` (
`boardName` text NOT NULL,
`boardURL` text NOT NULL,
`boardEmail` text NOT NULL,
`aggrement` longtext NOT NULL,
`allowHTML` enum('true','false') NOT NULL default 'true',
`allowImages` enum('true','false') NOT NULL default 'true',
`allowLinks` enum('true','false') NOT NULL default 'true',
`linksNewWindow` enum('true','false') NOT NULL default 'true',
`allowBold` enum('true','false') NOT NULL default 'true',
`allowItalics` enum('true','false') NOT NULL default 'true',
`allowUnderline` enum('true','false') NOT NULL default 'true',
`defaultSkinID` int(11) NOT NULL default '0'
) TYPE=MyISAM";
$result7 = mysql_query ($query7)
or die ($query7);
$query8 = "CREATE TABLE `jbb_replies` (
`replyID` int(11) NOT NULL auto_increment,
`forumID` int(11) NOT NULL default '0',
`topicID` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
`postTime` datetime NOT NULL default '0000-00-00 00:00:00',
`message` longtext NOT NULL,
PRIMARY KEY (`replyID`)
) TYPE=MyISAM AUTO_INCREMENT=46";
$result8 = mysql_query ($query8)
or die ($query8);
$query9 = "CREATE TABLE `jbb_skins` (
`skinID` int(11) NOT NULL auto_increment,
`skinName` varchar(50) NOT NULL default '',
`dir` text NOT NULL,
`hideSkin` enum('true','false') NOT NULL default 'true',
`default` enum('true','false') NOT NULL default 'true',
PRIMARY KEY (`skinID`)
) TYPE=MyISAM AUTO_INCREMENT=1";
$result9 = mysql_query ($query9)
or die ($query9);
$query10 = "CREATE TABLE `jbb_topics` (
`topicID` int(11) NOT NULL auto_increment,
`forumID` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
`postTime` datetime NOT NULL default '0000-00-00 00:00:00',
`lastPostTime` datetime NOT NULL default '0000-00-00 00:00:00',
`lastPostUserID` int(11) NOT NULL default '0',
`subject` text NOT NULL,
`description` text NOT NULL,
`firstPost` longtext NOT NULL,
`sticky` enum('true','false') NOT NULL default 'false',
`locked` enum('true','false') NOT NULL default 'false',
PRIMARY KEY (`topicID`)
) TYPE=MyISAM AUTO_INCREMENT=53";
$result10 = mysql_query ($query10)
or die ($query10);
$query11 = "CREATE TABLE `jbb_users` (
`userID` int(11) NOT NULL auto_increment,
`skinID` tinyint(4) NOT NULL default '0',
`groupID` tinyint(4) NOT NULL default '0',
`username` varchar(20) NOT NULL default '',
`password` varchar(16) NOT NULL default '',
`firstName` varchar(30) NOT NULL default '',
`lastName` varchar(30) NOT NULL default '',
`avatar` varchar(150) NOT NULL default '',
`sig` varchar(255) NOT NULL default '',
`title` varchar(50) NOT NULL default '',
`email` varchar(50) NOT NULL default '',
`hideEmail` enum('true','false') NOT NULL default 'true',
`aim` varchar(30) NOT NULL default '',
`msn` varchar(50) NOT NULL default '',
`yim` varchar(30) NOT NULL default '',
`intrests` text NOT NULL,
`siteURL` varchar(200) NOT NULL default '',
`location` varchar(100) NOT NULL default '',
`bio` text NOT NULL,
`lastVisit` datetime NOT NULL default '0000-00-00 00:00:00',
`registered` date NOT NULL default '0000-00-00',
PRIMARY KEY (`userID`)
) TYPE=MyISAM AUTO_INCREMENT=14";
$result11 = mysql_query ($query11)
or die ($query11);
$query12 = "CREATE TABLE `jbb_visitors` (
`visitorID` int(11) NOT NULL auto_increment,
`ip` varchar(16) NOT NULL default '',
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`visitorID`)
) TYPE=MyISAM AUTO_INCREMENT=1";
$result12 = mysql_query ($query12)
or die ($query12);
$query14 = "INSERT INTO jbb_users (username, password, email, groupID) VALUES ('$username','$password','$email','1')";
mysql_query ($query14)
or die ($query14);
echo "<CENTER><TABLE WIDTH=\"75%\">
<TR>
<TD HEIGHT=\"40\" BACKGROUND=\"images/top_strip.gif\"><FONT FACE=\"verdana\" SIZE=\"+2\" COLSPAN=\"2\">JBB MYSQL Installation</FONT></TD>
</TR>
<TR>
<TD HEIGHT=\"30\">
</TD>
</TR>
<TR>
<TD ALIGN=\"center\"><b><FONT FACE=\"verdana\"><b>Thank you! JBB has successfully been installed in your MYSQL Database. You are being redirected now.<BR>
<A HREF=\"finish_install.php\">(Or click here if you do not wish to wait.)</a></TD></TR>
</TABLE>";
?>
<HTML>
<HEAD>
<META HTTP-EQUIV=\"refresh\" CONTENT=\"2;URL=finish_install.php\">
</HEAD>
</HTML>

Some files were not shown because too many files have changed in this diff Show More