"; echo ""; echo ""; echo "
"; echo "
"; //echo "

IPGeek21's Board

"; echo ""; //echo ""; //echo ""; //echo ""; echo "
"; echo "
"; echo ""; echo ""; echo ""; echo ""; #echo ""; echo "
HOMEBOARDSREGISTERABOUTADMIN PAGE
"; echo "
"; echo ""; echo ""; //######################################## // REGISTRATION //######################################## if ($regrequired == "Yes" && $show == "reg") { echo "
"; echo "
"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Name
Password
Email
 
"; echo "
"; } elseif ($regrequired == "No" && $show == "reg") { echo "

Registration is not required at this time

"; } if ($show == "registerme") { if ($name != "" && $passwd != "" && $email != "") { mysql_connect ($dbhost, $username, $password); mysql_select_db ($userdatabase); $result = mysql_query("select count(name) as Total from users where name='$name'"); $row = mysql_fetch_array($result); if ($row["Total"]!="0") { $validate = $name; } $result = mysql_query("select now()"); if ($row = mysql_fetch_array($result)) { $date = $row[0]; } if ($validate != "$name") { mysql_query ("insert into users values (0,'$date','$name','$passwd','$email', '$REMOTE_ADDR', '$HTTP_USER_AGENT');"); echo "
You have been added
"; } if ($validate == "$name") { echo "

The username has been taken

Back To Registration

"; } } else { echo "

You need to fill in all the fields.

Back To Registration

"; } } //################################################## //END REG //################################################## //################################################## //SHOW ALL OF THE DISCUSSION GROUPS AVAILABLE //################################################## if ($show == "") { echo "
"; echo "
"; echo ""; echo "
"; echo " "; echo "
"; echo ""; echo ""; echo "
"; echo "Discussion Boards"; echo "PostsNew
"; echo "
"; echo ""; echo "
"; mysql_connect ($dbhost, $username, $password); mysql_select_db ($database); $result = mysql_query ("SHOW TABLES;"); while($value = mysql_fetch_array($result)) { for($i=0; $i< mysql_num_fields($result); $i++ ) { echo ""; echo "
"; echo " "; echo ""; echo "
"; print "$value[$i]"; echo ""; //##################################### // COUNT THE NUMBER OF POSTS //##################################### $result2 = mysql_query ("select count(*) from $value[$i];"); while($value2 = mysql_fetch_array($result2)) { for($i=0; $i< mysql_num_fields($result2); $i++ ) { echo "$value2[$i]"; //##################################### // COUNT NEW MSGS //##################################### $result2 = mysql_query ("select count(*) from $value[$i] where date >= $lstvst;"); while($value2 = mysql_fetch_array($result2)) { for($i=0; $i< mysql_num_fields($result2); $i++ ) { if ($value2[$i] == "0") { echo "$value2[$i]"; } else { echo "$value2[$i]"; } } } //##################################### // END COUNT NEW MSGS //##################################### } } //##################################### //END COUNT NUMBER OF POSTS //##################################### echo "
"; echo "
"; } } mysql_free_result($result); mysql_close(); echo "
"; } //################################################## //END SHOW DISSCUSION GROUPS AVALABLE //################################################## //################################################## //SHOW MESSAGE TITLES //################################################## if ($show == "1") { echo "
"; echo "
"; echo ""; if ($expand == "1") { echo ""; echo ""; echo ""; } else { echo ""; echo ""; if ($showall == "1") { echo ""; } else { echo ""; } echo ""; echo ""; } echo "
"; echo "$group"; echo "POSTREPLY"; echo ""; echo "$group"; echo "POSTShow 30Show AllRepliesNew
"; mysql_connect ($dbhost, $username, $password); mysql_select_db ($database); if ($expand == "1") { $result = mysql_query ("SELECT * FROM $group where id=$id or reply=$id order by id"); } else { if ($showall == "1") { $result = mysql_query ("SELECT * FROM $group where reply=0 order by id desc"); } else { $result = mysql_query ("SELECT * FROM $group where reply=0 order by id desc LIMIT 30"); } } if ($row = mysql_fetch_array($result)) { echo ""; do { echo "
"; $id = $row["id"]; $name = $row["name"]; $email = $row["email"]; $icon = $row["icon"]; $msg = $row["msg"]; $reply = $row["reply"]; $title = $row["title"]; $y = $row["date"][0]; $e = $row["date"][1]; $a = $row["date"][2]; $r = $row["date"][3]; $m = $row["date"][4]; $o = $row["date"][5]; $d = $row["date"][6]; $ay = $row["date"][7]; $h = $row["date"][8]; $our = $row["date"][9]; $mi = $row["date"][10]; $n = $row["date"][11]; echo ""; $result2 = mysql_query ("select count(*) from $group where reply=$id;"); while($value2 = mysql_fetch_array($result2)) { for($i=0; $i< mysql_num_fields($result2); $i++ ) { echo "
"; echo "   "; echo "   "; if ($expand == "1") { print "$title"; echo ""; print "By: $name   On $m$o-$d$ay-$y$e$a$r $h$our:$mi$n"; if ($reply == 0) { echo " Original Msg."; } } else { print "$title"; echo ""; print "By: $name  On $m$o-$d$ay-$y$e$a$r $h$our:$mi$n
$value2[$i]
"; //################################################ // COUNT NEW REPLY AND POST //################################################ $result2 = mysql_query ("select count(date) from $group where reply=$id and date >= $lstvst or id=$id and date >= $lstvst;"); while($value2 = mysql_fetch_array($result2)) { for($i=0; $i< mysql_num_fields($result2); $i++ ) { if ($value2[$i] == "0") { echo "
$value2[$i]"; } else { echo "$value2[$i]"; } } } //############################################### // END COUNT NEW REPLY AND POST //############################################### } } } echo "
"; if ($expand == "1") { echo "
"; echo "$msg
"; } } while($row = mysql_fetch_array($result)); } else {print "

