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>
Re: The Revamped Item Market, please help!
The Game Modifications is not the place to post help requests - I'm sure fbiss is growing tired of constantly moving your topics.
Please post them in the right section.
Re: Idea for a paid mod...will pay.
I believe it's do-able, and when you think about it, it doesn't seem that hard.
A few edits to register.php, gym.php, (possibly) docrime.php.
For health/energy, a simple edit to the cron_day.php.
That, and a slight users table alteration.
If I had the time, I'd do it for free - but I don't at the moment.
To anyone else wanting to do this, I've just given you one way of doing it - create it how you wish though :P
Re: Design mod
Mainly the header.php for ingame layout/design.
If you want to go more "in depth" about it, most of the files use tables, change them to what you wish.
Re: Effects mod with cron works with v2
Just one thing I would change to enable full functionality..
<?php
if($r['itmname'] == 'speed')
{
if($ir['speed'] > 0){ die("You are already on speed, you trying to have a heart attack?");}
$db->query("UPDATE users SET `speed`='16' WHERE userid={$ir['userid']}");
}
?>
becomes
<?php
if($r['itmname'] == 'speed')
{
if($ir['speed'])
{
$db->query("UPDATE users SET `speed`='16' WHERE userid={$ir['userid']}");
echo "You are already on speed, you trying to have a heart attack?";
$h->endpage();
exit;
}
?>
I can't be bothered recoding it to my standards, but meh.. xD
Re: Help !!URGENT!!
i am new.. i need to put secure code to every single script?
Well, that's one way of putting it.
Don't look around CE for "8 lines to secure your site", or things of that nature.
It takes a lot more than 8 lines for your entire site..
I've just spent around 7 hours recoding the v2 forums.php (and hated most of it, became very repetative), but now, it is secure (more secure than my previous recode version)..
Re: Viewing codes hack
The PayPal ToC state that you must be 18 before you can own a PayPal account - that doesn't stop people from signing up though does it..
Re: Help !!URGENT!!
If you want your game to be "fine", you will need to secure EVERY file..
Or, if you're like me and a bit of a code perfectionist, recode the entire lot! xD
Re: TwIsTeD WiShEs !
Granted, but then you forgot all server side languages.
I wish people would actually take the time to learn how to code instead of asking us .. "more experienced" WebDev'ers.