Welcome to the Browser-Base Game Zone forums!
You could always create a hacking game like Cypher. I wouldn't mind running something like that. I am just playing it now. It is slightly confusing but very well setup
function db_getone($sql) { global $db_q; $db_q['queries']++; $r = mysql_fetch_array(mysql_query($sql)); return($r[0]);}
$check_email = db_getone("SELECT COUNT(*) FROM accounts WHERE email='$email'"); $check_username = db_getone("SELECT COUNT(*) FROM accounts WHERE username='$username'"); if( ($check_email > 0) || ($check_username > 0) ){ $err.="Please fix the following errors: <br />"; if( $check_email <> 0 ){ $err.="Your email address has already been used by another member. Please submit a different Email address!<br />"; } if( $check_username <> 0 ){ $err.="The username you have selected has already been used by another member. Please choose a different Username!<br />"; } }
Root Dir main includes admin images
Nice tips codestryke What is going to go in the 'main' folder then?Wouldn't most of the main game files be in the root folder anyways?
I don't worry too much about the sub-directories. What I do is create a table in the database called system and place some options in there for site control. Usually something like, allow_logins, allow_signup, etc. That way I can control signups and the opening and closing of the site from the admin panel, and then its a simple query during login to check options.
Here it is community project major update * Switched to ADODB* Added page header/footer* Secured create/login pages* Moved all account actions to account.lib.php* Defined directory structureThe database I changed the date columns you had to datetime stamps, using a varchar for date/times will NOT sort properly. Added unique index to user name and added a index to status.The archive is a bit big because I included the whole ADODB library, you only really need to have 4 files out of this lib though...Use it or don't, it's a good solid start for any new project Enjoy http://www.extremecast.com/game_002.zip