################################################################# # $Id: counter.config,v 1.8 2003/03/25 15:08:03 root Exp $ ################################################################# # netINS Counter Configuration file. # # This file is part of the counters netINS provides for your Showcase # site. It is read by any netINS provided counter each time they run. # # If you do not install this file to your showcase area, the counters # will continue to work just fine. This file is only needed to extend # the functionality of the counters. # # Version 1.4 ################################################################# # # IP Blocking # # -- If you'd rather not have the same computer/person counting as a 'hit' # each time they reload your page in succession and artifically bumping # up your counter, set this value to 1. # # If this doesn't bother you or this is prefered in your setup, leave it # set to 0. $cfg_ip_block = 0; # ################################################################# # # Formatting with commas # # -- The counter can be configured to display commas where needed if # so desired. To set this, simply change $commas to equal 1. # Commas can be used with images. # $cfg_commas = 1; # ################################################################# # # Zero-Padding # # -- A nice effect, especially for the Odometer counter. Set this # value to the refect the TOTAL length of your counter, not how # many zeros to add. For example, if my counter is at "1898" and # I set this value to 8, my new counter will be "00001898". # Setting the value to less than the number of digits in the counter # will have no effect. # # Note that using zero-padding with commas looks a little silly. #$cfg_zero_padding = 4; # ################################################################# # # Numbers as images # # -- netINS provides a number of pre-installed types of counter images, # any of which you are free to use. For a current listing, visit: # # http://showcase.netins.net/1-800-205-1110/resources/counter_types.cgi # # To use one of these types, first, set $cfg_numbersAsImages to 1. # Then, pick one of the types mentioned on the site listed above. # Examples of types are "Odometer", "ShadedPurple", and "StarTrekRed". # Set $cfg_numberStyle to the type you want. Upload this file and # the counter will take care of the rest ( counter.cgi version 1.4 or # higher and counter_monthly.cgi version 1.2 or higher ). # $cfg_numbersAsImages = 1; $cfg_numberStyle = "Odometer"; # The counter also supports making and installing your own digits. # To do this, you must first make 11 images ( 0-9 and a comma ) and # label them 0.jpg, 1.jpg, comma.jpg, etc. # # Upload the images to a directory in your Basic Showcase webspace # ( for example, "myNumbers" ). Then, set $cfg_numberStyle to point # to the directory you put your images in, making SURE you put a leading # "/" in the name ( otherwise, the counter won't know to look for your # images ). An example: #$cfg_numberStyle = "/myNumbers"; # With version 1.4 of this config file, you can now specify what suffix # to use with your images ( .png or .JPG ) instead of just .jpg. This is # to allow you to create your own images with transparency ( if so desired ). # Do note that .gif ( Graphics Interchage Format ) files contain proprietary # compression algorithms patented by Unisys Corporation ( http://www.unisys.com ). # While netINS does not prevent the use of .gif files on its servers, it will not # defend, support, or otherwise indemnify you if Unisys attempts to make good on # its patent. # # Our suggestion is to bypass the patent and use open-source .png ( Portable # Network Graphics ) files instead if you need transparency. # ( http://www.libpng.org ) # # If nothing is defined, the counters will default to .jpg. ( counter.cgi # version 1.6 or higher and counter_monthly.cgi version 1.4 or higher is # required ). # # !!! DO NOT put a . in the suffix below, just the extension to use. !!! #$cfg_numberStyleSuffix = "jpg"; # Note that you cannot reference images hosted on other servers, only # those provided by netINS or installed yourself into your own Basic # Showcase area. # ################################################################# # # Vertical output # # -- Display the counter output vertically instead of horizontally. # We suggest not using commas if you choose to display vertically... # it looks kinda wierd. Try it out, if you'd like. Set this value # to 1 to turn on vertical display. # # Vertical display does work with images, but it does NOT work with # the Monthly Counter if "Counter Babble" is turned on ( it looks # very very ugly ). $cfg_vertical = 0; # ################################################################# # # FOR MONTHLY COUNTER ONLY!!! # # -- The monthly counter has the option of inserting the actual month # the page was accessed in the output, along with any filler data # you would like to add to make it more readable. Examples would # be: # # $counter_text = "For [MONTH], this page has been accessed [COUNT] times"; # $counter_text = "Page \"index.html\" accessed [COUNT] times in [MONTH]"; # # [MONTH] is the name of the current month, [COUNT] is the actual number # of hits. Any ""'s that you need to use will need to be quoted ( put # a backslash \ before it ) so that the program does not interpret # them incorrectly. # # Set $counter_babble to 1 to turn on additional text, leave it set # to 0 to just display the count. $cfg_counter_babble = 0; # # Set $counter_text to what would like your counter output to read. # $cfg_counter_text = "Page \"index.html\" accessed [COUNT] times in [MONTH]"; # ################################################################# # # DO NOT EDIT!!! # This must always remain at the bottom of this file #### 1;