Jump to content
MakeWebGames

Referral Program


Samurai Legend

Recommended Posts

Run these SQLs to phpMyAdmin -

 

You're unable to view this code.

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

 

Open up register.php and find the stock McCodes referral code and replace it with -

 

You're unable to view this code.

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

 

 

 

Create a new file called referral.php and add the following code below -

 

You're unable to view this code.

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

 

 

Add this into cron_hour.php -

 

You're unable to view this code.

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

 

 

 

[ATTACH=CONFIG]n280863[/ATTACH] [ATTACH=CONFIG]n280864[/ATTACH]

Feedback will be good and thanks

49124925_ScreenShot2015-10-23at15_10_49.png.8686b65ba2b12c196cd76fe3deb481b1.png

788902938_ScreenShot2015-10-23at15_14_55.png.48e497d2bb0bfe5a3e78f522546801c6.png

Link to comment
Share on other sites

> Do you have Skype, MSN Messenger, Yahoo Messenger or any other instant messenger?

Sorry buddy, this sweet girl died.

KvMqsBj.png

My condolences.

Note: Remember to either exclude the coins credit from cron_hour.php or create that column in your users table!

Edited by ~Rob0t
Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...
  • 2 weeks later...
  • 2 years later...

Looks like he's trying to '' instead of integer. First value should be # ??

1 minute ago, Sim said:

Looks like he's trying to '' instead of integer. First value should be # ??

'' should actually just be removed after looking at structure

Link to comment
Share on other sites

This is the table:

CREATE TABLE IF NOT EXISTS `referrals` (
 `refID` int(11) NOT NULL AUTO_INCREMENT,
 `refREFER` int(11) NOT NULL DEFAULT '0',
 `refREFED` int(11) NOT NULL DEFAULT '0',
 `refTIME` int(11) NOT NULL DEFAULT '0',
 `refREFERIP` varchar(15) NOT NULL DEFAULT '127.0.0.1',
 `refREFEDIP` varchar(15) NOT NULL DEFAULT '127.0.0.1',
 `refBONUS` int(11) NOT NULL DEFAULT '0',
 PRIMARY KEY (`refID`)

This is the query:

INSERT INTO referrals VALUES('', 1, 48, unix_timestamp(),'31.22.201.70','141.94.1.96') 

The table has 7 columns. The query is only inserting 6.

I don't think the single quotes are affecting anything or that the first field needs to be NULL since it's an auto-incrementing number. 

 

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.

×
×
  • Create New...