Skip to content

Instantly share code, notes, and snippets.

<?php
$twitter = get_the_author_meta( 'twitter', $post->post_author );
$facebook = get_the_author_meta( 'facebook', $post->post_author );
echo '<a href="https://twitter.com/' . $twitter .'" rel="nofollow" target="_blank">Twitter</a> | <a href="'. $facebook .'" rel="nofollow" target="_blank">Facebook</a>';
?>
<head> <br/> <title>This is My Title</title><br/></head><br/><br/><br/>
<?php
/* Redirect browser */
header("Location: http://theos.in/");
/* Make sure that code below does not get executed when we redirect. */
exit;
?>
<script language="Javascript" src="http://gd.geobytes.com/Gd?pages=US&ext=html&after=-1"></script>
<script language="javascript">
if(!(typeof(sGeobytesLocationCode)!="undefined"&&sGeobytesLocationCode.indexOf('USCA')==0))
{
// Anyone that is NOT from California will be redirected here:
document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://www.notcalifornia.com'>");
} else{
/ Anyone that is from California will be redirected here:
document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://www.california.com'>");
}
<script src="//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js" type="text/javascript"></script>
<script language="JavaScript">
var country= geoip_country_code();
if(country == "US")
{
window.location = "YOUR US OFFER"
}
else
{