Jump to content
MakeWebGames

[mccode] validation mod


sfekt`
 Share

Recommended Posts

In lots of games without validations, many users will have bots training and doing crimes for them, so I have coded a validation mod.

Step 1 - MySQL Fields:

In the users table, create the following fields:

valtries (int) 11

validation (int) 11

NOTE: Remember to add these 2 fields to the register.php when inserting new users.

Step 2 - The Files:

validate.php

-------------

You're unable to view this code.

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

 

img.php

--------

You're unable to view this code.

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

 

Step 3 - Editing Cron Jobs:

Locate "cron_hp.php" and add the following line:

You're unable to view this code.

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

 

Step 4 - Redirecting to validate.php:

In the files you like the users to validate before using (ie: gym.php, docrime.php), locate the line "$lv=date('F j, Y, g:i a',$ir['laston']);" and directly underneath, paste this:

You're unable to view this code.

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

 

Any bugs/suggestions? Post it here.

Link to comment
Share on other sites

validation mod

thankyou so much for posting one of these,

got a few questions though

1: how often does the cron need to be updated, i ask cos i haven't got a cron file called that,

2when i succesfuly enter the correct number, it says

 

You're unable to view this code.

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

 

and then it just stays on that page, how can this be fixed?

Link to comment
Share on other sites

validation mod

 

thankyou so much for posting one of these,

got a few questions though

1: how often does the cron need to be updated, i ask cos i haven't got a cron file called that,

2when i succesfuly enter the correct number, it says

 

You're unable to view this code.

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

 

and then it just stays on that page, how can this be fixed?

Because on the pages you display it on, have it refresh to validate.php?p=gym or validate.php?p=docrime and it'll forward you back to the docrime.php or gym.php after it's done.

Link to comment
Share on other sites

  • 3 weeks later...

validation mod

Have a look at this:

http://uk2.php.net/gd

(hopefully that is the problem - if not then I have no idea why it wont work)

Anyone using that WAMP server seen on other posts can simply edit the following in the php.ini file:

Find

You're unable to view this code.

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

 

remove the ; as seen below:

 

You're unable to view this code.

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

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
  • 2 months later...

Re: [mccode] validation mod

I get the error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\wamp\www\monocountry\validate.php on line 62

 

You're unable to view this code.

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

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...