Browse Source

first commit

master
Jake Jarvis 3 years ago
commit
59d1ee3c22
Signed by: jake GPG Key ID: D36CB66F4002B25B
  1. 21
      admin/admin.php
  2. 38
      admin/agreement.php
  3. 21
      admin/agreement_submit.php
  4. 21
      admin/edit_forum_submit.php
  5. 81
      admin/error_log
  6. 22
      admin/forum_delete_submit.php
  7. 16
      admin/forumdelete.php
  8. 43
      admin/forumedit.php
  9. BIN
      admin/images/logobkgbig.gif
  10. 27
      admin/index.php
  11. 20
      admin/left.php
  12. 24
      admin/login.php
  13. 46
      admin/login_submit.php
  14. 6
      admin/main.php
  15. 121
      admin/manage.php
  16. 18
      admin/newcat.php
  17. 19
      admin/newcat_submit.php
  18. 49
      admin/newforum.php
  19. 18
      admin/newforum_submit.php
  20. 32
      admin/options.php
  21. 21
      admin/options_submit.php
  22. 81
      admin/usrgroups.php
  23. 78
      admin/usrmodify.php
  24. 171
      admin/usrops.php
  25. 22
      admin/usrops_submit.php
  26. 6
      conf.php
  27. 19
      delete_reply.php
  28. 18
      delete_reply_submit.php
  29. 145
      edit_reply.php
  30. 21
      edit_reply_submit.php
  31. 152
      edit_topic.php
  32. 20
      edit_topic_submit.php
  33. 110
      forumlist.php
  34. 482
      functions.php
  35. BIN
      images/aim.gif
  36. BIN
      images/avatars/noavatar.gif
  37. BIN
      images/buttons/admincp.gif
  38. BIN
      images/buttons/home.gif
  39. BIN
      images/buttons/members.gif
  40. BIN
      images/buttons/pming.gif
  41. BIN
      images/buttons/register.gif
  42. BIN
      images/buttons/user_options.gif
  43. BIN
      images/email.gif
  44. BIN
      images/emoticons/angry.gif
  45. BIN
      images/emoticons/bigsmile.gif
  46. BIN
      images/emoticons/blush.gif
  47. BIN
      images/emoticons/confused.gif
  48. BIN
      images/emoticons/cool.gif
  49. BIN
      images/emoticons/crying.gif
  50. BIN
      images/emoticons/frown.gif
  51. BIN
      images/emoticons/innocent.gif
  52. BIN
      images/emoticons/smile.gif
  53. BIN
      images/emoticons/surprised.gif
  54. BIN
      images/emoticons/tongue.gif
  55. BIN
      images/emoticons/whoa.gif
  56. BIN
      images/emoticons/wink.gif
  57. BIN
      images/forum.gif
  58. BIN
      images/logo.gif
  59. BIN
      images/logo.jpg
  60. BIN
      images/logo.psd
  61. BIN
      images/message.gif
  62. BIN
      images/msnm.gif
  63. BIN
      images/pm.gif
  64. BIN
      images/profile.gif
  65. BIN
      images/strip.jpg
  66. BIN
      images/www.gif
  67. BIN
      images/yim.gif
  68. 20
      includes/aggrement.tpl
  69. 225
      index.php
  70. 53
      login_submit.php
  71. 12
      logout.php
  72. 53
      members.php
  73. 9
      modules/calculator/calculation_add_result.php
  74. 9
      modules/calculator/calculation_divide_result.php
  75. 9
      modules/calculator/calculation_multiply_result.php
  76. 9
      modules/calculator/calculation_subtract_result.php
  77. 7
      modules/calculator/calculator_add.php
  78. 7
      modules/calculator/calculator_divide.php
  79. 7
      modules/calculator/calculator_multiply.php
  80. 7
      modules/calculator/calculator_subtract.php
  81. 135
      new_reply.php
  82. 27
      new_reply_submit.php
  83. 147
      new_topic.php
  84. 41
      new_topic_submit.php
  85. 124
      pm_view.php
  86. 65
      pmlist.php
  87. 106
      private.php
  88. 19
      private_submit.php
  89. 44
      register.php
  90. 20
      register_submit.php
  91. 15
      setup/finish_install.php
  92. BIN
      setup/images/finish.gif
  93. BIN
      setup/images/minor_strip.gif
  94. BIN
      setup/images/next.gif
  95. BIN
      setup/images/startinstall.gif
  96. BIN
      setup/images/top_strip.gif
  97. BIN
      setup/images/wizard.gif
  98. 14
      setup/index.php
  99. 22
      setup/sql_input.php
  100. 209
      setup/sql_submit.php

21
admin/admin.php

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

27
admin/index.php

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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\">
</