<?php // Plug-in 26: Permanent Copyright
// This is an executable example with additional code supplied
// To obtain just the plug-ins please click on the Download link
echo PIPHP_RollingCopyright("All rights reserved", 2003);
function PIPHP_RollingCopyright($message, $year)
{
// Plug-in 26: Rolling Copyright
//
// This plug-in takes a string variable containing the year
// a copyright commenced and returns a copyright message
// that's always up to date. The arguments required are:
//
// $message: Text to be modified
// $year: Start year of copyright
return "$message ©$year-" . date("Y");
}
?>
插件说明:
本插件需要输入一个版权信息和版权的开始年份。这些参数具体如下:
$message 版权信息。
$year 版权开始的年份。