add automatic year change in copright <patch by patschi>
authorStricted <info@nexus-irc.de>
Fri, 24 May 2013 19:10:38 +0000 (21:10 +0200)
committerStricted <info@nexus-irc.de>
Fri, 24 May 2013 19:10:38 +0000 (21:10 +0200)
index.cgi

index 8b3b8722616973997641accf6f2397a3ea44e8c3..43b9f1852f1d10c8a62f6a0a1c9d4c1328290d8c 100644 (file)
--- a/index.cgi
+++ b/index.cgi
@@ -4092,7 +4092,9 @@ sub git_footer_html {
                }
 
        } else {
-               print "<div class=\"page_footer_text\">Copyright &copy; 2013, <a href=\"http://nexus-irc.de\">Nexus-IRC.de</a></div>\n";
+               my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
+               $year += 1900;
+               print "<div class=\"page_footer_text\">Copyright &copy; $year, <a href=\"http://nexus-irc.de\">Nexus-IRC.de</a></div>\n";
                print $cgi->a({-href => href(project=>undef, action=>"opml",
                                             project_filter => $project_filter),
                              -class => $feed_class}, "OPML") . " ";