<?php
session_start();
require_once("inc/funcs.php");
$ip = $_SERVER['REMOTE_ADDR'];
if(get_user($ip) == false){
add_user($db,$ip, $_GET['ref']);
$_SESSION['ip'] = $ip;
}
$user = mysql_fetch_object(mysql_query("SELECT * FROM `$db`.`users` WHERE `ip`='". $ip ."'"));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><script>
$(document).ready(function(){
$().socialTrafficPop({
timeout: 15,
title: "Viral Refer 2.0 - Demo",
message: 'Share our website with your friends using the buttons below!',
google_url: "http://www.ebookwebproject.com/viralrefer/",
fb_url: "http://www.ebookwebproject.com/viralrefer/",
closeable: false,
advancedClose: false,
opacity: '0.45',
twitter_method: "tweet",
tweet_url: 'http://www.ebookwebproject.com/viralrefer/index.php?ref=1',
tweet_text: 'Viral Refer 2.0 - Share your referral link with your friends and win amazing rewards!'
});
});
</script>
<meta charset="UTF-8">
<title>Viral Refer 2.0 - Demo</title>
<link rel="icon" type="image/x-icon" href="http://www.ebookwebproject.com/viralrefer/images/favicon.ico" />
<link rel="stylesheet" href="fonts/TitilliumText/stylesheet.css" />
<meta name="Description" content="Share your Link with your friends and unlock your Gift" />
<meta property=og:title content="Get a Free Gifts Now!" />
<meta property=og:type content=website />
<meta property=og:description content="Win free gifts now, try it now. Powered by ViralRefer.com" />
<meta property=og:image content="http://i.imgur.com/rLBu0wP.png" />
<link rel="stylesheet" href="css/style.css" />
<meta name="keywords" content="survey, online, referral, rewards, win, prize, gift, card, games">
<link href="social-traffic-pop.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
<script src="jquery.stp.min.js" type="text/javascript"></script>
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "6c98ad43-5976-445e-baf4-532cc9d13687", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
<link type="text/css" href="foobar/jquery.foobar.2.1.css" rel="Stylesheet" />
<style type="text/css">
#social_target { margin-left:20px; }
ul.socialbuttons { height: 32px; padding: 0 !important; margin:0 !important; }
ul.socialbuttons li { padding:6px !important; float: left; list-style: none !important; }
</style>
<script type="text/javascript" src="scripts/jquery-1.7.1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
function copyToClipboard(element) {
var $temp = $("<input>");
$("body").append($temp);
$temp.val($(element).text()).select();
document.execCommand("copy");
$temp.remove();
}
</script>
<script>
function myFunction() {
alert("Your Referral Link was copied to clipboard!\n#Tip: Share your Refferal Link in your Facebook, Twitter.. To get EXTRA Points!!");
}
</script>
</head>
<body>
<div class="right">
<div class="menudrop">
<h3><a href="#"><img src="images/arrow.png" alt="menu"></a></h3>
<ul>
<li><a href="#containersocial">**FREE POINTS**</a></li>
<li><a href="privacy.php">Privacy Policy</a></li>
<li><a href="tos.php">Terms</a></li>
</ul>
</div>
</div>
<center><h1 id="title"><a href="index.php"><span style="color:#069">«</span>Viral Refer 2.0<span style="color:#069">»</span></a><br />
<span style="font-weight: 300; font-size: 14px; color: #27C1F4;">Share your Link and unlock your Rewards !</span></h1></center>
<br class="clear" />
<div id="container">
<div id="ref_container">
<div style="float: left">
<div class="dropbutton" style=" height: 40px;">
<div class="black" style=" border-radius: 4px 0 0 4px;height: 32px;">
<img style="margin-top: 1px;" src="http://i.imgur.com/dKP6K52.png" width="25px" height="25px" title="Your Points">
</div>
<div class="black" style=" height: 40px; border-radius: 0 4px 4px 0;">
<a style="cursor: pointer; color: rgb(165, 204, 0);font-size: 23px!important;line-height: 42px!important;"><b><font size="6"><?php echo $user->referrals;?></font></b> Points</a>
</div>
<a href="javascript:history.go(0)"><img style="position: absolute; right: -30px;top: 10px;" src="http://i.imgur.com/e8L99Pn.png" width="25px" height="25px"></a>
</div>
</div>
<p><font size="4">Your Referral Link:</font> <input title="copy & paste" readonly="readonly" type="text" value="<?php echo $site_url; ?>?ref=<?php echo $user->id;?>" /> <a href="#copy"><img style="position: absolute; right: 5px;top: 5px;" onclick="copyToClipboard('#p1'); myFunction();" src="http://i.imgur.com/krE6Lmt.gif"></a></p>
<p style="display: none;" id="p1"><?php echo $site_url; ?>?ref=<?php echo $user->id;?></p>
</div>
</div>
<div id="container">
<h2>Welcome To Viral Refer 2.0 ** DEMO VERSION **</h2>
<p class="left_15">Share your unique <b>REFERRAL LINK</b> with your friends and you will receive <b>1 POINT FOR EACH VISITOR</b>. Yes, it's that simple!</br>
<br>::::::<b>Get this Script here with <b><u>SPECIAL DISCOUNT<b></u>: <font size="5" color="#F5F507"><a href="http://viralrefer.com">VIRALREFER.COM</a></font>:::::</br>
</div>
<div id="container">
<div class="drop_top">
<?php
for($i = 1; $i <= 50; $i++){
if((list($id,$thumb,$name,$desc,$prize,$cost) = get_prize($i)) == true){
echo "<div class=\"grid_1\" id=\"drop-rewards\"><div class=\"reward_image\"><h5>$cost pts</h5><img src=\"$thumb\" width=\"180\" height=\"180\"></div><div class=\"reward_text\"><p style=\"float: left\">$name</p></div>";
if($user->referrals >= $cost){
echo '
<div class="dropbutton">
<div class="black">
<img src="images/unlock.png">
</div>
<div class="black">
<a style="color: #cf9" href="verify.php?prizeid=' . $id . '">Redeem</a>
</div>
</div>';
}else{
echo '
<div class="dropbutton">
<div class="black">
<img src="images/lock.png" title="not enough points">
</div>
<div class="black">
<a title="not enough points" style="cursor: pointer; color: #ff5555">Locked</a>
</div>
</div>';
}
echo '</div>';
}
}
?>
</div>
<br class="clear" />
</div>
<div id="containersocial">
<h2>#TIPS: GET FREE EXTRA POINTS</h2>
<center>EARN <u>EXTRA POINTS</u> BY SHARE ON SOCIAL NETWORKS, <b>1 POINT FOR EACH SHARE!</b> </br></br>
<span class='st_facebook_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Facebook'></span>
<span class='st_twitter_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Tweet'></span>
<span class='st_linkedin_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='LinkedIn'></span>
<span class='st_tumblr_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Tumblr'></span>
<span class='st_reddit_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Reddit'></span>
<span class='st_orkut_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Orkut'></span>
<span class='st_netlog_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Netlog'></span>
<span class='st_myspace_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='MySpace'></span>
<span class='st_livejournal_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='LiveJournal'></span>
<span class='st_instapaper_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Instapaper'></span>
<span class='st_google_bmarks_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Bookmarks'></span>
<span class='st_pinterest_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Pinterest'></span>
<span class='st_google_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Google'></span>
<span class='st_formspring_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Formspring'></span>
<span class='st_email_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Email'></span>
<span class='st_digg_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Digg'></span>
<span class='st_delicious_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Delicious'></span>
<span class='st_diigo_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Diigo'></span>
<span class='st_blogger_large' st_url='<?php echo $site_url; ?>?ref=<?php echo $user->id;?>' displayText='Blogger'></span></center>
</div>
<!--FOOTER-->
<div id="container">
<a href="index.php">HOME</a> | <a href="privacy.php">PRIVACY</a> | <a href="tos.php">TERMS</a>
<p style="float:right">© 2015 | Powered by <a href="http://www.viralrefer.com">VIRALREFER.COM</a></p>
</div>
<!--FOOTER-->
</body>
</html>