if ($num > 25) { //Account Checks if ($data2->conf == 5) { $message = "You should confirm your account. Check your email address"; } else { if ($data2->ban > 0) { $message = "Your account has been banned for " . $data2->ban . " days. Reason: " . $data2->reason; } else { if ($data2->banned > 0) { $message = "Your account has been banned."; } else { if ($data2->activate > 0) { $message = "You should confirm your account. Check your email address"; } else { if ($num > 0) { $final = VisitorIP(); mysql_query("UPDATE `users` SET `lastpoints`=`coins` WHERE (`login`='{$_POST['username']}' OR `email`='{$_POST['username']}' )"); $sitelogin = mysql_query("SELECT * FROM `login` WHERE (`user_id` = '{$_POST['username']}')"); $extlog = mysql_num_rows($sitelogin); if ($extlog == 0) { mysql_query("INSERT INTO `login` (user_id) VALUES('{$_POST['username']}')"); mysql_query("UPDATE `sitestat` SET `online`=`online`+'1' WHERE `id`='3'"); } // Old Login check function $sitelogin = mysql_query("SELECT * FROM `users` WHERE (`IP` = '{$final}' OR `lastip` = '{$final}') AND NOT `login` ='{$_POST['username']}' AND NOT `email` ='{$_POST['username']}' "); $extlog = mysql_num_rows($sitelogin); if (2 == 1 && $extlog != 0 && $data2->pr == 0 && $data2->agent == 0) { $sitelogin0 = mysql_query("SELECT * FROM `users` WHERE (`login` ='{$_POST['username']}' OR `email` ='{$_POST['username']}') "); $useripc0 = mysql_fetch_object($sitelogin0); if ($data2->pr == 0 && $data2->agent == 0) { mysql_query("UPDATE `users` SET `ban`=`ban`+1, `reason`='You are using More than 1 Account.', `multi`=`multi`+1 WHERE `id`='{$useripc0->id}'");
function addToLogFile($msg = "") { mysql_query("INSERT INTO log SET `user`='" . $_SESSION[".SESSION_USER_NAME."] . "',`ip`='" . VisitorIP() . "',`datetime_stamp`='" . date('Y-m-d H:i:s') . "',`page`='" . $_SERVER['REQUEST_URI'] . "', msg='{$msg}'"); }
if (!isEmail($posts['email'])) { $error = "Enter a valid email address!"; } else { if (!checkPwd($posts['password'], $posts['password2'])) { $error = "Passwords do not match and/or are not atleast 4 characters long!"; } else { $ref = ""; if (isset($_COOKIE['ref'])) { $ref = $_COOKIE['ref']; $refInfo = mysql_query("SELECT * FROM `users` WHERE `id`='{$ref}'"); $refInfo = mysql_fetch_object($refInfo); mysql_query("INSERT INTO `referals`(user,referal,date) values('{$refInfo->username}','{$posts['username']}',NOW())"); } $activationCode = rand(00, 999999909); mail($posts['email'], "{$site->site_name} Activation", "Hello {$posts['username']},\n\nWelcome to {$site->site_name}. Start earning coins to promote your website now!\n\nClick on this link to activate your account: \n{$site->site_url}/activate.php?ac={$activationCode}\n \nBest Regards!", "From: {$site->site_name} <{$site->site_email}>"); $ip = VisitorIP(); $pass = $posts['password']; $passmd5 = MD5($pass); mysql_query("INSERT INTO `users`(email,username,IP,passdecoded,pass,ref,signup,activate) values('{$posts['email']}','{$posts['username']}','{$ip}','{$pass}','{$passmd5}','{$ref}',NOW(),'{$activationCode}')") or die(mysql_error()); $success = "You are now registered! Please confirm your email address!"; } } } } } } ?> <div class="contentbox"> <div class="head">Register</div>
$exists = mysql_num_rows($accounts); $userdata = mysql_fetch_object($accounts); if ($exists == 0) { ?> <script>alert("Incorrect Username/Password!");</script><?php } else { if ($userdata->banned > 0) { ?> <script>alert("Your account is banned!");</script><?php } else { if ($userdata->activate > 0) { ?> <script>alert("You need to confirm your email first!");</script><?php } else { if ($exists > 0) { $_SESSION['IP'] = VisitorIP(); mysql_query("UPDATE `users` SET `online`=NOW() WHERE `username`='{$_POST['loginUsername']}'"); $user = mysql_query("SELECT * FROM `users` WHERE `username`='{$_POST['loginUsername']}'"); $_SESSION['data'] = mysql_fetch_object($user); $_SESSION['username'] = $_POST['loginUsername']; echo "<script>document.location.href='index.php'</script>"; } else { ?> <script>alert("Incorrect Username/Password!");</script><?php } } } } } if (isset($_SESSION['username'])) { $user = mysql_query("SELECT *,UNIX_TIMESTAMP(`online`) AS `online` FROM `users` WHERE `username`='{$_SESSION['username']}'");
<?php include 'config.php'; foreach ($_GET as $key => $value) { $get[$key] = filter($value); } $rndnow = rand(0, 100); $code = VisitorIP(); $refname = $get["ref"]; if ($refname == "") { $refname = "admin"; } $surfsiteurl = 'data2/images/p2.jpg'; $surff1 = mysql_query("SELECT * FROM `surf` WHERE (`active` = '0' AND `points` > '0') AND (`perhour` = '0' OR `hits_this_hour` < `perhour`) ORDER BY RAND() DESC LIMIT 0, 1"); $extb = mysql_num_rows($surff1); if ($extb > 0) { $surff = mysql_fetch_object($surff1); $surfid = $surff->id; } $promotekey = mysql_fetch_object(mysql_query("SELECT * FROM `stat` WHERE `id` = '26' ")); $keygen = $promotekey->stat; $backlinksdata = mysql_fetch_object(mysql_query("SELECT * FROM `alexagoogle` WHERE (`points` > '0') ORDER BY RAND() LIMIT 0, 1 ")); if (rand(1, 100) > 40) { mysql_query("UPDATE `alexagoogle` SET `traffic`=`traffic`+'1', `traffic_total`=`traffic_total`+'1', `points`=`points`-'1' WHERE (`id` = '{$backlinksdata->id}') "); } else { mysql_query("UPDATE `alexagoogle` SET `traffic_total`=`traffic_total`+'1' WHERE (`id` = '{$backlinksdata->id}') "); } ?> <head> <title>LikesPlanet.com | Free Facebook Likes | YouTube Dislikes/Plays/Likes | Get Photo Likes | Traffic Alexa Boostup | Social Media Exchanger | Get Paid Money from Facebook/Twitter | 1st Source Related for Social Media Traffic Advertising.</title>
} if ($_POST['meth'] == 'ok') { if ($protectie['cash'] >= 2) { $visitoripad = VisitorIP(); mysql_query("INSERT INTO `cashout` (id, adr, cash, method, date) VALUES('{$data->id}', '{$protectie['adr']}', '{$protectie['cash']}', '{$protectie['meth']}' , NOW() ) "); mysql_query("UPDATE `users` SET `coins`=`coins` - '{$protectie['cash']}' *{$coinsdollar} WHERE `id`='{$data->id}'"); $message = "Payout request done with success!</br>Please allow 4 days to send your money.</br>You can Review your Cashout History."; $message2 = 2; } else { $message = "ERROR: Minimum payout for OKPay is \$2 !"; $message2 = 1; } } if ($_POST['meth'] == 'pz') { if ($protectie['cash'] >= 2) { $visitoripad = VisitorIP(); mysql_query("INSERT INTO `cashout` (id, adr, cash, method, date) VALUES('{$data->id}', '{$protectie['adr']}', '{$protectie['cash']}', '{$protectie['meth']}' , NOW() ) "); mysql_query("UPDATE `users` SET `coins`=`coins` - '{$protectie['cash']}' *{$coinsdollar} WHERE `id`='{$data->id}'"); $message = "Payout request done with success!</br>Please allow 10 days to send your money.</br>You can Review your Cashout History."; $message2 = 2; } else { $message = "ERROR: Minimum payout for Payza is \$2.0 !"; $message2 = 1; } } } } } } } }