1
mirror of https://github.com/jakejarvis/jbb.git synced 2025-10-21 15:04:24 -04:00

first commit

This commit is contained in:
2018-10-18 12:42:02 -04:00
commit 59d1ee3c22
105 changed files with 3773 additions and 0 deletions

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>