Refactor
:my
=>
'code'
Codes
Refactorings
Popular
Best
Submit
Spam
Account
Logout
Login
JavaScript doesn't seem to be activated, expect things to be ugly and sloppy!
Learn How to Create Your Own Programming Language
createyourproglang.com
Recent
Zynga Slingo Trainer v5.12
iTunes Gift Card Generator V3.1 2012
Diablo 3 GOLD Coins FREE
Working PS3 Jailbreak 3.65 And 3.66
ExtaBit Premium Accounts and Cookies
Steam Wallet Hack - Money Adder & Hack v3
Empires & Allies Hack Cheat Trainer v5.4.1
Eve Onnline 60 Days Time Card Generator v2
Xbox Lve Generator v3
Better way to get content via jQuery $.get()
Popular
XBOX POINTS GENERATOR - MICROSOFT POINTS GENERATOR v1.2012
11 may 2012 premium uploading accounts 100% working
Free Microsoft Points
Free Microsoft Points - Microsoft Points Generator - Xbox Live Codes 2012
Car Town Free Blue Points Hack
Free CarTown Blue Points Generator and CarTown Templates
Free Microsoft Points
Simple Days Purger
Sharecash Downloader Bypass Surveys New 05/2012
PAYPAL REMOVE ACCESS LIMITED ACCOUNT 100% Working
Pastable version of
php refactoring
<pre class='prettyprint' language='php'><?php $location = htmlspecialchars($_SERVER['HTTP_REFERER']); $email = strtolower(mysql_real_escape_string($_REQUEST['email'])); $hashed = substr(md5($email), 0, 4); $invites = 0; $uri = $_REQUEST['uri']; $ip = $_SERVER['REMOTE_ADDR']; //get IP if (!$email){ echo "<p>Please enter a valid e-mail address<br><ul><span><a href='$location'>go back</span></li></ul></p>"; } elseif (filter_var($email, FILTER_VALIDATE_EMAIL)){ $insertinto = mysql_query("INSERT IGNORE INTO table (email, hash, invites, ip, signup_time, signup_date, signup_jointime) VALUES ('$email', '$hashed', '$invites', '$ip', CURTIME(), NOW(), NOW())") or die('error'); if (mysql_affected_rows() == 0){ $getlink = mysql_query("SELECT hash,invites from table WHERE hash='$hashed'"); while($row = mysql_fetch_assoc($getlink)){ $existinghash = $row['hash']; $totalinvites = $row['invites']; } echo "<p><span>Your back!<br>"; if ($totalinvites > 0){ echo "You have a total of ".$totalinvites." invites.</span></p>"; } else{ echo "No invites, yet.</p>"; } echo "<p><span>The more friends you invite, the sooner you'll get access!<br>paste this URL below into Twitter, Facebook, or an email:</p><p>Share Link <input class='referral' type=text size=27 readonly onClick=select(); value=\"".$sitedomain."".$existinghash."\"></span></p>"; echo "<p>Or use the buttons:<br></p>"; } elseif ($uri){ $updateinvites = mysql_query("UPDATE table SET invites=invites+1 WHERE hash='$uri'") or die('error!'); echo "<p>The more friends you invite, the sooner you'll get access!<br>Copy/paste this URL below into Twitter, Facebook, or an email:</p><p>Share Link <input class='referral' type=text size=27 readonly onClick=select(); value=\"".$sitedomain."".$hashed."\"></p>"; echo "<p>Or use the buttons:<br></p>"; } else{ echo "<p><input class='referral' type=text size=27 readonly onClick=select(); value=\"".$sitedomain."".$hashed."\"></p>"; echo "<p>Or use the buttons:<br></p>"; } } else { echo "<p class='invaild_email'>Please enter a valid e-mail address<br><ul><span><a href='$location'>go back</span></li></ul></p>"; } ?></pre> <a href="http://www.refactormycode.com/codes/1978-php-refactoring" style="color:#fff" title="As seen on RefactorMyCode.com"><img alt="Small_logo" src="http://www.refactormycode.com/images/small_logo.gif" style="border:0" /></a>