Re: [Mccodes v2] DatatBase quiestion
You can do that, or you can create another database with the same data and use MC Craps' change_database() function :P
Re: mccodes v2 help
$rows = $db->fetch_single($db->query("SELECT COUNT(userid) FROM users"));
if($rows >= 20)
{
echo "Registration is closed until the game is brought out of beta";
exit;
}
Re: .htaccess or php help needed
Don't you mean
if(!defined('Something')) die('Get out here!');
No.
Haunted Dawg's method is correct.
So yes, you do mean that..
Re: Spam filter New-
Perhaps "flagging" the message?
Insert the flagged message into a new table (for example; `flagged_mail`), create a log for it, and Bob's your crocodile! (Seen that Rowntree's advert too much...)
Re: help:(
lol you need to rename the index2.php to just index.php but make sure the game is installed and then you have to secure your site lol mccodes original has over 70 exploites and bugs
Yeah, that's just the forums.php alone!
Re: bbcode problem
You haven't globally defined the $bbc variable..
Find
function gang_view()
{
global $db,$ir,$c,$h,$gangdata;
and change to
function gang_view()
{
global $db, $ir, $c, $h, $gangdata, $bbc;
Re: Free secure forums?
I already have, though it is using my custom functions, so I won't be releasing it.
They can be seen on Criminal Generation and Deadly Country
Re: help:(
You posted 2 topics, saying the exact same thing -.-
Have you edited viewuser.php? If not, check the users table in the database. There may have been an exploit/hack - I'm guessing so anyway, based on what I see from your language (I haven't even looked at your game) - check the ID's..
Re: Item market error
The v2 itemmarket.php is fairly well known for having a function named item_remove() in there..
Simply find both instances of it (in the switch() and the actual function itself (both found in imtemmarket.php)) and change to remove_item() - it's as simple as that.
Re: .htaccess or php help needed
A slight edit to OperationJarhead's method..
if($_SERVER['PHP_SELF'] == __FILE__) { exit; }
You could also rename the included files to filename.inc.php then add the following code into an .htaccess file.
<Files ~ "\.inc.php$">
Order Allow,Deny
Deny from All
</Files>