PHP Copyright Updater
// by Evan Walsh
// NothingConcept.com
This code will automatically change the copyright on your site as the year changes. Tested and approved by me.
Just call this in one of your PHP files by including the file with this code in it:
<?php //Licensed under the GPL v2 //by Evan Walsh of nothingconcept.com function copyright($site,$year) { $current = date(Y); if($year == $current) { $eyear = $year; } else { $eyear = "$year - $current"; } echo "All content © $eyear $site"; } ?>
Example: <?php include('functions.php'); ?>
Then place <?php copyright("Sitename","2007"); ?> or something similar in the place you want the copyright to display.
Simple as that.