[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.195,1.196

dhaun at geeklog.net dhaun at geeklog.net
Thu Jan 9 04:41:52 EST 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv15989/public_html

Modified Files:
	lib-common.php 
Log Message:
Changed {copyright_notice} variable in the site's footer so that it uses the
current year automatically. Alternatively, you can set $_CONF['copyrightyear']
to a specific year. Also made the parts of {copyright_notice} available as
separate variables, so that you can build a customised copyright notice.


Index: lib-common.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.195
retrieving revision 1.196
diff -C2 -d -r1.195 -r1.196
*** lib-common.php	31 Dec 2002 11:45:24 -0000	1.195
--- lib-common.php	9 Jan 2003 09:41:50 -0000	1.196
***************
*** 897,902 ****
      $footer->set_var( 'site_url', $_CONF['site_url']);
      $footer->set_var( 'layout_url',$_CONF['layout_url']);
!     $footer->set_var( 'copyright_notice', ' ' . $LANG01[93] . ' © 2002 ' . $_CONF['site_name'] . '<br> ' . $LANG01[94] );
!     $footer->set_var( 'copyright_msg', $LANG01[93] . ' © 2002 ' . $_CONF['site_name'] );
      $footer->set_var( 'trademark_msg', $LANG01[94] );
      $footer->set_var( 'powered_by', $LANG01[95] );
--- 897,916 ----
      $footer->set_var( 'site_url', $_CONF['site_url']);
      $footer->set_var( 'layout_url',$_CONF['layout_url']);
!     $footer->set_var( 'site_mail', "mailto:{$_CONF['site_mail']}" );
!     $footer->set_var( 'site_name', $_CONF['site_name'] );
!     $footer->set_var( 'site_slogan', $_CONF['site_slogan'] );
!     $year = date( 'Y' );
!     $copyrightyear = $year;
!     if( !empty( $_CONF['copyrightyear'] ))
!     {
!         $copyrightyear = $_CONF['copyrightyear'];
!     }
!     $footer->set_var( 'copyright_notice', ' ' . $LANG01[93] . ' © '
!             . $copyrightyear . ' ' . $_CONF['site_name'] . '<br> '
!             . $LANG01[94] );
!     $footer->set_var( 'copyright_msg', $LANG01[93] . ' © '
!             . $copyrightyear . ' ' . $_CONF['site_name'] );
!     $footer->set_var( 'current_year', $year );
!     $footer->set_var( 'lang_copyright', $LANG01[93] );
      $footer->set_var( 'trademark_msg', $LANG01[94] );
      $footer->set_var( 'powered_by', $LANG01[95] );





More information about the geeklog-cvs mailing list