64.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

07-25-2012, 11:26 AM
Post: #1
[GET] Viral Referral Script
What does it do?
This PHP script will make a dynamic referral URL; when the user shares the URL to other people then it will at a referral (once they hit the link); after [10] hits (One is from the main user) it will unlock a [link] as a reward.

Features
-Bound to IP (they cannot get more hits by using another browser
-Easy to use
-Customizable
-And the best of all; I give it FREE, EXCLUSIVE for BHW.

Updated to V2
Changes:
-Is now bound to IP

Download:

Magic Button :
Code:
http://www.mediafire.com/?04geaxvszpvz78z

Installation:
- Create a database in cpanel and then go to phpmyadmin and under SQL (Don't forget to select your database) in your database past the following code:

CREATE TABLE IF NOT EXISTS `cookie_ref` (
`REF_id` bigint(254) NOT NULL AUTO_INCREMENT,
`REF_val` varchar(254) NOT NULL,
`REF_hits` int(1) NOT NULL,
PRIMARY KEY (`REF_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
-Then add the following code:

CREATE TABLE IF NOT EXISTS `cookie_ref_ips` ( `IP_id` bigint(20) NOT NULL AUTO_INCREMENT,
`IP_address` varchar(20) NOT NULL,
`REF_val` varchar(50) NOT NULL,
PRIMARY KEY (`IP_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT
- Edit config.php - Located in /dbcon/ - and fill in your created DBuser,Pass,DBname
- Change the 'yoururl.com' to your website in the index.php file
- Then you can extract the script from the index.php file, and integrate it in your own page.

OPTIMAL:
If you want the page to automatically refresh, then add the following code at the START of your index.php (before ANYTHING else)
PHP Code:
<?php
    header
("Refresh: 120;");
    
?>
You can change the refresh time, it is set as 2 minutes in the example.




81.gif