diff options
| author | Carson Fleming <cflems@cflems.net> | 2017-07-08 16:05:25 -0700 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2017-07-08 16:05:25 -0700 |
| commit | 2f14a6bc40fefc5ef573e45348050071708dff71 (patch) | |
| tree | 9687519c27e1063c888db35c0d0c8048cdee0fe5 /inc/functions.php | |
| parent | ff73103903dd3417e1a4d2b180e6d652b548a9de (diff) | |
| download | bulletin-2f14a6bc40fefc5ef573e45348050071708dff71.tar.gz | |
Automated copyright notice update
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php index 430a6d6..34b74aa 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1,9 +1,13 @@ <?php +function copy_notice () { + return 'Copyright © 2016-'.date('Y').' Bulletin Team'; +} function eml_tpl ($options) { return tpl($options, 'eml.tpl'); } function tpl ($options, $file) { $tpl_htm = file_get_contents(INCLUDE_PATH.$file); + $tpl_htm = str_replace('[copyright]', copy_notice(), $tpl_htm); $tpl_htm = preg_replace_callback('/\[tpl:([^\]]*)\]/i', function ($matches) use (&$options) { if (!isset($options[$matches[1]])) return ''; |
