Sponsor

Showing posts with label import. Show all posts
Showing posts with label import. Show all posts

Saturday, October 4, 2014

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 scripts-cms.blogspot.com

Updated to V2Changes:
-Is now bound to IP

Updated to V3
Changes:
-Fixed a bug where the referral script would only regenerate 9 random ID's => Is not unlimited


Download Viral Referral Script

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=2 ;
- 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
header("Refresh: 120;");
?>
You can change the refresh time, it is set as 2 minutes in the example.

Then it should work!