Give the gift of Drupal. All merchandise is 50% off through 2016.
Mini modules for Drupal 5.x require two files- a .info file and a .module file. These should generally be placed in a separate directory, for example under sites/all/modules. The .info file is needed for your module to show up on the admin page, while the code you want to add will be in the .module file.