Sorry, No Records Were Found Right Now!

"; } echo "
"; echo "
"; } //################################################### //END SHOW MESSAGE TITLES //################################################### //################################################### //POST MESSAGE FORM //################################################### if ($post == "new") { echo "
"; echo "
"; echo ""; echo ""; echo "
BACK
"; echo "
"; echo ""; echo ""; //echo ""; if ($passwordset == "" && $regrequired == "Yes") { echo ""; } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Name
E-mail
Password
Title
Message"; echo "
Choose an icon below    WMFCode Key.
 "; include ("icons.html"); echo "
 
"; echo "
"; } //################################################## //END POST MESSAGE FORM //################################################## //################################################### //REPLY MESSAGE FORM //################################################### if ($post == "reply") { if ($id != "") { mysql_connect ($dbhost, $username, $password); mysql_select_db ($database); $result2 = mysql_query ("select * from $disgroup where id=$id"); while($value2 = mysql_fetch_array($result2)) { for($i=0; $i< mysql_num_fields($result2); $i++ ) { $t = $value2[6]; } } echo "
"; echo "
"; echo ""; echo ""; echo "
BACK
"; echo "
"; echo ""; echo ""; //echo ""; if ($passwordset == "" && $regrequired == "Yes") { echo ""; } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Name
E-mail
Password
Title
Message
Choose an icon below"; echo "   WMFCode Key.
 "; include ("icons.html"); echo "
"; echo "
"; } else { echo "
"; echo ""; echo ""; echo "
BACK
"; echo "

You must select a message to reply to first
"; } } //################################################## //END REPLY MESSAGE FORM //################################################## //################################################## //POST MESSAGE TO MySQL //################################################## if ($show == "postit" && $regrequired == "Yes") { mysql_connect($dbhost, $username, $password); mysql_select_db($userdatabase); $result = mysql_query("select id, email from users where name='$name' and passwd='$passwd'"); $row = mysql_fetch_array($result); if ($row == NULL ) { echo ""; echo " "; echo "

WARNING:

USER/PASSWORD Failed!

Please Register Here

"; } else { require ("global.php"); $email = $row["email"]; $pat = "<.+>"; $repl = ""; $title2 = (ereg_replace($pat, $repl, $title)); $name2 = (ereg_replace($pat, $repl, $name)); $msg2 = htmlfilt($msg); $msg3 = nl2br($msg2); $title2 = addslashes( $title2 ); $name2 = addslashes( $name2 ); $msg2 = addslashes( $msg2 ); $msg3 = addslashes( $msg3 ); mysql_connect ($dbhost, $username, $password); mysql_select_db ($database); $result2 = mysql_query ("select now()"); while($value2 = mysql_fetch_array($result2)) { for($i=0; $i< mysql_num_fields($result2); $i++ ) { $now = "$value2[$i]"; } } mysql_query ("insert into $disgroup values ('','$name2', '$email', '$icon','$msg3','$reply','$title2','$now')"); mysql_query ("delete from $disgroup where name=\"\""); mysql_query ("delete from $disgroup where title=\"\""); //SHOW PREVIEW echo "
"; echo "
"; echo ""; echo "
   "; echo "$title2"; echo "Posted By: $name2
"; echo "
$msg3
"; echo "
"; echo ""; } } elseif ($show == "postit" && $regrequired == "No") { require ("global.php"); $pat = "<.+>"; $repl = ""; $title2 = (ereg_replace($pat, $repl, $title)); $name2 = (ereg_replace($pat, $repl, $name)); $msg2 = htmlfilt($msg); $msg3 = nl2br($msg2); $title2 = addslashes( $title2 ); $name2 = addslashes( $name2 ); $msg2 = addslashes( $msg2 ); $msg3 = addslashes( $msg3 ); mysql_connect ($dbhost, $username, $password); mysql_select_db ($database); $result2 = mysql_query ("select now()"); while($value2 = mysql_fetch_array($result2)) { for($i=0; $i< mysql_num_fields($result2); $i++ ) { $now = "$value2[$i]"; } } mysql_query ("insert into $disgroup values ('','$name2', '$email', '$icon','$msg3','$reply','$title2','$now')"); mysql_query ("delete from $disgroup where name=\"\""); mysql_query ("delete from $disgroup where title=\"\""); //SHOW PREVIEW echo "
"; echo "
"; echo ""; echo "
   "; echo "$title2"; echo "Posted By: $name2
"; echo "
$msg3
"; echo "
"; echo ""; } //################################################# //END POST MESSAGE TO MySQL //################################################# //################################################# //ABOUT //################################################# if ($show == "about") { echo "


"; echo "
"; echo "
"; echo "MyPHPBoard v.0.9
By Tim Geiges

"; echo "Homepage: wmf.eyep.net
"; echo "Email: tim@lvcm.com

"; echo "Team Random HQ
Webmaster: IPGeek21
"; echo "Homepage: www.ipgeek21.com
"; echo "Email: nuaj@ipgeek21.com";echo "
"; echo "
"; echo "
"; } //################################################# //END ABOUT //################################################# //################################################# // FOOTER //################################################# echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Featured ArticlesFeatured Pokey LeaguesTourney Information CtrPhoto GalleryLinks
"; echo "
"; echo "
"; //################################################ //END FOOTER //################################################ ?>