Ver Fonte

introduce new constant SM_COPYRIGHT that has the copyright years
for display in the interface.

Thijs Kinkhorst há 17 anos atrás
pai
commit
48249c10e6
3 ficheiros alterados com 8 adições e 2 exclusões
  1. 6 0
      include/constants.php
  2. 1 1
      src/about.php
  3. 1 1
      templates/default/message_list.tpl

+ 6 - 0
include/constants.php

@@ -21,6 +21,12 @@
  */
 define('SM_VERSION', '1.5.2 [SVN]');
 
+/**
+ * Year interval for copyright notices in the interface
+ * @since 1.5.2
+ */
+define('SM_COPYRIGHT', '1999-2008');
+
 /**************************************************************/
 /* Set values for constants used by SquirrelMail preferences. */
 /**************************************************************/

+ 1 - 1
src/about.php

@@ -86,7 +86,7 @@ if ( isset($plugins) && count ($plugins) > 0 ) {
 </small>
 <br /><br />
 </td></tr>
-<tr><td align="center">&copy; 1999 - 2008 The SquirrelMail Project Team</td></tr>
+<tr><td align="center">&copy; <?php echo SM_COPYRIGHT ?> The SquirrelMail Project Team</td></tr>
 </table></p>
 <?php
 $oTemplate->display('footer.tpl');

+ 1 - 1
templates/default/message_list.tpl

@@ -551,5 +551,5 @@ if ($non_clicked_class != 'even' && $non_clicked_class != 'odd'
 </div>
 
 <?php if (!$hide_sm_attributions): ?>
-<p class="sqm_squirrelcopyright">&copy; 1999-2008 The SquirrelMail Project Team - <a href="about.php">About SquirrelMail</a></p>
+<p class="sqm_squirrelcopyright">&copy; <?php echo SM_COPYRIGHT ?> The SquirrelMail Project Team - <a href="about.php">About SquirrelMail</a></p>
 <?php endif; ?>