April Fools!
US Holidays
April Fools Day, also called All Fools Day, in most countries the first day of April. It received its name from the custom of playing practical jokes on this day (for example, telling friends that their shoelaces are untied or sending them on so-called fools) errands. Although the day has been observed for centuries, there are different explanations for its origin. It resembles festivals such as the Hilaria of ancient Rome, held on March 25, and the Holi celebration in India, which ends on March 31. The modern custom may have originated in France when the Gregorian calendar, which moved New Year's Day from March 25 to January 1, was adopted in 1582. Those who continued to celebrate the end of New Year Week on April 1 were referred to as fools. The timing of the day also may be related to the vernal equinox (March 21), a time when people are said to be fooled by sudden changes in the weather.

There are variations between countries in the celebration of April Fools Day, but all have in common an excuse to make someone play the fool. In France, for example, the fooled person is called poisson d'avril (April fish), perhaps in reference to a young fish and hence to one that is easily caught; it is common for French children to pin a paper fish to the backs of unsuspecting friends. In Scotland the day is Gowkie Day, for the gowk, or cuckoo, a symbol of the fool and the cuckold, which suggests that it may have been associated at one time with sexual license; on the following day signs reading 'kick me' are pinned to friends backs. In many countries newspapers and the other media participate (for example, with false headlines or news stories.)

- April Fools' Day, Encyclopaedia Britannica

Want to do this to your PHP-Fusion Site? Copy this code, paste it into a panel, make the panel PUBLIC, and enable it.

if (date('F j') == 'April 1') { //April Fools!

if(!isset($_COOKIE['foolsflip'])){
setcookie("foolsflip", "1", time()+86400, "/");
redirect(FUSION_SELF);
}

if (isset($_COOKIE['foolsflip']) && $_COOKIE['foolsflip'] == '1'){
add_to_head("

");
add_to_footer("

");

echo "
";

openside("April Fools!");
echo "
You'll notice the rest of the site is up-side-down.
Don't like it?
";
closeside();
echo "
";

} elseif (isset($_COOKIE['foolsflip']) && $_COOKIE['foolsflip'] == '0') {
openside("April Fools!");
echo "
Wanna see it up-side-down again?
";
closeside();
}

if (isset($_POST['flipit']) && $_POST['flipit'] == '1'){
setcookie("foolsflip", "1", time()+86400, "/");
redirect(FUSION_SELF);
}

if (isset($_POST['fixit']) && $_POST['fixit'] == '1'){
setcookie("foolsflip", "0", time()+86400, "/");
redirect(FUSION_SELF);
}

}
The code only works on April 1st (but that's easily changed...)

Also, there's an option for the user to flip it back to normal, or flip it up-side-down again! :)
No Comments have been Posted.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.