Jump to content
MakeWebGames

Recommended Posts

Posted

i know this has most probably been made before but i just made myself one.

first of all... add the sql...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

right then next... open up jail.php and find...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

or whatever yours is...

replace it with...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

after that find...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace with...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

after that find...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace with...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

once you have done the jail part... time to add the file.

call it -- bust.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

change the energy taken thing to whatever you want.

my games max energy is 10, so i put the jail busting as taking away 1 (10%).

right then finally! the perferences.php bit... find...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

under it put...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

then find...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

put under it...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

then add this on top of $h->endpage( );

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

hope you like it :)

if you get any errors (some might) tell me/us. or change...

echo ' into echo " or print "

and

'; into ";

and see if that fixes your problem.

EDITED SECTION!

in header.php find

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

under it put...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Well I don't like it, However I'll be nice and give you some suggestions

 

  • Remove all die(""); - Make it show endpage function then exit; ;)
  • Format the {$ir['username']}
  • Instead off using "\${$ir['rescue']}" Use money_formatter
  • Change some off those queries, Make them all one ;)

It could be made much more better :)

Posted
And there still are a few {$ir['username']} left open ;)
What exactly do you think is the issue?

change

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

into

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

maybe?

Posted
And there still are a few {$ir['username']} left open ;)
What exactly do you think is the issue?

change

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

into

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

maybe?

Most people don't filter it in preferences so xss can be used..

Posted
is the script fine? on how ive coded it?

Although i dont need this +1 for wanting something different and writing it yourself.

 

 

wrx

Posted
most people do filter on register and preferences (who have more than one brain cell) so if you filter the output and input your doubling the load time?

Quite a few new comer's wont even know how so to be honest it's easier to filter it

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...