I was working on a special page to replace my blog at sam.abuelsamid.com on Wed,…


I was working on a special page to replace my blog at sam.abuelsamid.com on Wed, but this makes it a lot easier and automates the switchover with a redirect to the americancensorship.org page.

Reshared post from +Scot Hacker

Want to join the SOPA #blackout on January 18th? Running WordPress? Here's how to have your site black itself out, then turn itself back on, right on time:

Make a backup copy of your index.php

Overwrite the contents of index.php with the code below. When the time comes, every page on your site will automatically redirect to http://americancensorship.org/infographic.html

<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
*@package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
*@var bool
*/
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */

date_default_timezone_set("EST");
$start_time = mktime(8,0,0,1,18,2012);
$end_time = mktime(20,0,0,1,18,2012);
$timenow = time();
if (($timenow > $start_time) && ($timenow < $end_time)) {
header("Location: http://americancensorship.org/infographic.html");
} else {
require('./wp-blog-header.php');
}
?>

Embedded Link

American Censorship – SOPA InfographicAmerican Internet Censorship is Real and Happening — Stop it!
A bill that is very likely to pass will let government and corporations censor the internet, take down sites at the behest of corporations. My favorite sites and friends have to step up now to help st…

Google+: Reshared 1 times
Google+: View post on Google+

Post imported by Google+Blog. Created By Daniel Treadwell.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.